Skip to content

block: Coroutine support

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block: Add bdrv_co_readv/writevMakefile.objs block.c block.h +2 more+60 -10 replies
2/10block: Emulate AIO functions with bdrv_co_readv/writevblock.c+97 -10 replies
3/10block: Add bdrv_co_readv/writev emulationblock.c trace-events+77 -81 reply
4/10coroutines: LocksMakefile.objs qemu-coroutine-int.h qemu-coroutine-lock.c +2 more+198 -10 replies
5/10qcow2: Use coroutinesblock/qcow2-cluster.c block/qcow2.c block/qcow2.h+102 -1691 reply
6/10qcow: Use coroutinesblock/qcow.c+62 -1180 replies
7/10async: Remove AsyncContextasync.c block.c block/qed-table.c +4 more+11 -1690 replies
8/10coroutines: Use one global bottom half for CoQueueqemu-coroutine-lock.c+6 -130 replies
9/10posix-aio-compat: Allow read after EOFposix-aio-compat.c+19 -02 replies
10/10block: Use bdrv_co_* instead of synchronous versions in coroutinesblock.c+43 -01 reply

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] block: Coroutine support

Depends 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 (10):
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
posix-aio-compat: Allow read after EOF
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           |   43 +-------
 posix-aio-compat.c    |   30 ++++--
 qemu-common.h         |    4 -
 qemu-coroutine-int.h  |    1 +
 qemu-coroutine-lock.c |  117 +++++++++++++++++++++
 qemu-coroutine.h      |   64 ++++++++++++
 trace-events          |   11 ++
 18 files changed, 659 insertions(+), 464 deletions(-)
 create mode 100644 qemu-coroutine-lock.c
Signature · 1 line
1.7.6