On Tue, Sep 23, 2025 at 06:37:34PM +0200, Kevin Wolf wrote: > 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 to BlockNodeInfo. > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > --- > qapi/block-core.json | 59 ++++++++++++++++++++++++++++++++ > block/qapi.c | 34 ++++++++++++++++-- > tests/qemu-iotests/184 | 3 +- > tests/qemu-iotests/184.out | 8 ----- > tests/qemu-iotests/common.filter | 3 +- > 5 files changed, 94 insertions(+), 13 deletions(-) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index dc6eb4ae23..eda041ac1c 100644 > --- a/qapi/block-core.json > +++ b/qapi/block-core.json > @@ -275,6 +275,62 @@ > 'file': 'ImageInfoSpecificFileWrapper' > } } > > +## > +# @BlockLimitsInfo:
Quite a few additions to the QMP, but this is really just exposing what we already have. I don't think the larger output is going to make QMP any noticeably slower, and it's not recursive, so I have no objection to your decision of just always exposing it. > +++ b/tests/qemu-iotests/184 > @@ -46,7 +46,8 @@ do_run_qemu() > run_qemu() > { > do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp\ > - | _filter_qemu_io | _filter_generated_node_ids > + | _filter_qemu_io | _filter_generated_node_ids \ > + | _filter_img_info Inconsistent on absence or use of space before backslash-newline. Cosmetic only. Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org