Skip to content

qemu-io-cmds: move to coroutine

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11block-coroutine-wrapper: allow non bdrv_ prefixscripts/block-coroutine-wrapper.py+4 -30 replies
2/11block-coroutine-wrapper: support BlockBackend first argumentblock/block-gen.h scripts/block-coroutine-wrapper.py+24 -110 replies
3/11block/block-gen.h: bind monitorblock/block-gen.h+10 -03 replies
4/11block: introduce bdrv_debug_wait_breakblock.c block/blkdebug.c include/block/block.h +1 more+29 -00 replies
5/11qemu-io-cmds: move qemu-io commands to coroutineblock/meson.build include/qemu-io.h qemu-io-cmds.c+34 -880 replies
6/11block: drop unused bdrv_debug_is_suspended()block.c block/blkdebug.c include/block/block.h +1 more+0 -160 replies
7/11block-backend: add _co_ versions of blk_save_vmstate / blk_load_vmstateblock/block-backend.c include/sysemu/block-backend.h+40 -00 replies
8/11qemu-io-cmds: refactor read_f(): drop extra helpers and variablesqemu-io-cmds.c+6 -380 replies
9/11qemu-io-cmds: refactor write_f(): drop extra helpers and variablesqemu-io-cmds.c+8 -730 replies
10/11qemu-io-cmds: drop do_co_readv() and do_co_writev() helpersqemu-io-cmds.c+6 -320 replies
11/11block-backend: drop unused blk_save_vmstate() and blk_load_vmstate()block/block-backend.c include/sysemu/block-backend.h+0 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] qemu-io-cmds: move to coroutine

Hi!

I've done this by accident. I decided that it is needed to make a nice fix for a problem with aio context locking in hmp_qemu_io(). Still, the problem is fixed without this series, so it's based on on the fix instead of being preparation for it:

Based-on: <[email protected]>
"[PATCH v2] monitor: hmp_qemu_io: acquire aio contex, fix crash"

When I understood this, the series was more than half-done, so I decided to finish it. I think it's a good refactoring. And moving block-layer things to coroutine is good in general: we reduce number of polling loops here and there.

Vladimir Sementsov-Ogievskiy (11):
block-coroutine-wrapper: allow non bdrv_ prefix
block-coroutine-wrapper: support BlockBackend first argument block/block-gen.h: bind monitor
block: introduce bdrv_debug_wait_break
qemu-io-cmds: move qemu-io commands to coroutine
block: drop unused bdrv_debug_is_suspended()
block-backend: add _co_ versions of blk_save_vmstate /
blk_load_vmstate
qemu-io-cmds: refactor read_f(): drop extra helpers and variables
qemu-io-cmds: refactor write_f(): drop extra helpers and variables
qemu-io-cmds: drop do_co_readv() and do_co_writev() helpers
block-backend: drop unused blk_save_vmstate() and blk_load_vmstate()

 block/block-gen.h                  |  22 ++-
 include/block/block.h              |   2 +-
 include/block/block_int.h          |   2 +-
 include/qemu-io.h                  |   9 +-
 include/sysemu/block-backend.h     |   6 +-
 block.c                            |  10 +-
 block/blkdebug.c                   |  17 ++-
 block/block-backend.c              |  21 ++-
 qemu-io-cmds.c                     | 237 ++++-------------------------
 block/meson.build                  |   3 +-
 scripts/block-coroutine-wrapper.py |  30 +++-
 11 files changed, 113 insertions(+), 246 deletions(-)
Signature · 1 line
2.29.2