VirtualBox

Ignore:
Timestamp:
Oct 5, 2010 12:33:56 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66393
Message:

VMM: hyper heap size selection

File:
1 edited

Legend:

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

    r32908 r32910  
    311311}
    312312
    313 static uint32_t computeHyperHeapSize(ChipsetType_T chipsetType, uint32_t cCpus, bool fHwVirtExtForced)
    314 {
    315     uint32_t singleCpuBaseSize;
    316 
    317     if (cCpus > 1)
    318         return _2M + cCpus * _64K;
    319 
    320     if (chipsetType == ChipsetType_PIIX3)
    321     {
    322         /* Size must be kept like this for saved state compatibility */
    323         return fHwVirtExtForced ? 640*_1K : 1280*_1K;
    324     }
    325 
    326 
    327     return 1280*_1K;
    328 }
    329 
    330313class ConfigError : public iprt::Error
    331314{
     
    700683         */
    701684        PCFGMNODE pMM;
    702         uint32_t cbHyperHeap = computeHyperHeapSize(chipsetType, cCpus, fHwVirtExtForced);
    703685        InsertConfigNode(pRoot, "MM", &pMM);
    704         InsertConfigInteger(pMM, "cbHyperHeap", cbHyperHeap);
     686        InsertConfigInteger(pMM, "CanUseLargerHeap", chipsetType == ChipsetType_ICH9);
    705687
    706688        /*
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