Skip to content

block: Expose block limits in monitor and qemu-img info

Kevin Wolf qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Improved QAPI documentation and adjusted formatting [Markus]
- Made the same improvements to BlockLimits comments (new patch 1)
- Added a qemu-img info option to specify the cache mode (new patch 4)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: Improve comments in BlockLimitsinclude/block/block_int-common.h+17 -131 reply
2/4block: Expose block limits for images in QMPblock/qapi.c qapi/block-core.json tests/qemu-iotests/184 +2 more+102 -140 replies
3/4qemu-img info: Optionally show block limitsblock/qapi.c docs/tools/qemu-img.rst include/block/qapi.h +2 more+52 -90 replies
4/4qemu-img info: Add cache mode optiondocs/tools/qemu-img.rst qemu-img-cmds.hx qemu-img.c+24 -70 replies
4/4qemu-img info: Add cache mode optiondocs/tools/qemu-img.rst qemu-img-cmds.hx qemu-img.c+24 -71 reply

Reviews trailers per patch

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

PatchEric BlakeHanna Czenczek
1/4R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b
4/4R-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/4] block: Expose block limits in monitor and qemu-img info

This information can be useful both for debugging and for management tools trying to configure guest devices with the optimal limits (possibly across multiple hosts). There is no reason not to make it available, so just add it both in the monitor (QMP and HMP) and in 'qemu-img info'.

v2:
- Improved QAPI documentation and adjusted formatting [Markus]
- Made the same improvements to BlockLimits comments (new patch 1)
- Added a qemu-img info option to specify the cache mode (new patch 4)

Kevin Wolf (4):
block: Improve comments in BlockLimits
block: Expose block limits for images in QMP
qemu-img info: Optionally show block limits
qemu-img: Add cache mode option

 qapi/block-core.json             | 66 ++++++++++++++++++++++++++++++++
 docs/tools/qemu-img.rst          |  6 ++-
 include/block/block_int-common.h | 30 ++++++++-------
 include/block/qapi.h             |  2 +-
 block/qapi.c                     | 66 ++++++++++++++++++++++++++++++--
 qemu-img.c                       | 40 +++++++++++++++----
 qemu-img-cmds.hx                 |  4 +-
 tests/qemu-iotests/184           |  5 ++-
 tests/qemu-iotests/184.out       |  8 ----
 tests/qemu-iotests/common.filter |  3 +-
 10 files changed, 191 insertions(+), 39 deletions(-)
Signature · 1 line
2.51.0