qemu-patch-raspberry4/hw/block/dataplane
Stefan Hajnoczi 48ff269272 dataplane: replace internal thread with IOThread
Today virtio-blk dataplane uses a 1:1 device-per-thread model.  Now that
IOThreads have been introduced we can generalize this to N:M devices per
threads.

This patch drops thread code from dataplane in favor of running inside
an IOThread AioContext.

As a bonus we solve the case where a guest keeps submitting I/O requests
while dataplane is trying to stop.  Previously the dataplane thread
would continue to process requests until the request gave it a break.
Now we can shut down in bounded time thanks to
aio_context_acquire/release.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-03-13 14:42:24 +01:00
..
ioq.c hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
ioq.h hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
Makefile.objs hw: move virtio devices to hw/ subdirectories 2013-04-08 18:13:12 +02:00
virtio-blk.c dataplane: replace internal thread with IOThread 2014-03-13 14:42:24 +01:00
virtio-blk.h virtio-blk-dataplane: Improve error reporting 2013-12-09 21:46:48 +01:00