]> git.proxmox.com Git - mirror_qemu.git/commit
virtio: Introduce virtio_add_queue_aio
authorFam Zheng <famz@redhat.com>
Wed, 13 Jul 2016 05:09:44 +0000 (13:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 21 Jul 2016 17:44:19 +0000 (20:44 +0300)
commit872dd82c83745a603d2e07a03d34313eb6467ae4
tree3cd33bcfc6cac8c21cd820aa46374145f3b92daa
parentbf1780b0d57af0ef3c14a036bc6be1e509dd72fc
virtio: Introduce virtio_add_queue_aio

Using this function instead of virtio_add_queue marks the vq as aio
based. This differentiation will be useful in later patches.

Distinguish between virtqueue processing in the iohandler context and main loop
AioContext.  iohandler context is isolated from AioContexts and therefore does
not run during aio_poll().

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h