Changeset 30842 in vbox
- Timestamp:
- Jul 14, 2010 2:19:44 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r30825 r30842 4981 4981 RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB RAM, available: %uMB\n", 4982 4982 cMbHostRam, cMbHostRamAvail); 4983 4984 #if defined(RT_OS_WINDOWS) && HC_ARCH_BITS == 324985 /* @todo move this in RT, but too lazy now */4986 uint32_t maxRAMArch;4987 SYSTEM_INFO sysInfo;4988 GetSystemInfo(&sysInfo);4989 4990 if (sysInfo.lpMaximumApplicationAddress >= (LPVOID)0xC0000000) /* 3.0 GB */4991 maxRAMArch = UINT32_C(2560);4992 else4993 if (sysInfo.lpMaximumApplicationAddress > (LPVOID)0xA0000000) /* 2.5 GB */4994 maxRAMArch = UINT32_C(2048);4995 else4996 maxRAMArch = UINT32_C(1500);4997 4998 RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum user application address: 0x%p\n", sysInfo.lpMaximumApplicationAddress);4999 RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum allowed guest RAM size: %dMB\n", maxRAMArch);5000 #endif5001 4983 5002 4984 /* the package type is interesting for Linux distributions */ -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r30764 r30842 204 204 ULONG maxRAMSys = MM_RAM_MAX_IN_MB; 205 205 ULONG maxRAMArch = maxRAMSys; 206 #if HC_ARCH_BITS == 32 && !defined(RT_OS_DARWIN)207 # ifdef RT_OS_WINDOWS208 SYSTEM_INFO sysInfo;209 GetSystemInfo(&sysInfo);210 211 if (sysInfo.lpMaximumApplicationAddress >= (LPVOID)0xC0000000) /* 3.0 GB */212 maxRAMArch = UINT32_C(2560);213 else214 if (sysInfo.lpMaximumApplicationAddress > (LPVOID)0xA0000000) /* 2.5 GB */215 maxRAMArch = UINT32_C(2048);216 else217 maxRAMArch = UINT32_C(1500);218 # else219 maxRAMArch = UINT32_C(2560);220 # endif221 #endif222 206 *maxRAM = RT_MIN(maxRAMSys, maxRAMArch); 223 207 -
trunk/src/VBox/VMM/PGMInternal.h
r30840 r30842 88 88 #if (HC_ARCH_BITS == 64) && !defined(IN_RC) 89 89 # define PGM_WITH_LARGE_PAGES 90 #endif 91 92 /** 93 * Chunk unmapping code activated on 32-bit hosts for > 1.5/2 GB guest memory support 94 */ 95 #if (HC_ARCH_BITS == 32) && !defined(RT_OS_DARWIN) 96 # define PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST 90 97 #endif 91 98 -
trunk/src/VBox/VMM/PGMPhys.cpp
r30841 r30842 3188 3188 } 3189 3189 3190 #ifdef VBOX_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST3190 #ifdef PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST 3191 3191 /** 3192 3192 * Tree enumeration callback for dealing with age rollover. … … 3429 3429 AssertRC(rc); 3430 3430 } 3431 #endif /* VBOX_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST */3431 #endif /* PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST */ 3432 3432 3433 3433 /** … … 3488 3488 if (pVM->pgm.s.ChunkR3Map.c >= pVM->pgm.s.ChunkR3Map.cMax) 3489 3489 { 3490 #ifdef VBOX_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST3490 #ifdef PGM_WITH_LARGE_ADDRESS_SPACE_ON_32_BIT_HOST 3491 3491 /* Postpone the unmap operation (which requires a rendezvous operation) as we own the PGM lock here. */ 3492 3492 rc = VMR3ReqCallNoWaitU(pVM->pUVM, VMCPUID_ANY, (PFNRT)pgmR3PhysUnmapChunk, 1, pVM);
Note:
See TracChangeset
for help on using the changeset viewer.