|
@@ -8046,8 +8046,6 @@ static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch)
|
|
|
|
|
|
enter_guest_mode(vcpu);
|
|
enter_guest_mode(vcpu);
|
|
|
|
|
|
- vmx->nested.nested_run_pending = 1;
|
|
|
|
-
|
|
|
|
vmx->nested.vmcs01_tsc_offset = vmcs_read64(TSC_OFFSET);
|
|
vmx->nested.vmcs01_tsc_offset = vmcs_read64(TSC_OFFSET);
|
|
|
|
|
|
cpu = get_cpu();
|
|
cpu = get_cpu();
|
|
@@ -8066,6 +8064,8 @@ static int nested_vmx_run(struct kvm_vcpu *vcpu, bool launch)
|
|
if (vmcs12->guest_activity_state == GUEST_ACTIVITY_HLT)
|
|
if (vmcs12->guest_activity_state == GUEST_ACTIVITY_HLT)
|
|
return kvm_emulate_halt(vcpu);
|
|
return kvm_emulate_halt(vcpu);
|
|
|
|
|
|
|
|
+ vmx->nested.nested_run_pending = 1;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Note no nested_vmx_succeed or nested_vmx_fail here. At this point
|
|
* Note no nested_vmx_succeed or nested_vmx_fail here. At this point
|
|
* we are no longer running L1, and VMLAUNCH/VMRESUME has not yet
|
|
* we are no longer running L1, and VMLAUNCH/VMRESUME has not yet
|