KVM: x86: a vCPU with a pending triple fault is runnable
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Apr 2022 17:34:51 +0000 (13:34 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 13:51:44 +0000 (09:51 -0400)
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c

index 85dfa414582dcd8ff81823ce0d41323203c41e9a..476ea099ebf0326711da4f280a0f0b2dc1f8c7b4 100644 (file)
@@ -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;
 }