Changeset 91266 in vbox for trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
- Timestamp:
- Sep 15, 2021 10:26:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
r85183 r91266 5517 5517 * Binary lookup. 5518 5518 */ 5519 uint32_t cRanges = pVM->cpum.s.GuestInfo.cMsrRanges;5519 uint32_t cRanges = RT_MIN(pVM->cpum.s.GuestInfo.cMsrRanges, RT_ELEMENTS(pVM->cpum.s.GuestInfo.aMsrRanges)); 5520 5520 if (!cRanges) 5521 5521 return NULL; 5522 PCPUMMSRRANGE paRanges = pVM->cpum.s.GuestInfo. CTX_SUFF(paMsrRanges);5522 PCPUMMSRRANGE paRanges = pVM->cpum.s.GuestInfo.aMsrRanges; 5523 5523 for (;;) 5524 5524 { … … 5550 5550 * Linear lookup to verify the above binary search. 5551 5551 */ 5552 uint32_t cLeft = pVM->cpum.s.GuestInfo.cMsrRanges;5553 PCPUMMSRRANGE pCur = pVM->cpum.s.GuestInfo. CTX_SUFF(paMsrRanges);5552 uint32_t cLeft = RT_MIN(pVM->cpum.s.GuestInfo.cMsrRanges, RT_ELEMENTS(pVM->cpum.s.GuestInfo.aMsrRanges)); 5553 PCPUMMSRRANGE pCur = pVM->cpum.s.GuestInfo.aMsrRanges; 5554 5554 while (cLeft-- > 0) 5555 5555 {
Note:
See TracChangeset
for help on using the changeset viewer.