VirtualBox

Changeset 20781 in vbox for trunk


Ignore:
Timestamp:
Jun 22, 2009 1:35:55 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48901
Message:

Default to a 2 MB hyper heap for guest SMP

File:
1 edited

Legend:

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

    r20780 r20781  
    7979    int rc = CFGMR3QueryU32(CFGMR3GetChild(CFGMR3GetRoot(pVM), "MM"), "cbHyperHeap", &cbHyperHeap);
    8080    if (rc == VERR_CFGM_NO_PARENT || rc == VERR_CFGM_VALUE_NOT_FOUND)
    81         cbHyperHeap = (VMMIsHwVirtExtForced(pVM) && pVM->cCPUs == 1)
    82                     ? 640*_1K
    83                     : 1280*_1K;
     81    {
     82        if (pVM->cCPUs > 1)
     83            cbHyperHeap = _2M;
     84        else
     85            cbHyperHeap = VMMIsHwVirtExtForced(pVM)
     86                        ? 640*_1K
     87                        : 1280*_1K;
     88    }
    8489    else
    8590        AssertLogRelRCReturn(rc, rc);
Note: See TracChangeset for help on using the changeset viewer.

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