virtio: remove ioeventfd_disabled altogether
commite616c2f390634a241f7899ff4c52bed9803103c6
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Oct 2016 20:48:13 +0000 (21 22:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 18:06:20 +0000 (30 20:06 +0200)
treebda679e5cbf2fd8d577f703b5bc2fda5f5aa93a4
parent6019f3b966d5764fd655b57887599e5e2d544f73
virtio: remove ioeventfd_disabled altogether

Now that there is not anymore a switch from the generic ioeventfd handler
to the dataplane handler, virtio_bus_set_host_notifier(assign=true) is
always called with !bus->ioeventfd_started, hence virtio_bus_stop_ioeventfd
does nothing in this case.  Move the invocation to vhost.c, which is the
only place that needs it.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c
hw/virtio/virtio-bus.c
include/hw/virtio/virtio-bus.h