VirtualBox

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


Ignore:
Timestamp:
Oct 18, 2010 11:59:24 AM (14 years ago)
Author:
vboxsync
Message:

Fetch ram size from cfgm

File:
1 edited

Legend:

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

    r33192 r33193  
    5757    if (fHwVirtExtForced)
    5858    {
     59        uint64_t cbRam = 0;
     60        CFGMR3QueryU64(CFGMR3GetRoot(pVM), "RamSize", &cbRam);
     61
    5962        /* Need a bit more space for large memory guests. */
    60         if (pVM->mm.s.cbRamBase >= _4G)
     63        if (cbRam >= _4G)
    6164            return _1M;
    6265        else
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