Skip to content

block: QMP cache info and HMP node support

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Applied to block-next (with the trivial conflict resolution in patch 1

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesApplied
  2. v16 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Markus didn't like QMP query-* commands that filter, so this series is mainly about HMP now [Markus]
- Use BlockdevCacheInfo instead of BlockdevCacheOptions [Markus]
- API version changed to 2.3
- Added 'info block -n' which lists all names nodes
- Added a tab completion fix for HMP, bug exposed by 'info block -n'

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5block/qapi: Add cache information to query-blockblock/qapi.c hmp.c qapi/block-core.json +2 more+36 -21 reply
2/5block/hmp: Factor out print_block_info()hmp.c+97 -950 replies
3/5block/hmp: Allow info = NULL in print_block_info()hmp.c+25 -90 replies
4/5block/hmp: Allow node-name in 'info block'hmp.c monitor.c+33 -40 replies
5/5monitor: Fix HMP tab completionmonitor.c+1 -10 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

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

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] block: QMP cache info and HMP node support

This was supposed to be the first part of a series allowing to override the cache mode for backing files, and more specifically to support the test cases for that series.

However, this work turned out to be a bit more complicated than I had hoped, and the query improvement is nice to have on its own, so I'm sending this out as a standalone series.

v2:
- Markus didn't like QMP query-* commands that filter, so this series is mainly about HMP now [Markus]
- Use BlockdevCacheInfo instead of BlockdevCacheOptions [Markus]
- API version changed to 2.3
- Added 'info block -n' which lists all names nodes
- Added a tab completion fix for HMP, bug exposed by 'info block -n'

Kevin Wolf (5):
block/qapi: Add cache information to query-block block/hmp: Factor out print_block_info() block/hmp: Allow info = NULL in print_block_info() block/hmp: Allow node-name in 'info block'
monitor: Fix HMP tab completion

 block/qapi.c               |   7 ++
 hmp.c                      | 219 ++++++++++++++++++++++++++++-----------------
 monitor.c                  |   8 +-
 qapi/block-core.json       |  20 ++++-
 tests/qemu-iotests/051.out |   1 +
 tests/qemu-iotests/067.out |  10 +--
 6 files changed, 173 insertions(+), 92 deletions(-)
Signature · 1 line
1.8.3.1