Changeset 92556 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 23, 2021 1:12:29 AM (3 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r91693 r92556 612 612 if ( RT_SUCCESS(rc2) 613 613 && pVM->bMainExecutionEngine != VM_EXEC_ENGINE_NOT_SET) 614 { 614 615 rc = VINF_SUCCESS; 616 617 /* For some reason, HM is in charge or large pages. Make sure to enable them: */ 618 PGMSetLargePageUsage(pVM, pVM->hm.s.fLargePages); 619 } 615 620 } 616 621 if (RT_FAILURE(rc)) … … 629 634 if (RT_FAILURE(rc)) 630 635 return rc; 636 637 /* For some reason, HM is in charge or large pages. Make sure to enable them: */ 638 PGMSetLargePageUsage(pVM, pVM->hm.s.fLargePages); 631 639 } 632 640 if ( pVM->bMainExecutionEngine == VM_EXEC_ENGINE_NOT_SET -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r92518 r92556 1626 1626 else 1627 1627 { 1628 int rc = SUPR3PageAlloc(cPages, &pNew->pvR3);1628 int rc = SUPR3PageAlloc(cPages, pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, &pNew->pvR3); 1629 1629 if (RT_FAILURE(rc)) 1630 1630 return rc; … … 3075 3075 else 3076 3076 { 3077 rc = SUPR3PageAlloc(cPages, &pvPages);3077 rc = SUPR3PageAlloc(cPages, pVM->pgm.s.fUseLargePages ? SUP_PAGE_ALLOC_F_LARGE_PAGES : 0, &pvPages); 3078 3078 if (RT_SUCCESS(rc)) 3079 3079 for (uint32_t i = 0; i < cPages; i++) … … 4372 4372 if (!fRamExists) 4373 4373 { 4374 int rc = SUPR3PageAlloc(cPages, &pvRam);4374 int rc = SUPR3PageAlloc(cPages, 0, &pvRam); 4375 4375 if (RT_FAILURE(rc)) 4376 4376 return rc; … … 4378 4378 if (fFlags & PGMPHYS_ROM_FLAGS_SHADOWED) 4379 4379 { 4380 int rc = SUPR3PageAlloc(cPages, &pvAlt);4380 int rc = SUPR3PageAlloc(cPages, 0, &pvAlt); 4381 4381 if (RT_FAILURE(rc)) 4382 4382 { -
trunk/src/VBox/VMM/testcase/tstCFGM.cpp
r86361 r92556 103 103 104 104 PVM pVM; 105 RTTESTI_CHECK_RC_RETV(SUPR3PageAlloc(RT_ALIGN_Z(sizeof(*pVM), PAGE_SIZE) >> PAGE_SHIFT, (void **)&pVM), VINF_SUCCESS);105 RTTESTI_CHECK_RC_RETV(SUPR3PageAlloc(RT_ALIGN_Z(sizeof(*pVM), PAGE_SIZE) >> PAGE_SHIFT, 0, (void **)&pVM), VINF_SUCCESS); 106 106 107 107
Note:
See TracChangeset
for help on using the changeset viewer.