virtio: use virtio_bus_set_host_notifier to start/stop ioeventfd
commited08a2a0ba165bfa3d520126eed340c803308321
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Oct 2016 20:48:14 +0000 (21 22:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 18:06:21 +0000 (30 20:06 +0200)
treeb84e53daba9e6bc08c8c9c6d5b39070f45bc89d8
parente616c2f390634a241f7899ff4c52bed9803103c6
virtio: use virtio_bus_set_host_notifier to start/stop ioeventfd

ioeventfd_disabled was the only reason for the default
implementation of virtio_device_start_ioeventfd not to use
virtio_bus_set_host_notifier.  This is now fixed, and the sole entry
point to set up ioeventfd can be virtio_bus_set_host_notifier.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
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/virtio-bus.c
hw/virtio/virtio.c
include/hw/virtio/virtio-bus.h