]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio.c
virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2016 10:16:28 +0000 (12:16 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 16:57:33 +0000 (19:57 +0300)
commita378b49a4338ef61b86f4c74a1069036c7409141
tree8a137c4ebf06c2d7cac28179204a4e890c33e5eb
parenta8f2e5c8fffbaf7fbd4f0efc8efbeebade78008f
virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio

Eliminating the reentrancy is actually a nice thing that we can do
with the API that Michael proposed, so let's make it first class.
This also hides the complex assign/set_handler conventions from
callers of virtio_queue_aio_set_host_notifier_handler, which in
fact was always called with assign=true.

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/block/dataplane/virtio-blk.c
hw/scsi/virtio-scsi-dataplane.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h