Changeset 33 in vbox
- Timestamp:
- Jan 15, 2007 5:18:01 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17462
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MM.cpp
r32 r33 221 221 rc = PGM3PhysGrowRange(pVM, (RTGCPHYS)0); 222 222 if (VBOX_SUCCESS(rc)) 223 { 224 /* Should we preallocate the entire guest RAM? */ 225 if (fPreAlloc) 226 { 227 RTGCPHYS GCPhys = PGM_DYNAMIC_CHUNK_SIZE; 228 229 for (;GCPhys < cbRam ; GCPhys+=PGM_DYNAMIC_CHUNK_SIZE) 230 { 231 rc = PGM3PhysGrowRange(pVM, GCPhys); 232 if (VBOX_SUCCESS(rc)) 233 return rc; 234 } 235 } 223 236 return rc; 224 225 /* Should we preallocate the entire guest RAM? */226 if (fPreAlloc)227 {228 RTGCPHYS GCPhys = PGM_DYNAMIC_CHUNK_SIZE;229 230 for (;GCPhys < cbRam ; GCPhys+=PGM_DYNAMIC_CHUNK_SIZE)231 {232 rc = PGM3PhysGrowRange(pVM, GCPhys);233 if (VBOX_SUCCESS(rc))234 return rc;235 }236 237 } 237 238 }
Note:
See TracChangeset
for help on using the changeset viewer.