kvm: x86: set KVM_REQ_EVENT when updating IRR
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 8 Oct 2015 18:23:33 +0000 (20:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Oct 2015 14:41:08 +0000 (16:41 +0200)
After moving PIR to IRR, the interrupt needs to be delivered manually.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c

index 944b38a569297f5b3feb8c00f768e06c766ddeb7..168b8759bd736e6020f83b97e90fc1c03af02fba 100644 (file)
@@ -348,6 +348,8 @@ void kvm_apic_update_irr(struct kvm_vcpu *vcpu, u32 *pir)
        struct kvm_lapic *apic = vcpu->arch.apic;
 
        __kvm_apic_update_irr(pir, apic->regs);
+
+       kvm_make_request(KVM_REQ_EVENT, vcpu);
 }
 EXPORT_SYMBOL_GPL(kvm_apic_update_irr);