Changeset 74392 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 20, 2018 4:55:05 PM (6 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp
r74258 r74392 1557 1557 { 1558 1558 PCCPUMFEATURES pGuestFeatures = &pVCpu->CTX_SUFF(pVM)->cpum.s.GuestFeatures; 1559 uint64_t const uVmxMsr = pGuestFeatures->fVmx ? VMX_V_CR0_FIXED0 : 0; 1560 return uVmxMsr; 1559 if (pGuestFeatures->fVmx) 1560 { 1561 uint64_t const uVmxMsr = pGuestFeatures->fVmxUnrestrictedGuest ? VMX_V_CR0_FIXED0_UX : VMX_V_CR0_FIXED0; 1562 return uVmxMsr; 1563 } 1564 return 0; 1561 1565 } 1562 1566 -
trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h
r74385 r74392 5338 5338 if (IEM_IS_VMX_ROOT_MODE(pVCpu)) 5339 5339 { 5340 uint32_t const uCr0Fixed0 = IEM_GET_GUEST_CPU_FEATURES(pVCpu)->fVmxUnrestrictedGuest ? 5341 VMX_V_CR0_FIXED0_UX : VMX_V_CR0_FIXED0; 5340 uint32_t const uCr0Fixed0 = CPUMGetGuestIa32VmxCr0Fixed0(pVCpu); 5342 5341 if ((uNewCrX & uCr0Fixed0) != uCr0Fixed0) 5343 5342 { … … 5565 5564 if (IEM_IS_VMX_ROOT_MODE(pVCpu)) 5566 5565 { 5567 uint32_t const uCr4Fixed0 = VMX_V_CR4_FIXED0;5566 uint32_t const uCr4Fixed0 = CPUMGetGuestIa32VmxCr4Fixed0(pVCpu); 5568 5567 if ((uNewCrX & uCr4Fixed0) != uCr4Fixed0) 5569 5568 {
Note:
See TracChangeset
for help on using the changeset viewer.