KVM: nSVM: reset nested_run_pending upon nested_svm_vmrun_msrpm() failure
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 10 Jul 2020 14:11:51 +0000 (16:11 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2020 16:54:25 +0000 (12:54 -0400)
commitebdb3dba7b900a6b280d70f08befa0b96e0f806e
treebb86eb4ad74346860074f5b9880a9b1e58dcc68a
parent8c008659aa43be97c60c1633074b8f52f9f4445c
KVM: nSVM: reset nested_run_pending upon nested_svm_vmrun_msrpm() failure

WARN_ON_ONCE(svm->nested.nested_run_pending) in nested_svm_vmexit()
will fire if nested_run_pending remains '1' but it doesn't really
need to, we are already failing and not going to run nested guest.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200710141157.1640173-4-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c