VirtualBox

儲存庫 vbox 的更動 18292


忽略:
時間撮記:
2009-3-26 上午05:20:39 (16 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette