[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off |
Date: |
Thu, 18 Apr 2013 19:19:42 +0200 |
On 15.04.2013, at 16:40, Michael S. Tsirkin wrote:
> 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>
This does indeed make level interrupts work with vhost. Thanks a lot!
Tested-by: Alexander Graf <address@hidden>
Alex
>
> 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, 2013/04/15
- 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 <=