virtio_pci: fix level interrupts with irqfd
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Sep 2013 08:03:45 +0000 (11:03 +0300)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 7 Nov 2013 04:48:35 +0000 (13:48 +0900)
commitb193e5f00c4eb4dc8aef9785537d3d459e6095b1
tree80710cc0e2474acd835e011762c7d5f3d35d98d7
parent62595cf1f0e9aacd4795eff349816d3be02787bb
virtio_pci: fix level interrupts with irqfd

commit 62c96360ae7f2c7a8b029277fbb7cb082fdef7fd
    virtio-pci: fix level interrupts
only helps systems without irqfd: on systems with irqfd support we
passed in flag requesting irqfd even when msix is disabled.

As a result, for level interrupts we didn't install an fd handler so
unmasking an fd had no effect.

Fix this up.

Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 23fe2b3f9e7df8da53ac1bc32c6875254911d7f4)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio-pci.c