VirtualBox

Changeset 22595 in vbox


Ignore:
Timestamp:
Aug 31, 2009 11:54:30 AM (15 years ago)
Author:
vboxsync
Message:

Add 32 bits host guest memory size restriction here

File:
1 edited

Legend:

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

    r22173 r22595  
    200200    /* no need to lock, this is const */
    201201    AssertCompile(MM_RAM_MAX_IN_MB <= SchemaDefs::MaxGuestRAM);
    202     *maxRAM = MM_RAM_MAX_IN_MB;
     202    ULONG maxRAMSys = MM_RAM_MAX_IN_MB;
     203    ULONG maxRAMArch = maxRAMSys;
     204#if HC_ARCH_BITS == 32 && !defined(RT_OS_DARWIN)
     205# ifdef RT_OS_WINDOWS
     206    maxRAMArch = UINT32_C(1500);
     207# else
     208    maxRAMArch = UINT32_C(2560);
     209# endif
     210#endif
     211    *maxRAM = RT_MIN(maxRAMSys, maxRAMArch);
    203212
    204213    return S_OK;
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