diff options
| author | Stefan Hajnoczi | 2014-03-03 11:30:08 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-03-13 14:42:24 +0100 |
| commit | 48ff269272f18d2b8fa53cb08365df417588f585 (patch) | |
| tree | 45fb082c737ed43501322e2fd042d5a03d655785 /include/exec/memory.h | |
| parent | iothread: add "iothread" qdev property type (diff) | |
| download | qemu-48ff269272f18d2b8fa53cb08365df417588f585.tar.gz qemu-48ff269272f18d2b8fa53cb08365df417588f585.tar.xz qemu-48ff269272f18d2b8fa53cb08365df417588f585.zip | |
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>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
