summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-04-27 13:34:51 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-12 09:51:44 -0400
commitc9f3d9fbcd9a013f44a43bd74a3f40d924ce4843 (patch)
treedd73a4b5fea0dbae91e93c29e7ddcb363c9910f8
parent1075d41efd598d3fd4d52a1e1116b20979975135 (diff)
downloadlinux-c9f3d9fbcd9a013f44a43bd74a3f40d924ce4843.tar.bz2
KVM: x86: a vCPU with a pending triple fault is runnable
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 85dfa414582d..476ea099ebf0 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -12266,6 +12266,9 @@ static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu)
if (kvm_xen_has_pending_events(vcpu))
return true;
+ if (kvm_test_request(KVM_REQ_TRIPLE_FAULT, vcpu))
+ return true;
+
return false;
}