VirtualBox

Changeset 26841 in vbox


Ignore:
Timestamp:
Feb 26, 2010 12:49:11 PM (15 years ago)
Author:
vboxsync
Message:

AMD-V support for large pages (64 bits host, nested paging)

File:
1 edited

Legend:

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

    r26727 r26841  
    29552955    Assert(!PdeDst.n.u1Present); /* We're only supposed to call SyncPT on PDE!P and conflicts.*/
    29562956
    2957 # if (PGM_SHW_TYPE == PGM_TYPE_EPT) && (HC_ARCH_BITS == 64) && defined(RT_OS_WINDOWS)
     2957# if (HC_ARCH_BITS == 64) && (PGM_SHW_TYPE != PGM_TYPE_32BIT && PGM_SHW_TYPE != PGM_TYPE_PAE)
     2958#  if  (PGM_SHW_TYPE != PGM_TYPE_EPT)   /* PGM_TYPE_EPT implies nested paging */
     2959    if (HWACCMIsNestedPagingActive(pVM))
     2960#  endif
    29582961    {
    29592962        PPGMPAGE pPage;
     
    29912994                PdeDst.n.u1Present   = 1;
    29922995                PdeDst.n.u1Write     = 1;
     2996                PdeDst.b.u1Size      = 1;
     2997#  if  PGM_SHW_TYPE == PGM_TYPE_EPT
    29932998                PdeDst.n.u1Execute   = 1;
    2994                 PdeDst.b.u1Size      = 1;
    29952999                PdeDst.b.u1IgnorePAT = 1;
    29963000                PdeDst.b.u3EMT       = VMX_EPT_MEMTYPE_WB;
     3001#  endif
    29973002                ASMAtomicWriteSize(pPdeDst, PdeDst.u);
    29983003
     
    30023007        }
    30033008    }
    3004 # endif
     3009# endif /* HC_ARCH_BITS == 64 */
    30053010
    30063011    GSTPDE PdeSrc;
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