Re: [PATCH 2/4] KVM: ioapic: clear IRR for edge-triggered interrupts at delivery

2014-03-20 Thread Alex Williamson
On Tue, 2014-03-18 at 15:54 +0100, Paolo Bonzini wrote: 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.

[PATCH 2/4] KVM: ioapic: clear IRR for edge-triggered interrupts at delivery

2014-03-18 Thread Paolo Bonzini
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. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- virt/kvm/ioapic.c |