Changeset 102676 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Dec 21, 2023 12:27:31 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r102665 r102676 3370 3370 pMtrrMap->aMtrrs[pMtrrMap->idxMtrr].MtrrPhysBase = GCPhysFirst | fType; 3371 3371 pMtrrMap->aMtrrs[pMtrrMap->idxMtrr].MtrrPhysMask = cpumR3GetVarMtrrMask(pVM, GCPhysFirst, GCPhysLast) 3372 3372 | MSR_IA32_MTRR_PHYSMASK_VALID; 3373 3373 ++pMtrrMap->idxMtrr; 3374 3374 … … 3463 3463 uint64_t cbLeft = cb; 3464 3464 uint64_t offRegion = GCPhysRegionFirst; 3465 int rc = VINF_SUCCESS;3466 3465 while (cbLeft > 0) 3467 3466 { … … 3469 3468 3470 3469 Log3(("CPUM: MTRR: Add[%u]: %' Rhcb (%RU64 bytes)\n", pMtrrMap->idxMtrr, cbRegion, cbRegion)); 3471 rc = cpumR3MtrrMapAddRegion(pVM, pMtrrMap, offRegion, offRegion + cbRegion - 1, X86_MTRR_MT_WB);3470 int const rc = cpumR3MtrrMapAddRegion(pVM, pMtrrMap, offRegion, offRegion + cbRegion - 1, X86_MTRR_MT_WB); 3472 3471 if (RT_FAILURE(rc)) 3473 3472 return rc; … … 3634 3633 if ( RT_SUCCESS(rc) 3635 3634 && pMtrrMapOptimal->cbMapped == pMtrrMapOptimal->cbToMap) 3636 return rc;3635 return VINF_SUCCESS; 3637 3636 return VERR_OUT_OF_RESOURCES; 3638 3637 } … … 3820 3819 LogRel(("CPUM: WARNING! Could not map %' Rhcb (%RU64 bytes) of RAM using %u variable-range MTRRs\n", cbLost, cbLost, 3821 3820 MtrrMap.cMtrrs)); 3822 rc = VINF_SUCCESS;3823 3821 } 3824 3822 … … 3833 3831 } 3834 3832 3835 return rc;3833 return VINF_SUCCESS; 3836 3834 } 3837 3835
Note:
See TracChangeset
for help on using the changeset viewer.