block: Accept qdev IDs in device level QMP commands
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest10 patches 3 repliesIn review
- v210 patches 7 repliesSuperseded
- v110 patches 21 repliesSuperseded
Changes in v3 from the cover letter
- Rebased on top of qmp-commands.hx removal
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | block: Add blk_by_dev()block/ include/ | +20 | 0 replies | |
| 2/10 | qdev-monitor: Factor out find_device_state()qdev-monitor.c | +12 | 0 replies | |
| 3/10 | qdev-monitor: Add blk_by_qdev_id()include/ qdev-monitor.c | +19 | 0 replies | |
| 4/10 | block: Accept device model name for blockdev-open/close-trayblockdev.c docs/ qapi/ | +64 | 1 reply | |
| 5/10 | block: Accept device model name for x-blockdev-insert-mediumblockdev.c docs/ qapi/ | +26 | 0 replies | |
| 6/10 | block: Accept device model name for x-blockdev-remove-mediumblockdev.c docs/ qapi/ | +28 | 0 replies | |
| 7/10 | block: Accept device model name for ejectblockdev.c docs/ hmp.c +1 more | +20 | 0 replies | |
| 8/10 | block: Accept device model name for blockdev-change-mediumblockdev.c docs/ hmp.c +2 more | +28 | 0 replies | |
| 9/10 | block: Accept device model name for block_set_io_throttleblockdev.c docs/ qapi/ | +16 | 0 replies | |
| 10/10 | qemu-iotests/118: Test media change with qdev nametests/ tests/ | +73 | 0 replies |
Reviews trailers per patch
5 of 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Eric Blake |
|---|---|
| Series | R-b |
| 1/10 | R-b |
| 2/10 | R-b |
| 3/10 | R-b |
| 4/10 | R-b |
| 5/10 | |
| 6/10 | |
| 7/10 | |
| 8/10 | |
| 9/10 | |
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v3 00/10] block: Accept qdev IDs in device level QMP commands
In order to remove the necessity to use BlockBackend names in the external API, we already converted all block layer QMP commands on the node level to accept node names instead of BlockBackend names. This series converts the second part, device level commands, to allow qdev device names instead of BlockBackend names.
v3:
- Rebased on top of qmp-commands.hx removal
v2:
- qmp-commands.hx: Update examples to use qdev IDs [Eric]
- QAPI schema: Make sure to include #optional for both 'device' and 'id and to add deprecation warnings for 'device' everywhere [Eric]
- Fixed use of (undefined) device string without has_device in error messages
Kevin Wolf (10):
block: Add blk_by_dev()
qdev-monitor: Factor out find_device_state()
qdev-monitor: Add blk_by_qdev_id()
block: Accept device model name for blockdev-open/close-tray
block: Accept device model name for x-blockdev-insert-medium
block: Accept device model name for x-blockdev-remove-medium
block: Accept device model name for eject
block: Accept device model name for blockdev-change-medium
block: Accept device model name for block_set_io_throttle qemu-iotests/118: Test media change with qdev name
block/block-backend.c | 19 ++++++ blockdev.c | 152 +++++++++++++++++++++++++++-------------- docs/qmp-commands.txt | 54 +++++++++------ hmp.c | 7 +- include/sysemu/block-backend.h | 2 + qapi/block-core.json | 44 ++++++++---- qapi/block.json | 9 ++- qdev-monitor.c | 34 +++++++-- qmp.c | 4 +- tests/qemu-iotests/118 | 85 ++++++++++++++++++----- tests/qemu-iotests/iotests.py | 5 ++ 11 files changed, 301 insertions(+), 114 deletions(-)
Signature · 1 line
1.8.3.1