Skip to content

Device state visualization reloaded

Jan Kiszka qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6monitor: return length of printed string via monitor_[v]printfmonitor.c monitor.h qemu-tool.c+21 -120 replies
2/6Add base64 encoder/decoderMakefile.objs base64.c base64.h+222 -16 replies
3/6QMP: Reserve namespace for complex object classesQMP/qmp-spec.txt+13 -33 replies
4/6QMP: Add QBufferMakefile Makefile.objs QMP/qmp-spec.txt +6 more+350 -41 reply
5/6monitor: Add basic device state visualizationhmp-commands.hx hw/hw.h hw/qdev.c +3 more+275 -00 replies
6/6qdev: Generate IDs for anonymous deviceshw/qdev-properties.c hw/qdev.c hw/qdev.h+15 -138 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] Device state visualization reloaded

More than one year ago I posted some patches to add a monitor command callend device_show. The purpose of that command is to dump the state of some qdev device based on its vmstate.

To improve the usability of that interface, the previous series also tried to create a canonical qdev tree path name format and even added monitor command expansion. That format created quite a few discussions, and we never came to some conclusion.

As device_show is still a useful tool for debugging but qdev structuring and addressing may significantly change in the near future, I decided to reanimate those patches while avoiding almost any change of the addressing scheme. The only one I propose is automatic ID assignment for anonymous devices so that any qdev device is in principle addressable (e.g. APIC and IO-APIC on x86).

As back then, device_show remains HMP-only to avoid any stable ABI issues around QMP.

CC Luiz Capitulino <[email protected]>
CC Markus Armbruster <[email protected]>

Jan Kiszka (6):
monitor: return length of printed string via monitor_[v]printf Add base64 encoder/decoder
QMP: Reserve namespace for complex object classes
QMP: Add QBuffer
monitor: Add basic device state visualization
qdev: Generate IDs for anonymous devices

 Makefile             |    2 +-
 Makefile.objs        |    4 +-
 QMP/qmp-spec.txt     |   24 ++++-
 base64.c             |  202 +++++++++++++++++++++++++++++++++++++
 base64.h             |   19 ++++
 check-qbuffer.c      |  172 ++++++++++++++++++++++++++++++++
 configure            |    2 +-
 hmp-commands.hx      |   16 +++
 hw/hw.h              |    2 +
 hw/qdev-properties.c |    2 +-
 hw/qdev.c            |  271 ++++++++++++++++++++++++++++++++++++++++++++++++--
 hw/qdev.h            |    3 +
 monitor.c            |   23 +++--
 monitor.h            |    4 +-
 qbuffer.c            |  117 ++++++++++++++++++++++
 qbuffer.h            |   33 ++++++
 qemu-tool.c          |    6 +-
 qerror.c             |    4 +
 qerror.h             |    3 +
 qjson.c              |   15 +++
 qobject.h            |    1 +
 21 files changed, 894 insertions(+), 31 deletions(-)
 create mode 100644 base64.c
 create mode 100644 base64.h
 create mode 100644 check-qbuffer.c
 create mode 100644 qbuffer.c
 create mode 100644 qbuffer.h
Signature · 1 line
1.7.3.4