From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URka6-0007lU-KD for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:40:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URka3-0000mF-RU for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:40:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URka3-0000m0-Ko for qemu-devel@nongnu.org; Mon, 15 Apr 2013 10:40:27 -0400 Date: Mon, 15 Apr 2013 17:40:24 +0300 From: "Michael S. Tsirkin" Message-ID: <20130415144024.GA20178@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH RFC] vhost: fix vhost force with msix=off List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-devel@nongnu.org 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 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; }