virtio_pci: fix level interrupts with irqfd

commit 62c96360ae
    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>
This commit is contained in:
Michael S. Tsirkin 2013-09-01 11:03:45 +03:00
parent a0dba644c1
commit 23fe2b3f9e
1 changed files with 1 additions and 2 deletions

View File

@ -799,8 +799,7 @@ static int virtio_pci_set_guest_notifiers(DeviceState *d, int nvqs, bool assign)
break; break;
} }
r = virtio_pci_set_guest_notifier(d, n, assign, r = virtio_pci_set_guest_notifier(d, n, assign, with_irqfd);
kvm_msi_via_irqfd_enabled());
if (r < 0) { if (r < 0) {
goto assign_error; goto assign_error;
} }