[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] virtio: Fix setting up host notifiers for vh
Re: [Qemu-devel] [PATCH v2] virtio: Fix setting up host notifiers for vhost
Thu, 30 Jun 2016 14:04:13 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
Am 30.06.2016 um 13:52 schrieb Cornelia Huck:
When setting up host notifiers, virtio_bus_set_host_notifier()
simply switches the handler. This will only work, however, if
the ioeventfd has already been setup; this is true for dataplane,
but not for vhost, and will completely break things if the
ioeventfd is disabled for the device.
Fix this by starting the ioeventfd on assign if that has not
happened before, and only switch the handler if the ioeventfd
has really been started.
While we're at it, also fixup the unsetting path of
This fixes also iSCSI + dataplane.