Changeset 87550 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Feb 3, 2021 9:54:10 AM (4 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r87546 r87550 1161 1161 if (pVM->hm.s.vmx.fSupported) 1162 1162 { 1163 pVM->hm.s.vmx.fUsePreemptTimer &= g_fHmVmxUsePreemptTimer; /* Can be overridden by CFGM in HMR3Init(). */ 1163 pVM->hmr0.s.vmx.fUsePreemptTimer = pVM->hm.s.vmx.fUsePreemptTimerCfg && g_fHmVmxUsePreemptTimer; 1164 pVM->hm.s.vmx.fUsePreemptTimerCfg = pVM->hmr0.s.vmx.fUsePreemptTimer; 1164 1165 pVM->hm.s.vmx.cPreemptTimerShift = g_cHmVmxPreemptTimerShift; 1165 1166 pVM->hm.s.vmx.u64HostCr4 = g_uHmVmxHostCr4; -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r87548 r87550 3814 3814 3815 3815 /* Enable the VMX-preemption timer. */ 3816 if (pVM->hm .s.vmx.fUsePreemptTimer)3816 if (pVM->hmr0.s.vmx.fUsePreemptTimer) 3817 3817 { 3818 3818 Assert(g_HmMsrs.u.vmx.PinCtls.n.allowed1 & VMX_PIN_CTLS_PREEMPT_TIMER); … … 5118 5118 * For nested-guests, currently not exposed/used. 5119 5119 */ 5120 if ( pVM->hm.s.vmx.fUsePreemptTimer 5121 && (g_HmMsrs.u.vmx.ExitCtls.n.allowed1 & VMX_EXIT_CTLS_SAVE_PREEMPT_TIMER)) 5120 if (pVM->hmr0.s.vmx.fUsePreemptTimer) 5121 { 5122 Assert(g_HmMsrs.u.vmx.ExitCtls.n.allowed1 & VMX_EXIT_CTLS_SAVE_PREEMPT_TIMER); 5122 5123 fVal |= VMX_EXIT_CTLS_SAVE_PREEMPT_TIMER; 5124 } 5123 5125 5124 5126 /* Don't acknowledge external interrupts on VM-exit. We want to let the host do that. */ … … 7122 7124 PVMXVMCSINFO pVmcsInfo = hmGetVmxActiveVmcsInfo(pVCpu); 7123 7125 7124 if (pVM->hm .s.vmx.fUsePreemptTimer)7126 if (pVM->hmr0.s.vmx.fUsePreemptTimer) 7125 7127 { 7126 7128 uint64_t cTicksToDeadline = TMCpuTickGetDeadlineAndTscOffset(pVM, pVCpu, &uTscOffset, &fOffsettedTsc, &fParavirtTsc);
Note:
See TracChangeset
for help on using the changeset viewer.