VirtualBox

Changeset 16679 in vbox for trunk/src


Ignore:
Timestamp:
Feb 11, 2009 4:32:06 PM (16 years ago)
Author:
vboxsync
Message:

VBOX_WITH_PGMPOOL_PAGING_ONLY: PGMGetHyperCR3 fix for EPT

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

Legend:

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

    r16626 r16679  
    13761376{
    13771377#ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
    1378     return pVM->pgm.s.HCPhysShwCR3;
     1378    PGMMODE enmShadowMode = pVM->pgm.s.enmShadowMode;
     1379    switch (enmShadowMode)
     1380    {
     1381        case PGMMODE_EPT:
     1382            return pVM->pgm.s.HCPhysShwNestedRoot;
     1383
     1384        default:
     1385            return pVM->pgm.s.HCPhysShwCR3;
     1386    }
    13791387#else
    13801388    PGMMODE enmShadowMode = pVM->pgm.s.enmShadowMode;
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r16645 r16679  
    14981498        if (pVM->hwaccm.s.fNestedPaging)
    14991499        {
    1500             AssertMsg(   PGMGetEPTCR3(pVM)
     1500            AssertMsg(   PGMGetEPTCR3(pVM) == PGMGetHyperCR3(pVM)
    15011501                      || VM_FF_ISPENDING(pVM, VM_FF_PGM_SYNC_CR3 | VM_FF_PGM_SYNC_CR3_NON_GLOBAL),
    15021502                      ("%RHp vs %RHp\n", PGMGetEPTCR3(pVM), PGMGetHyperCR3(pVM)));
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