[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off |
Date: |
Mon, 15 Apr 2013 17:40:24 +0300 |
In response to a bug report on IRC: this should fix it I think?
Need to test properly but out of time for today,
compiled only. Hope this helps.
Signed-off-by: Michael S. Tsirkin <address@hidden>
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index 8bba0f3..d0fcc6c 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -758,6 +758,10 @@ static int virtio_pci_set_guest_notifier(DeviceState *d,
int n, bool assign,
event_notifier_cleanup(notifier);
}
+ if (!msix_enabled(&proxy->pci_dev) && proxy->vdev->guest_notifier_mask) {
+ proxy->vdev->guest_notifier_mask(proxy->vdev, n, !assign);
+ }
+
return 0;
}
- [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off,
Michael S. Tsirkin <=
- Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off, Christian Borntraeger, 2013/04/17
- Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off, Michael S. Tsirkin, 2013/04/17
- Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off, Christian Borntraeger, 2013/04/18
- [Qemu-devel] [PATCH RFC 0/3] virtio-ccw: Add notifiers support., Cornelia Huck, 2013/04/22
- [Qemu-devel] [PATCH RFC 1/3] linux-headers: Update with ioeventfd changes., Cornelia Huck, 2013/04/22
- [Qemu-devel] [PATCH RFC 2/3] virtio-ccw: Wire up ioeventfd., Cornelia Huck, 2013/04/22
- [Qemu-devel] [PATCH RFC 3/3] virtio-ccw: Wire up guest and host notifies., Cornelia Huck, 2013/04/22
- Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off, Alexander Graf, 2013/04/18