Changeset 52770 in vbox
- Timestamp:
- Sep 17, 2014 11:04:43 AM (10 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
r52717 r52770 1328 1328 : 0; 1329 1329 uint64_t fMask = 0; 1330 uint64_t fIgnoreMask = MSR_K6_EFER_LMA; 1330 1331 1331 1332 /* Filter out those bits the guest is allowed to change. (e.g. LMA is read-only) */ … … 1340 1341 1341 1342 /* #GP(0) If anything outside the allowed bits is set. */ 1342 if ( (uValue | fMask) != fMask)1343 if (uValue & ~(fIgnoreMask | fMask)) 1343 1344 { 1344 1345 Log(("CPUM: Settings disallowed EFER bit. uValue=%#RX64 fAllowed=%#RX64 -> #GP(0)\n", uValue, fMask)); -
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r52717 r52770 1417 1417 : 0; 1418 1418 uint64_t fMask = 0; 1419 uint64_t fIgnoreMask = MSR_K6_EFER_LMA; 1419 1420 1420 1421 /* Filter out those bits the guest is allowed to change. (e.g. LMA is read-only) */ … … 1429 1430 1430 1431 /* #GP(0) If anything outside the allowed bits is set. */ 1431 if ( (uValue | fMask) != fMask)1432 if (uValue & ~(fIgnoreMask | fMask)) 1432 1433 { 1433 1434 Log(("CPUM: Settings disallowed EFER bit. uValue=%#RX64 fAllowed=%#RX64 -> #GP(0)\n", uValue, fMask));
Note:
See TracChangeset
for help on using the changeset viewer.