Changeset 96736 in vbox
- Timestamp:
- Sep 14, 2022 11:57:13 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGM.cpp
r96407 r96736 1720 1720 pVCpu->pgm.s.fGstEptMbzBigPdpteMask = fMbzPageFrameMask | fGstEptMbzBigPdpteMask; 1721 1721 pVCpu->pgm.s.fGstEptMbzPml4eMask = fMbzPageFrameMask | EPT_PML4E_MBZ_MASK; 1722 pVCpu->pgm.s.fGstEptPresentMask = EPT_PRESENT_MASK; 1723 1724 /* If any of the features (in the assert below) are enabled, we would have to shadow the relevant bits. */ 1722 1723 /* If any of the features in the assert below are enabled, additional bits would need to be shadowed. */ 1725 1724 Assert( !pVM->cpum.ro.GuestFeatures.fVmxModeBasedExecuteEpt 1726 1725 && !pVM->cpum.ro.GuestFeatures.fVmxSppEpt … … 1728 1727 && !(fEptVpidCap & MSR_IA32_VMX_EPT_VPID_CAP_ACCESS_DIRTY)); 1729 1728 /* We need to shadow reserved bits as guest EPT tables can set them to trigger EPT misconfigs. */ 1730 pVCpu->pgm.s.fGstEptShadowedPteMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK ;1731 pVCpu->pgm.s.fGstEptShadowedPdeMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_ LEAF;1732 pVCpu->pgm.s.fGstEptShadowedPdpteMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_ LEAF;1729 pVCpu->pgm.s.fGstEptShadowedPteMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_IGNORE_PAT; 1730 pVCpu->pgm.s.fGstEptShadowedPdeMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_IGNORE_PAT | EPT_E_LEAF; 1731 pVCpu->pgm.s.fGstEptShadowedPdpteMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_E_MEMTYPE_MASK | EPT_E_IGNORE_PAT | EPT_E_LEAF; 1733 1732 pVCpu->pgm.s.fGstEptShadowedPml4eMask = GCPhysRsvdAddrMask | EPT_PRESENT_MASK | EPT_PML4E_MBZ_MASK; 1733 /* If mode-based execute control for EPT is enabled, we would need to include bit 10 in the present mask. */ 1734 pVCpu->pgm.s.fGstEptPresentMask = EPT_PRESENT_MASK; 1734 1735 #endif 1735 1736 }
Note:
See TracChangeset
for help on using the changeset viewer.