Changeset 26685 in vbox for trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
- Timestamp:
- Feb 22, 2010 5:48:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r26679 r26685 368 368 Assert(!PGM_PAGE_IS_MMIO(pPage)); 369 369 370 if (PGMIsUsingLargePages(pVM)) 371 { 372 RTHCPHYS HCPhysDummy; 373 374 int rc = pgmPhysAllocLargePage(pVM, GCPhys, &HCPhysDummy); 375 if (rc == VINF_SUCCESS) 376 return rc; 377 378 /* fall back to 4kb pages. */ 379 } 370 380 371 381 /* … … 471 481 */ 472 482 Assert(PGMIsLocked(pVM)); 483 Assert(PGMIsUsingLargePages(pVM)); 473 484 Assert((GCPhys & X86_PD_PAE_MASK) == 0); 474 485 AssertPtr(pHCPhys); … … 540 551 } 541 552 LogFlow(("pgmPhysAllocLargePage failed with %Rrc\n", rc)); 553 554 /* If we fail once, it most likely means the host's memory is too fragmented; don't bother trying again. */ 555 PGMSetLargePageUsage(pVM, false); 542 556 return rc; 543 557 }
Note:
See TracChangeset
for help on using the changeset viewer.