aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 58badf1657d4..f5b49c7fc89d 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5694,8 +5694,8 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu)
5694 if (vmx->nested.nested_run_pending) 5694 if (vmx->nested.nested_run_pending)
5695 kvm_make_request(KVM_REQ_EVENT, vcpu); 5695 kvm_make_request(KVM_REQ_EVENT, vcpu);
5696 5696
5697 if (exit_reason == EXIT_REASON_VMLAUNCH || 5697 if (!is_guest_mode(vcpu) && (exit_reason == EXIT_REASON_VMLAUNCH ||
5698 exit_reason == EXIT_REASON_VMRESUME) 5698 exit_reason == EXIT_REASON_VMRESUME))
5699 vmx->nested.nested_run_pending = 1; 5699 vmx->nested.nested_run_pending = 1;
5700 else 5700 else
5701 vmx->nested.nested_run_pending = 0; 5701 vmx->nested.nested_run_pending = 0;