KVM: x86: don't notify userspace IOAPIC on edge EOI
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 8 Oct 2015 18:30:00 +0000 (20:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Oct 2015 14:41:08 +0000 (16:41 +0200)
commit13db77347db175a68edd58a79963cdf5cb3a9607
treea3541835b34f7e1a5593eee1af2391b4eb7e1b19
parentdb2bdcbbbd32e5500b822d5e74ef8b5bd777e687
KVM: x86: don't notify userspace IOAPIC on edge EOI

On real hardware, edge-triggered interrupts don't set a bit in TMR,
which means that IOAPIC isn't notified on EOI.  Do the same here.

Staying in guest/kernel mode after edge EOI is what we want for most
devices.  If some bugs could be nicely worked around with edge EOI
notifications, we should invest in a better interface.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/irq_comm.c