Skip to content

block: Accept node-name in all node level QMP commands

Kevin Wolf qemu-devel 4 versions – Applied

Status from this message: Applied to block-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 16 repliesApplied
  2. v411 patches 32 repliesSuperseded
  3. v311 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v211 patches1 replySuperseded

Changes in v5 from the cover letter

- Sent separate patch "block: Accept any target node for transactional blockdev-backup" and rebased this series on it [Max]
- Check bdrv_is_inserted() in qmp_get_root_bs() [Max]
- Resolved merge conflicts with QAPI boxed type conversion

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/11block: Accept node-name for block-streamblock/block-backend.c blockdev.c include/sysemu/block-backend.h +3 more+45 -182 replies
2/11block: Accept node-name for block-commitblockdev.c qapi/block-core.json qmp-commands.hx+13 -142 replies
3/11block: Accept node-name for blockdev-backupblockdev.c qapi/block-core.json qmp-commands.hx+10 -251 reply
4/11block: Accept node-name for blockdev-mirrorblockdev.c qapi/block-core.json qmp-commands.hx+5 -111 reply
5/11block: Accept node-name for blockdev-snapshot-delete-internal-syncblockdev.c qapi/block.json qmp-commands.hx +1 more+8 -171 reply
6/11block: Accept node-name for blockdev-snapshot-internal-syncblockdev.c qapi/block.json qmp-commands.hx +1 more+11 -171 reply
7/11block: Accept node-name for change-backing-fileblockdev.c qapi/block-core.json qmp-commands.hx+7 -141 reply
8/11block: Accept node-name for drive-backupblockdev.c qapi/block-core.json qmp-commands.hx +1 more+14 -351 reply
9/11block: Accept node-name for drive-mirrorblockdev.c qapi/block-core.json qmp-commands.hx +1 more+11 -192 replies
10/11nbd-server: Use a separate BlockBackendblock.c blockdev-nbd.c include/block/nbd.h +2 more+28 -101 reply
11/11nbd-server: Allow node name for nbd-server-addblockdev-nbd.c qapi/block.json+11 -142 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchEric BlakeAlberto GarciaMax Reitz
1/11R-b R-b
2/11R-b R-b R-b
3/11R-b R-b
4/11R-b R-b R-b
5/11R-b R-b R-b
6/11R-b R-b R-b
7/11R-b R-b R-b
8/11R-b R-b R-b
9/11R-b R-b
10/11R-b R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 00/11] block: Accept node-name in all node level QMP commands

As stated in the RFC I sent two weeks ago:

* Node level commands: We need to complete the conversion that makes commands accept node names instead of BlockBackend names. In some places we intentionally allow only BlockBackends because we don't know if the command works in other places than the root. This is okay, but we can accept node names anyway. We just need to check that the node is a root node as expected.

This part of the RFC is implemented by this series.

v5:
- Sent separate patch "block: Accept any target node for transactional blockdev-backup" and rebased this series on it [Max]
- Check bdrv_is_inserted() in qmp_get_root_bs() [Max]
- Resolved merge conflicts with QAPI boxed type conversion

v4:
- Changed the way to decide whether a root-node-only QMP command is allowed on a specific node. Instead of checking that it has a BB on top, the new check is that there is no non-BB parent on top. This allows using unattached nodes.
- Fixed incorrect documentation change for block-commit [Eric]

v3:
- Now with updated documentation

Kevin Wolf (11):
block: Accept node-name for block-stream
block: Accept node-name for block-commit
block: Accept node-name for blockdev-backup
block: Accept node-name for blockdev-mirror
block: Accept node-name for blockdev-snapshot-delete-internal-sync
block: Accept node-name for blockdev-snapshot-internal-sync
block: Accept node-name for change-backing-file
block: Accept node-name for drive-backup
block: Accept node-name for drive-mirror
nbd-server: Use a separate BlockBackend
nbd-server: Allow node name for nbd-server-add

 block.c                        |   2 +
 block/block-backend.c          |  16 ++++
 blockdev-nbd.c                 |  21 ++---
 blockdev.c                     | 197 ++++++++++++++---------------------------
 include/block/nbd.h            |   3 +-
 include/sysemu/block-backend.h |   1 +
 nbd/server.c                   |  25 ++++--
 qapi/block-core.json           |  24 ++---
 qapi/block.json                |  14 +--
 qemu-nbd.c                     |   4 +-
 qmp-commands.hx                |  25 +++---
 tests/qemu-iotests/030         |   2 +-
 tests/qemu-iotests/041         |   8 +-
 tests/qemu-iotests/055         |   7 +-
 tests/qemu-iotests/057         |   4 +-
 15 files changed, 161 insertions(+), 192 deletions(-)
Signature · 1 line
1.8.3.1