virtio: add aio handler
commit344dc16fae0cb6a011aa5befffc8e7d520b11d5d
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 6 Apr 2016 10:16:25 +0000 (6 12:16 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2016 16:57:33 +0000 (7 19:57 +0300)
treee32e2113e95926f9a08373f907a4cbd3221fbb66
parent43c696a298f6bef81818b1d8e64d41a160782101
virtio: add aio handler

In addition to handling IO in vcpu thread and in io thread, blk dataplane
introduces yet another mode: handling it by AioContext.

Currently, this reuses the same handler as previous modes,
which triggers races as these were not designed to be reentrant.
Add instead a separate handler just for aio; this will make
it possible to disable regular handlers when dataplane is active.

Signed-off-by: Michael S. Tsirkin <mst@redhat.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.c
include/hw/virtio/virtio.h