RFC Use coroutines in the block layer
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest9 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | block: Add bdrv_co_readv/writevMakefile.objs block.c block.h +2 more | +60 | 0 replies | |
| 2/9 | block: Emulate AIO functions with bdrv_co_readv/writevblock.c | +97 | 0 replies | |
| 3/9 | block: Add bdrv_co_readv/writev emulationblock.c trace-events | +78 | 0 replies | |
| 4/9 | coroutines: LocksMakefile.objs qemu-coroutine-int.h qemu-coroutine-lock.c +2 more | +196 | 0 replies | |
| 5/9 | qcow2: Use coroutinesblock/ block/ block/ | +102 | 0 replies | |
| 6/9 | qcow: Use coroutinesblock/ | +62 | 0 replies | |
| 7/9 | async: Remove AsyncContextasync.c block.c block/ +4 more | +9 | 0 replies | |
| 8/9 | coroutines: Use one global bottom half for CoQueueqemu-coroutine-lock.c | +6 | 0 replies | |
| 9/9 | block: Use bdrv_co_* instead of synchronous versions in coroutinesblock.c | +43 | 4 replies |
Reviews trailers per patch
None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stefan Hajnoczi |
|---|---|
| Series | R-b |
| 1/9 | |
| 2/9 | |
| 3/9 | |
| 4/9 | |
| 5/9 | |
| 6/9 | |
| 7/9 | |
| 8/9 | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [RFC][PATCH 0/9] Use coroutines in the block layer
Based on Stefan's latest coroutine patches. This series makes qcow and qcow2 take advantage of the new coroutine infrastructure. Both formats used synchronous operations for accessing their metadata and blocked the guest CPU during that time. With coroutines, the I/O will happen asynchronously in the background and the CPU won't be blocked any more.
Kevin Wolf (9):
block: Add bdrv_co_readv/writev
block: Emulate AIO functions with bdrv_co_readv/writev
block: Add bdrv_co_readv/writev emulation
coroutines: Locks
qcow2: Use coroutines
qcow: Use coroutines
async: Remove AsyncContext
coroutines: Use one global bottom half for CoQueue
block: Use bdrv_co_* instead of synchronous versions in coroutines
Makefile.objs | 4 +- async.c | 98 ++----------------- block.c | 271 ++++++++++++++++++++++++++++++++++++++++++++++-- block.h | 5 + block/qcow.c | 180 +++++++++++--------------------- block/qcow2-cluster.c | 26 ++--- block/qcow2.c | 240 ++++++++++++++++---------------------------- block/qcow2.h | 5 +- block/qed-table.c | 14 --- block/qed.c | 4 - block_int.h | 6 + linux-aio.c | 24 +---- posix-aio-compat.c | 11 -- qemu-common.h | 4 - qemu-coroutine-int.h | 1 + qemu-coroutine-lock.c | 117 +++++++++++++++++++++ qemu-coroutine.h | 62 +++++++++++ trace-events | 11 ++ 18 files changed, 636 insertions(+), 447 deletions(-) create mode 100644 qemu-coroutine-lock.c
Signature · 1 line
1.7.6