]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio.c
virtio: add start_ioeventfd and stop_ioeventfd to VirtioDeviceClass
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Oct 2016 20:48:07 +0000 (22:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 17:51:32 +0000 (19:51 +0200)
commitff4c07df67f098234d9e49850435ccb49b8cbbdc
tree52c0cf25041eec19e18dd2d2ef87784bb21e9f11
parentb13d39622703ae7449f769c14da7a90f20f2c25c
virtio: add start_ioeventfd and stop_ioeventfd to VirtioDeviceClass

Allow customization of the start and stop of ioeventfd.  This will
allow direct start of dataplane without passing through the default
ioeventfd handlers, which in turn allows using the dataplane logic
instead of virtio_add_queue_aio.  It will also enable some code
simplification, because the sole entry point to ioeventfd setup
will 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
include/hw/virtio/virtio.h