KVM: ioapic: clear IRR for edge-triggered interrupts at delivery
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Mar 2014 09:47:17 +0000 (10:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2014 09:20:10 +0000 (10:20 +0100)
This ensures that IRR bits are set in the KVM_GET_IRQCHIP result only if
the interrupt is still sitting in the IOAPIC.  After the next patches, it
avoids spurious reinjection of the interrupt when KVM_SET_IRQCHIP is
called.

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/ioapic.c

Simple merge