KVM: X86: Don't block vCPU if there is pending exception
[muen/linux.git] / arch / x86 / kvm / x86.c
index f4a978e3603075e25e28cf02875356cd30c1856a..bfda79fb102c459c05393311fd81633cd8ba45d6 100644 (file)
@@ -8461,6 +8461,9 @@ static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu)
        if (vcpu->arch.pv.pv_unhalted)
                return true;
 
+       if (vcpu->arch.exception.pending)
+               return true;
+
        if (kvm_test_request(KVM_REQ_NMI, vcpu) ||
            (vcpu->arch.nmi_pending &&
             kvm_x86_ops->nmi_allowed(vcpu)))