diff mbox

[v2,1/2] kvm: x86: set KVM_REQ_EVENT when updating IRR

Message ID 1444328614-7195-2-git-send-email-rkrcmar@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Radim Krčmář Oct. 8, 2015, 6:23 p.m. UTC
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>
 v2: completely rewritten

 arch/x86/kvm/lapic.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox


diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 944b38a56929..168b8759bd73 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -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);