KVM: fix ack not being delivered when msi present
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jul 2009 14:10:01 +0000 (17:10 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 5 Aug 2009 11:03:43 +0000 (14:03 +0300)
commit5116d8f6b977970ebefc1932c0f313163a6ec91f
tree6666716c07c7c3e1ea9803350278e96e02fbf16a
parentd3bc2f91b4761a8d9f96bea167fef2f8c00dea54
KVM: fix ack not being delivered when msi present

kvm_notify_acked_irq does not check irq type, so that it sometimes
interprets msi vector as irq.  As a result, ack notifiers are not
called, which typially hangs the guest.  The fix is to track and
check irq type.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
virt/kvm/irq_comm.c