Changeset 102807 in vbox for trunk/src/VBox/VMM/VMMR3/CPUM.cpp
- Timestamp:
- Jan 10, 2024 7:29:10 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r102806 r102807 3579 3579 Assert(MtrrMapAdd.idxMtrr > 0); 3580 3580 Assert(MtrrMapAdd.idxMtrr <= MtrrMapAdd.cMtrrs); 3581 Assert(MtrrMapAdd.cbMapped == cb);3581 Assert(MtrrMapAdd.cbMapped == MtrrMapAdd.cbToMap); 3582 3582 Log3(("CPUM: MTRR: Mapped %u regions using additive method\n", MtrrMapAdd.idxMtrr)); 3583 3583 … … 3607 3607 Assert(MtrrMapSub.idxMtrr > 0); 3608 3608 Assert(MtrrMapSub.idxMtrr <= MtrrMapSub.cMtrrs); 3609 Assert(MtrrMapSub.cbMapped == cb);3609 Assert(MtrrMapSub.cbMapped == MtrrMapSub.cbToMap); 3610 3610 Log3(("CPUM: MTRR: Mapped %u regions using subtractive method\n", MtrrMapSub.idxMtrr)); 3611 3611 } … … 3642 3642 int const rc = cpumR3MtrrMapAddMap(pVM, pMtrrMap, pMtrrMapOptimal); 3643 3643 if ( RT_SUCCESS(rc) 3644 && pMtrrMapOptimal->cbMapped == pMtrrMapOptimal->cbToMap) 3644 && pMtrrMapOptimal->cbMapped == pMtrrMapOptimal->cbToMap) /* Required to distinguish full vs overflow state. */ 3645 3645 return VINF_SUCCESS; 3646 3646 return VERR_OUT_OF_RESOURCES;
Note:
See TracChangeset
for help on using the changeset viewer.