Skip to content

block: update inserted/removed nodes from BlockRAMRegistrar

Stefan Hajnoczi qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Add a tests/functional test case [Kevin]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5block: add BdrvChildClass->propagate_attach/detach() callbacksblock.c include/block/block_int-common.h+56 -110 replies
2/5block: add blk_add_attach/detach_notifier() APIsblock/block-backend.c include/system/block-backend-global-state.h tests/unit/test-block-backend.c+217 -00 replies
3/5block: rename RAMBlockRegistrar->notifier fieldblock/block-ram-registrar.c include/system/block-ram-registrar.h+9 -70 replies
4/5block: update inserted/removed nodes from BlockRAMRegistrarblock/block-ram-registrar.c include/system/block-ram-registrar.h+61 -20 replies
5/5tests/functional: add vdpa-blk blockdev-mirror testtests/functional/x86_64/meson.build tests/functional/x86_64/test_vdpa_blk_mirror.py+119 -01 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5T-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] block: update inserted/removed nodes from BlockRAMRegistrar

v2:
- Add a tests/functional test case [Kevin]

This patch series fixes a bug in BlockRAMRegistrar: it currently doesn't react to block graph changes and newly inserted nodes lack RAMBlock information needed to map I/O buffers. This is important for vdpa-blk devices because they rely on the ability to map I/O buffers.

Stefan Hajnoczi (5):
block: add BdrvChildClass->propagate_attach/detach() callbacks
block: add blk_add_attach/detach_notifier() APIs
block: rename RAMBlockRegistrar->notifier field
block: update inserted/removed nodes from BlockRAMRegistrar tests/functional: add vdpa-blk blockdev-mirror test

 include/block/block_int-common.h              |  11 ++
 include/system/block-backend-global-state.h   |   9 +
 include/system/block-ram-registrar.h          |   4 +-
 block.c                                       |  56 ++++--
 block/block-backend.c                         |  44 +++++
 block/block-ram-registrar.c                   |  73 +++++++-
 tests/unit/test-block-backend.c               | 164 ++++++++++++++++++
 tests/functional/x86_64/meson.build           |   1 +
 .../functional/x86_64/test_vdpa_blk_mirror.py | 118 +++++++++++++
 9 files changed, 461 insertions(+), 19 deletions(-)
 create mode 100755 tests/functional/x86_64/test_vdpa_blk_mirror.py
Signature · 1 line
2.51.0