VirtualBox

Ignore:
Timestamp:
Nov 24, 2008 7:36:37 PM (16 years ago)
Author:
vboxsync
Message:

#1865/VT-x: Attacking the heap allocation, introducing VMMIsHwVirtExtForced which will only return true on darwin (for now at least).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r14525 r14543  
    205205    else
    206206        fHWVirtExEnabled = (hwVirtExEnabled == TSBool_True);
    207 #ifndef RT_OS_DARWIN /** @todo Implement HWVirtExt on darwin. See #1865. */
     207#ifdef RT_OS_DARWIN
     208    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      fHWVirtExEnabled);      RC_CHECK();
     209#else
     210    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      0);                     RC_CHECK();
     211#endif
    208212    if (fHWVirtExEnabled)
    209213    {
    210214        PCFGMNODE pHWVirtExt;
    211215        rc = CFGMR3InsertNode(pRoot, "HWVirtExt", &pHWVirtExt);                     RC_CHECK();
    212         rc = CFGMR3InsertInteger(pHWVirtExt, "Enabled", 1);                         RC_CHECK();
    213     }
    214 #endif
     216        rc = CFGMR3InsertInteger(pHWVirtExt, "Enabled",     1);                     RC_CHECK();
     217    }
    215218
    216219    /* Nested paging (VT-x/AMD-V) */
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