VirtualBox

Changeset 92481 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Nov 17, 2021 2:14:56 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 Comment clarifying disappearing of bit 7 of MSR_IA32_VMX_EPT_VPID_CAP.

File:
1 edited

Legend:

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

    r92480 r92481  
    115115     * Do the walk.
    116116     */
    117     int const rc2 = pgmGstGetEptPML4PtrEx(pVCpu, &pGstWalk->pPml4);
    118     if (RT_SUCCESS(rc2))
    119     { /* likely */ }
    120     else
    121         return PGM_GST_SLAT_NAME_EPT(WalkReturnBadPhysAddr)(pVCpu, pWalk, 4, rc2);
    122 
    123117    uint64_t fEffective;
     118    {
     119        /*
     120         * Start with reading the EPT PML4E pointer.
     121         *
     122         * We currently only support 4 level EPT paging.
     123         * EPT 5 level paging was documented at some point (bit 7 of MSR_IA32_VMX_EPT_VPID_CAP)
     124         * but for some reason seems to have been removed from subsequent specs.
     125         */
     126        int const rc = pgmGstGetEptPML4PtrEx(pVCpu, &pGstWalk->pPml4);
     127        if (RT_SUCCESS(rc))
     128        { /* likely */ }
     129        else
     130            return PGM_GST_SLAT_NAME_EPT(WalkReturnBadPhysAddr)(pVCpu, pWalk, 4, rc);
     131    }
    124132    {
    125133        /*
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