[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/6] virtio_pci: fix level interrupts with irqfd
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 6/6] virtio_pci: fix level interrupts with irqfd |
Date: |
Mon, 2 Sep 2013 11:07:32 +0300 |
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: address@hidden
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
hw/virtio/virtio-pci.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index d37037e..41b96ce 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -799,8 +799,7 @@ static int virtio_pci_set_guest_notifiers(DeviceState *d,
int nvqs, bool assign)
break;
}
- r = virtio_pci_set_guest_notifier(d, n, assign,
- kvm_msi_via_irqfd_enabled());
+ r = virtio_pci_set_guest_notifier(d, n, assign, with_irqfd);
if (r < 0) {
goto assign_error;
}
--
MST
- [Qemu-devel] [PULL 0/6] pc,pci,virtio fixes and cleanups, Michael S. Tsirkin, 2013/09/02
- [Qemu-devel] [PULL 1/6] pci: Introduce helper to retrieve a PCI device's DMA address space, Michael S. Tsirkin, 2013/09/02
- [Qemu-devel] [PULL 2/6] pc: fix regression for 64 bit PCI memory, Michael S. Tsirkin, 2013/09/02
- [Qemu-devel] [PULL 3/6] pci: add config space access traces, Michael S. Tsirkin, 2013/09/02
- [Qemu-devel] [PULL 5/6] pc: reduce duplication, fix PIIX descriptions, Michael S. Tsirkin, 2013/09/02
- [Qemu-devel] [PULL 6/6] virtio_pci: fix level interrupts with irqfd,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 4/6] hw: Clean up bogus default boot order, Michael S. Tsirkin, 2013/09/02