- Timestamp:
- Oct 27, 2010 1:31:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r32307 r33507 39 39 #include <iprt/thread.h> 40 40 #include <iprt/string.h> 41 #include <iprt/system.h> 41 42 42 43 … … 3844 3845 VMMR3DECL(int) PGMR3PhysAllocateLargeHandyPage(PVM pVM, RTGCPHYS GCPhys) 3845 3846 { 3847 #ifdef PGM_WITH_LARGE_PAGES 3848 uint64_t cbAvailableMem; 3849 3850 if ( RTSystemQueryAvailableRam(&cbAvailableMem) == VINF_SUCCESS 3851 && cbAvailableMem < (UINT64_C(2) * _1G)) 3852 { 3853 /** Too little free RAM left; don't bother as the host might try to move memory around, which is very expensive. */ 3854 return VINF_EM_NO_MEMORY; 3855 } 3856 3846 3857 pgmLock(pVM); 3847 3858 … … 3918 3929 pgmUnlock(pVM); 3919 3930 return rc; 3931 #else 3932 return VERR_NOT_IMPLEMENTED; 3933 #endif /* PGM_WITH_LARGE_PAGES */ 3920 3934 } 3921 3935
Note:
See TracChangeset
for help on using the changeset viewer.