VirtualBox

Changeset 102807 in vbox


Ignore:
Timestamp:
Jan 10, 2024 7:29:10 AM (11 months ago)
Author:
vboxsync
Message:

VMM/CPUM: bugref:10498 Comment and nit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r102806 r102807  
    35793579            Assert(MtrrMapAdd.idxMtrr > 0);
    35803580            Assert(MtrrMapAdd.idxMtrr <= MtrrMapAdd.cMtrrs);
    3581             Assert(MtrrMapAdd.cbMapped == cb);
     3581            Assert(MtrrMapAdd.cbMapped == MtrrMapAdd.cbToMap);
    35823582            Log3(("CPUM: MTRR: Mapped %u regions using additive method\n", MtrrMapAdd.idxMtrr));
    35833583
     
    36073607            Assert(MtrrMapSub.idxMtrr > 0);
    36083608            Assert(MtrrMapSub.idxMtrr <= MtrrMapSub.cMtrrs);
    3609             Assert(MtrrMapSub.cbMapped == cb);
     3609            Assert(MtrrMapSub.cbMapped == MtrrMapSub.cbToMap);
    36103610            Log3(("CPUM: MTRR: Mapped %u regions using subtractive method\n", MtrrMapSub.idxMtrr));
    36113611        }
     
    36423642    int const rc = cpumR3MtrrMapAddMap(pVM, pMtrrMap, pMtrrMapOptimal);
    36433643    if (   RT_SUCCESS(rc)
    3644         && pMtrrMapOptimal->cbMapped == pMtrrMapOptimal->cbToMap)
     3644        && pMtrrMapOptimal->cbMapped == pMtrrMapOptimal->cbToMap) /* Required to distinguish full vs overflow state. */
    36453645        return VINF_SUCCESS;
    36463646    return VERR_OUT_OF_RESOURCES;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette