Skip to content

blockdev-replace

Vladimir Sementsov-Ogievskiy qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 1 replyIn review
  2. v2 RFC4 patches 0 repliesSuperseded
  3. v1 RFC8 patches 12 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11block-backend: blk_root(): drop const specifier on return typeblock/block-backend.c include/sysemu/block-backend.h+2 -20 replies
2/11block/export: add blk_by_export_id()block/export/export.c include/sysemu/block-backend.h+19 -00 replies
3/11block: make bdrv_find_child() function publicblock.c blockdev.c include/block/block_int.h+14 -140 replies
4/11block: bdrv_replace_child_bs(): move to external transactionblock.c block/block-backend.c include/block/block.h+35 -170 replies
5/11qapi: add x-blockdev-replace commandblockdev.c qapi/block-core.json stubs/blk-by-qdev-id.c +1 more+137 -00 replies
6/11qapi: add x-blockdev-replace transaction actionblockdev.c qapi/transaction.json+47 -10 replies
7/11block: bdrv_get_xdbg_block_graph(): report export idsblock.c block/export/export.c include/block/export.h +2 more+28 -00 replies
8/11iotests.py: qemu_img_create: use imgfmt by defaulttests/qemu-iotests/iotests.py+2 -00 replies
9/11iotests.py: introduce VM.assert_edges_list() methodtests/qemu-iotests/iotests.py+17 -00 replies
10/11iotests.py: add VM.qmp_check() helpertests/qemu-iotests/iotests.py+4 -00 replies
11/11iotests: add filter-insertiontests/qemu-iotests/tests/filter-insertion tests/qemu-iotests/tests/filter-insertion.out+258 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 00/11] blockdev-replace

Hi all!

Finally, that's a proposal for new interface for filter insertion, which provides generic way for inserting between different block graph nodes, like BDS nodes, block exports and block devices.

v3: - add transaction support
- add test, that shows transactional filter insertion in different cases
- drop RFC mark. I think it's now close to be a good solution. And anyway, no comments on "RFC v2" version :) Still, I want to keep x- prefix for now, just because there were too many different ideas on this topic.

Vladimir Sementsov-Ogievskiy (11):
block-backend: blk_root(): drop const specifier on return type block/export: add blk_by_export_id()
block: make bdrv_find_child() function public
block: bdrv_replace_child_bs(): move to external transaction
qapi: add x-blockdev-replace command
qapi: add x-blockdev-replace transaction action
block: bdrv_get_xdbg_block_graph(): report export ids iotests.py: qemu_img_create: use imgfmt by default iotests.py: introduce VM.assert_edges_list() method iotests.py: add VM.qmp_check() helper
iotests: add filter-insertion

 qapi/block-core.json                          |  62 +++++
 qapi/transaction.json                         |  14 +-
 include/block/block.h                         |   2 +-
 include/block/block_int.h                     |   1 +
 include/block/export.h                        |   1 +
 include/sysemu/block-backend.h                |   3 +-
 block.c                                       |  59 ++--
 block/block-backend.c                         |  10 +-
 block/export/export.c                         |  31 +++
 blockdev.c                                    | 113 +++++++-
 stubs/blk-by-qdev-id.c                        |   9 +
 stubs/blk-exp-find-by-blk.c                   |   9 +
 stubs/meson.build                             |   2 +
 tests/qemu-iotests/iotests.py                 |  23 ++
 tests/qemu-iotests/tests/filter-insertion     | 253 ++++++++++++++++++
 tests/qemu-iotests/tests/filter-insertion.out |   5 +
 16 files changed, 563 insertions(+), 34 deletions(-)
 create mode 100644 stubs/blk-by-qdev-id.c
 create mode 100644 stubs/blk-exp-find-by-blk.c
 create mode 100755 tests/qemu-iotests/tests/filter-insertion
 create mode 100644 tests/qemu-iotests/tests/filter-insertion.out
Signature · 1 line
2.31.1