VirtualBox

Changeset 91993 in vbox


Ignore:
Timestamp:
Oct 22, 2021 4:57:15 AM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 EPT PML4E effective RW permissions fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r91992 r91993  
    187187        Assert(!pVCpu->CTX_SUFF(pVM)->cpum.ro.GuestFeatures.fVmxModeBasedExecuteEpt);
    188188        uint32_t const fEffectiveEpt = ((uint32_t)Pml4e.u & EPT_PML4E_ATTR_MASK) << PGMPTWALK_EFF_EPT_ATTR_SHIFT;
    189         uint8_t const fReadWrite = RT_BF_GET(fEffectiveEpt, PGM_BF_PTWALK_EFF_R)
    190                                  & RT_BF_GET(fEffectiveEpt, PGM_BF_PTWALK_EFF_W);
    191189        uint8_t const fExecute   = RT_BF_GET(fEffectiveEpt, PGM_BF_PTWALK_EFF_X_SUPER);
     190        uint8_t const fWrite     = RT_BF_GET(fEffectiveEpt, PGM_BF_PTWALK_EFF_W);
    192191        uint8_t const fAccessed  = RT_BF_GET(fEffectiveEpt, PGM_BF_PTWALK_EFF_A);
    193192        pWalk->Core.fEffective = fEffective = RT_BF_MAKE(PGM_BF_PTWALK_EFF_X,  fExecute)
    194                                             | RT_BF_MAKE(PGM_BF_PTWALK_EFF_RW, fReadWrite)
     193                                            | RT_BF_MAKE(PGM_BF_PTWALK_EFF_RW, fWrite)
    195194                                            | RT_BF_MAKE(PGM_BF_PTWALK_EFF_US, 1)
    196195                                            | RT_BF_MAKE(PGM_BF_PTWALK_EFF_A,  fAccessed)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette