Changeset 101001 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 1, 2023 1:57:59 PM (17 months ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r100964 r101001 2634 2634 */ 2635 2635 SHWPTE Pte; 2636 uint64_t const fGstShwPteFlags = pGstWalkAll->u.Ept.Pte.u & pVCpu->pgm.s.fGstEptShadowedPteMask; 2636 uint64_t const fGstShwPteFlags = (pGstWalkAll->u.Ept.Pte.u & pVCpu->pgm.s.fGstEptShadowedPteMask) 2637 | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT; 2637 2638 if (!PGM_PAGE_HAS_ACTIVE_HANDLERS(pPage) || PGM_PAGE_IS_HNDL_PHYS_NOT_IN_HM(pPage)) 2638 2639 { … … 2796 2797 Assert(pShwPage->enmKind == PGMPOOLKIND_EPT_PT_FOR_EPT_2MB); 2797 2798 #endif 2798 uint64_t const fGstPteFlags = pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask & ~EPT_E_LEAF; 2799 uint64_t const fGstPteFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask & ~EPT_E_LEAF) 2800 | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT; 2799 2801 pGstWalkAll->u.Ept.Pte.u = GCPhysPage | fGstPteFlags; 2800 2802 … … 2988 2990 * If we have a 2M backing page, we can map the guest's 2M page right away. 2989 2991 */ 2990 uint64_t const fShwBigPdeFlags = pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask; 2992 uint64_t const fShwBigPdeFlags = (pGstWalkAll->u.Ept.Pde.u & pVCpu->pgm.s.fGstEptShadowedBigPdeMask) 2993 | EPT_E_MEMTYPE_WB | EPT_E_IGNORE_PAT; 2991 2994 if (HCPhys != NIL_RTHCPHYS) 2992 2995 { -
trunk/src/VBox/VMM/VMMR3/PGM.cpp
r100965 r101001 1729 1729 /* We currently do -not- shadow reserved bits in guest page tables but instead trap them using non-present permissions, 1730 1730 see todo in (NestedSyncPT). */ 1731 pVCpu->pgm.s.fGstEptShadowedPteMask = EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_IGNORE_PAT;1731 pVCpu->pgm.s.fGstEptShadowedPteMask = EPT_PRESENT_MASK; 1732 1732 pVCpu->pgm.s.fGstEptShadowedPdeMask = EPT_PRESENT_MASK; 1733 pVCpu->pgm.s.fGstEptShadowedBigPdeMask = EPT_PRESENT_MASK | EPT_E_ MEMTYPE_MASK | EPT_E_IGNORE_PAT | EPT_E_LEAF;1734 pVCpu->pgm.s.fGstEptShadowedPdpteMask = EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_IGNORE_PAT | EPT_E_LEAF;1733 pVCpu->pgm.s.fGstEptShadowedBigPdeMask = EPT_PRESENT_MASK | EPT_E_LEAF; 1734 pVCpu->pgm.s.fGstEptShadowedPdpteMask = EPT_PRESENT_MASK; 1735 1735 pVCpu->pgm.s.fGstEptShadowedPml4eMask = EPT_PRESENT_MASK | EPT_PML4E_MBZ_MASK; 1736 1736 /* If mode-based execute control for EPT is enabled, we would need to include bit 10 in the present mask. */
Note:
See TracChangeset
for help on using the changeset viewer.