Skip to content

Commit

Permalink
KVM: x86: a vCPU with a pending triple fault is runnable
Browse files Browse the repository at this point in the history
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Paolo Bonzini committed May 12, 2022
1 parent 1075d41 commit c9f3d9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c9f3d9f

Please sign in to comment.