KVM: fix ack not being delivered when msi present
commita9baf6a17556ebc308cf569ef6459e486735717b
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Sep 2009 15:15:14 +0000 (1 12:15 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:37 +0000 (8 20:33 -0700)
tree5d0fb416ee4645bbdedc12a377ca2b02c70201ee
parent14596338f2a9ad1f461f2683d41a8bc279962c40
KVM: fix ack not being delivered when msi present

(cherry picked from commit 5116d8f6b977970ebefc1932c0f313163a6ec91f)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kvm_host.h
virt/kvm/irq_comm.c