VirtualBox

Changeset 32908 in vbox for trunk/src/VBox/VMM/MMHyper.cpp


Ignore:
Timestamp:
Oct 5, 2010 11:52:17 AM (14 years ago)
Author:
vboxsync
Message:

VMM: moved hyper heap configuration to console, as it knows more about VM config, and logic getting complicated

File:
1 edited

Legend:

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

    r31978 r32908  
    7575    uint32_t cbHyperHeap;
    7676    int rc = CFGMR3QueryU32(CFGMR3GetChild(CFGMR3GetRoot(pVM), "MM"), "cbHyperHeap", &cbHyperHeap);
    77     if (rc == VERR_CFGM_NO_PARENT || rc == VERR_CFGM_VALUE_NOT_FOUND)
    78     {
    79         if (pVM->cCpus > 1)
    80             cbHyperHeap = _2M + pVM->cCpus * _64K;
    81         else
    82             cbHyperHeap = VMMIsHwVirtExtForced(pVM)
    83                         ? 640*_1K
    84                         : 1280*_1K;
    85     }
    86     else
    87         AssertLogRelRCReturn(rc, rc);
     77    AssertLogRelRCReturn(rc, rc);
    8878    cbHyperHeap = RT_ALIGN_32(cbHyperHeap, PAGE_SIZE);
    8979    LogRel(("MM: cbHyperHeap=%#x (%u)\n", cbHyperHeap, cbHyperHeap));
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