|
@@ -9588,7 +9588,7 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
|
|
* If the L02 MSR bitmap does not intercept the MSR, then we need to
|
|
* If the L02 MSR bitmap does not intercept the MSR, then we need to
|
|
* save it.
|
|
* save it.
|
|
*/
|
|
*/
|
|
- if (!msr_write_intercepted(vcpu, MSR_IA32_SPEC_CTRL))
|
|
|
|
|
|
+ if (unlikely(!msr_write_intercepted(vcpu, MSR_IA32_SPEC_CTRL)))
|
|
vmx->spec_ctrl = native_read_msr(MSR_IA32_SPEC_CTRL);
|
|
vmx->spec_ctrl = native_read_msr(MSR_IA32_SPEC_CTRL);
|
|
|
|
|
|
if (vmx->spec_ctrl)
|
|
if (vmx->spec_ctrl)
|