VirtualBox

Changeset 10703 in vbox


Ignore:
Timestamp:
Jul 16, 2008 2:23:20 PM (16 years ago)
Author:
vboxsync
Message:

Use the CFGMR3QueryBoolDef API that was added recently.

File:
1 edited

Legend:

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

    r10695 r10703  
    186186    pVM->fHWACCMEnabled = false;
    187187
    188     /* Check CFGM options. */
    189     rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "EnableNestedPaging", &pVM->hwaccm.s.fAllowNestedPaging);
    190     if (VBOX_FAILURE(rc))
    191         pVM->hwaccm.s.fAllowNestedPaging = true;    /* enabled by default now. */
     188    /*
     189     * Check CFGM options.
     190     */
     191    /* Nested paging: enabled by default now */
     192    rc = CFGMR3QueryBoolDef(CFGMR3GetRoot(pVM), "EnableNestedPaging", &pVM->hwaccm.s.fAllowNestedPaging, true);
     193    AssertRC(rc);
    192194
    193195    /* HWACCM support must be explicitely enabled in the configuration file. */
    194     pVM->hwaccm.s.fAllowed = false;
    195     CFGMR3QueryBool(CFGMR3GetChild(CFGMR3GetRoot(pVM), "HWVirtExt/"), "Enabled", &pVM->hwaccm.s.fAllowed);
     196    rc = CFGMR3QueryBoolDef(CFGMR3GetChild(CFGMR3GetRoot(pVM), "HWVirtExt/"), "Enabled", &pVM->hwaccm.s.fAllowed, false);
     197    AssertRC(rc);
    196198
    197199    return VINF_SUCCESS;
     
    654656
    655657        /* The guest is about to complete the switch to protected mode. Wait a bit longer. */
    656         /* Windows XP; switch to protected mode; all selectors are marked not present in the 
     658        /* Windows XP; switch to protected mode; all selectors are marked not present in the
    657659         * hidden registers (possible recompiler bug) */
    658660        if (pCtx->csHid.Attr.n.u1Present == 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