Skip to content

block-ram-registrar: reset when the graph changes

Stefan Hajnoczi qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: add BdrvChildClass->pre_detach() and ->post_attach()block.c include/block/block_int-common.h+42 -00 replies
2/3block-backend: add graph change notifier APIblock/block-backend.c block/trace-events include/sysemu/block-backend-global-state.h+91 -00 replies
3/3block-ram-registrar: reset when the graph changesblock/block-ram-registrar.c+35 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] block-ram-registrar: reset when the graph changes

Kevin pointed out that block-ram-registrar doesn't handle graph changes. New nodes must have all of guest RAM registered before they can process I/O requests with BDRV_REQ_REGISTERED_BUF.

These patches add a mechanism for monitoring graph changes and use it to refresh registered buffers in block-ram-registrar.

Stefan Hajnoczi (3):
block: add BdrvChildClass->pre_detach() and ->post_attach()
block-backend: add graph change notifier API
block-ram-registrar: reset when the graph changes

 include/block/block_int-common.h            |  8 +++
 include/sysemu/block-backend-global-state.h | 10 +++
 block.c                                     | 34 +++++++++
 block/block-backend.c                       | 79 +++++++++++++++++++++
 block/block-ram-registrar.c                 | 40 +++++++++--
 block/trace-events                          |  2 +
 6 files changed, 168 insertions(+), 5 deletions(-)
Signature · 1 line
2.39.0