[libvirt] [PATCH 15/23] qemu: monitor: Add monitor infrastructure for query-named-block-nodes

Eric Blake eblake at redhat.com
Thu Mar 23 20:56:52 UTC 2017


On 03/15/2017 11:37 AM, Peter Krempa wrote:
> Add monitor tooling for calling query-named-block-nodes. The monitor
> returns the data as the raw JSON array that is returned from the
> monitor.
> 
> Unfortunately the logic to extract the node names for a complete backing
> chain will be so complex that I won't be able to extract any meaningful
> subset of the data in the monitor code.

Indeed. My recollection was that query-named-block-nodes is great for
getting information if you already know a node name, but that you have
to resort to other commands if you need to learn a node name (of course,
it gets easier if libvirt actually assigns node names rather than
relying on qemu - but that's what blockdev-add integration is all about).

> ---
>  src/qemu/qemu_monitor.c      | 11 +++++++++++
>  src/qemu/qemu_monitor.h      |  1 +
>  src/qemu/qemu_monitor_json.c | 26 ++++++++++++++++++++++++++
>  src/qemu/qemu_monitor_json.h |  3 +++
>  4 files changed, 41 insertions(+)
> 

ACK

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170323/a45db8dd/attachment-0001.sig>


More information about the libvir-list mailing list