VirtualBox

Changeset 10691 in vbox


Ignore:
Timestamp:
Jul 16, 2008 11:06:20 AM (16 years ago)
Author:
vboxsync
Message:

Enable nested paging by default.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r10586 r10691  
    9393    if (VBOX_FAILURE(rc))
    9494        return rc;
     95
     96    /* Check CFGM option. */
     97    rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "EnableNestedPaging", &pVM->hwaccm.s.fAllowNestedPaging);
     98    if (VBOX_FAILURE(rc))
     99        pVM->hwaccm.s.fAllowNestedPaging = true;    /* enabled by default now. */
    95100
    96101    /* Misc initialisation. */
     
    504509            pVM->hwaccm.s.fInitialized = true;
    505510
    506 #ifdef VBOX_WITH_NESTED_PAGING
    507511            if (pVM->hwaccm.s.svm.u32Features & AMD_CPUID_SVM_FEATURE_EDX_NESTED_PAGING)
    508                 pVM->hwaccm.s.fNestedPaging = true;
    509 #endif
     512                pVM->hwaccm.s.fNestedPaging = pVM->hwaccm.s.fAllowNestedPaging;
    510513
    511514            rc = SUPCallVMMR0Ex(pVM->pVMR0, VMMR0_DO_HWACC_SETUP_VM, 0, NULL);
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r10537 r10691  
    3434#include <iprt/mp.h>
    3535
    36 /* Uncomment to enable experimental nested paging. */
    37 /////#define VBOX_WITH_NESTED_PAGING
    3836#if HC_ARCH_BITS == 64
    3937/* Enable 64 bits guest support. */
     
    177175    /** Set if nested paging is enabled. */
    178176    bool                        fNestedPaging;
     177
     178    /** Set if nested paging is allowed. */
     179    bool                        fAllowNestedPaging;
    179180
    180181    /** HWACCM_CHANGED_* flags. */
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