Changeset 87497 in vbox
- Timestamp:
- Feb 1, 2021 11:39:30 AM (4 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/HMAll.cpp
r87488 r87497 790 790 * extra careful if/when the guest switches back to protected mode. 791 791 */ 792 if (enmGuestMode == PGMMODE_REAL) 792 if ( enmGuestMode == PGMMODE_REAL 793 && pVM->hm.s.vmx.fEnabled) 793 794 { 794 795 PVMXVMCSINFOSHARED pVmcsInfoShared = hmGetVmxActiveVmcsInfoShared(pVCpu); -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r87493 r87497 2047 2047 pVCpu->hm.s.fActive = false; 2048 2048 pVCpu->hm.s.Event.fPending = false; 2049 pVCpu->hm.s.vmx.u64GstMsrApicBase = 0; 2050 pVCpu->hm.s.vmx.VmcsInfo.fSwitchedTo64on32Obsolete = false; 2051 pVCpu->hm.s.vmx.VmcsInfo.fWasInRealMode = true; 2049 PVM pVM = pVCpu->CTX_SUFF(pVM); 2050 if (pVM->hm.s.vmx.fEnabled) 2051 { 2052 pVCpu->hm.s.vmx.u64GstMsrApicBase = 0; 2053 pVCpu->hm.s.vmx.VmcsInfo.fSwitchedTo64on32Obsolete = false; 2054 pVCpu->hm.s.vmx.VmcsInfo.fWasInRealMode = true; 2052 2055 #ifdef VBOX_WITH_NESTED_HWVIRT_VMX 2053 if (pVCpu->CTX_SUFF(pVM)->cpum.ro.GuestFeatures.fVmx)2054 {2055 pVCpu->hm.s.vmx.VmcsInfoNstGst.fSwitchedTo64on32Obsolete = false;2056 pVCpu->hm.s.vmx.VmcsInfoNstGst.fWasInRealMode = true;2057 }2056 if (pVCpu->CTX_SUFF(pVM)->cpum.ro.GuestFeatures.fVmx) 2057 { 2058 pVCpu->hm.s.vmx.VmcsInfoNstGst.fSwitchedTo64on32Obsolete = false; 2059 pVCpu->hm.s.vmx.VmcsInfoNstGst.fWasInRealMode = true; 2060 } 2058 2061 #endif 2062 } 2059 2063 } 2060 2064
Note:
See TracChangeset
for help on using the changeset viewer.