qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] block: Expose block limits in monitor and qemu-img info
@ 2025-10-24 12:30 Kevin Wolf
  2025-10-24 12:30 ` [PATCH v2 1/4] block: Improve comments in BlockLimits Kevin Wolf
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Kevin Wolf @ 2025-10-24 12:30 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, eblake, armbru, qemu-devel, hreitz

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(-)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-24 19:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24 12:30 [PATCH v2 0/4] block: Expose block limits in monitor and qemu-img info Kevin Wolf
2025-10-24 12:30 ` [PATCH v2 1/4] block: Improve comments in BlockLimits Kevin Wolf
2025-10-24 19:01   ` Eric Blake
2025-10-24 12:30 ` [PATCH v2 2/4] block: Expose block limits for images in QMP Kevin Wolf
2025-10-24 12:30 ` [PATCH v2 3/4] qemu-img info: Optionally show block limits Kevin Wolf
2025-10-24 12:30 ` [PATCH v2 4/4] qemu-img info: Add cache mode option Kevin Wolf
2025-10-24 19:04   ` Eric Blake
2025-10-24 12:30 ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).