qmp: add ImageInfo in BlockDeviceInfo used by query-block

Enterprise / Virtualization / QEMU - Wenchao Xia [linux.vnet.ibm.com] - 7 June 2013 06:37 UTC

Now image info will be retrieved as an embbed json object inside BlockDeviceInfo, backing chain info and all related internal snapshot info can be got in the enhanced recursive structure of ImageInfo. New recursive member *backing-image is added to reflect the backing chain status.

553a7e8 qmp: add ImageInfo in BlockDeviceInfo used by query-block
block/qapi.c | 50 +++++++++++++++++++++++++++++++++---
include/block/qapi.h | 4 ++-
qapi-schema.json | 10 ++++++--
qmp-commands.hx | 69 ++++++++++++++++++++++++++++++++++++++++++++++++--
4 files changed, 125 insertions(+), 8 deletions(-)

Upstream: git.qemu.org


  • Share