VirtualBox

Changeset 13113 in vbox for trunk/src


Ignore:
Timestamp:
Oct 9, 2008 9:28:09 AM (16 years ago)
Author:
vboxsync
Message:

Added PGMGetEPTCR3.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r13105 r13113  
    296296        /** Current CR4 mask. */
    297297        uint64_t                    cr4_mask;
    298 
    299         /** Current EPTP. */
    300         RTHCPHYS                    GCPhysEPTP;
    301298
    302299        /** VMX MSR values */
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r13106 r13113  
    12651265}
    12661266
     1267/**
     1268 * Gets the current CR3 register value for the EPT paging memory context.
     1269 * @returns CR3 value.
     1270 * @param   pVM         The VM handle.
     1271 */
     1272VMMDECL(RTHCPHYS) PGMGetEPTCR3(PVM pVM)
     1273{
     1274    return pVM->pgm.s.HCPhysNestedRoot;
     1275}
    12671276
    12681277/**
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r13112 r13113  
    474474    {
    475475        pVM->hwaccm.s.vmx.pfnSetupTaggedTLB = VMXR0SetupTLBEPT;
    476         pVM->hwaccm.s.vmx.GCPhysEPTP = PGMGetHyperCR3(pVM);
    477476
    478477        /* Default values for flushing. */
     
    11901189            RTHCPHYS GCPhys;
    11911190
    1192             AssertMsg(pVM->hwaccm.s.vmx.GCPhysEPTP == PGMGetHyperCR3(pVM), ("%VHp vs %VHp\n", pVM->hwaccm.s.vmx.GCPhysEPTP, PGMGetHyperCR3(pVM)));
    1193             GCPhys = pVM->hwaccm.s.vmx.GCPhysEPTP;
     1191            AssertMsg(PGMGetEPTCR3(pVM) == PGMGetHyperCR3(pVM), ("%VHp vs %VHp\n", PGMGetEPTCR3(pVM), PGMGetHyperCR3(pVM)));
     1192            GCPhys = PGMGetEPTCR3(pVM);
    11941193
    11951194            Assert(!(GCPhys & 0xfff));
     
    29502949
    29512950    Assert(pVM->hwaccm.s.fNestedPaging);
    2952     descriptor[0] = pVM->hwaccm.s.vmx.GCPhysEPTP;
     2951    descriptor[0] = PGMGetEPTCR3(pVM);
    29532952    descriptor[1] = GCPhys;
    29542953    int rc = VMXR0InvEPT(enmFlush, &descriptor[0]);
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