VirtualBox

Ignore:
Timestamp:
Mar 26, 2009 5:20:39 AM (16 years ago)
Author:
vboxsync
Message:

ConsoleImpl2.cpp: Set HwVirtExtForced if there is memory above 4GB and VT-x/AMD-V is enabled. We need to optimzie hyper heap and lookup times when dealing with lots of memory, so no easy fallback, sorry.

File:
1 edited

Legend:

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

    r18208 r18292  
    192192    hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs);                                H();
    193193#if 0 /* enable to play with lots of memory. */
    194     cRamMBs = 8 * 1024;
     194    cRamMBs = 512 * 1024;
    195195#endif
    196196    uint64_t const cbRam = cRamMBs * (uint64_t)_1M;
     
    240240#ifdef RT_OS_DARWIN
    241241    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      fHWVirtExEnabled);      RC_CHECK();
     242#elif defined(VBOX_WITH_NEW_PHYS_CODE)
     243    /* With more than 4GB PGM will use different RAMRANGE sizes for raw mode and hv mode to optimize lookup times. */
     244    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      fHWVirtExEnabled && cbRam > (_4G - cbRamHole)); RC_CHECK();
    242245#else
    243246    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      0);                     RC_CHECK();
     
    18801883                    H();
    18811884                }
    1882            
     1885
    18831886                if(bEnabled)
    18841887                    hrc = dhcpServer->Start(networkName, trunkName, trunkType);
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