Skip to content

QMP full introspection

Amos Kong qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 22 repliesIn review
  2. v33 patches 9 repliesSuperseded
  3. v22 patches 23 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch32 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qapi: introduce DataObject to describe dynamic structsdocs/qmp-full-introspection.txt qapi-schema.json+185 -01 reply
2/5qapi: add qapi-introspect.py code generator.gitignore Makefile docs/qmp-full-introspection.txt +1 more+194 -15 replies
3/5qobject: introduce qobject_get_str()include/qapi/qmp/qstring.h qobject/qstring.c+20 -01 reply
4/5qmp: full introspection support for QMPqapi-schema.json qmp-commands.hx qmp.c+268 -012 replies
5/5update docs/qmp-full-introspection.txtdocs/qmp-full-introspection.txt+38 -02 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/5] QMP full introspection

This is an implement of qmp full-introspection, parse and convert the json schema to a dynamical tree, return it to management through QMP command output.

The whole output of query-qmp-schema command:
http://i-kvm.rhcloud.com/static/pub/v4/qmp-introspection.output.txt
http://i-kvm.rhcloud.com/static/pub/v4/qmp-introspection.h

Welcome your comments!

V2: use 'DataObject' to describe dynamic struct
V3: improve the metadata as suggested by eric
V4: use python to extend/parse schema for improving
the response speed and simple the code

Amos Kong (5):
qapi: introduce DataObject to describe dynamic structs
qapi: add qapi-introspect.py code generator
qobject: introduce qobject_get_str()
qmp: full introspection support for QMP update docs/qmp-full-introspection.txt

 .gitignore                      |   1 +
 Makefile                        |   5 +-
 docs/qmp-full-introspection.txt |  99 ++++++++++++++++++
 include/qapi/qmp/qstring.h      |   1 +
 qapi-schema.json                | 152 ++++++++++++++++++++++++++++
 qmp-commands.hx                 |  42 ++++++++
 qmp.c                           | 215 ++++++++++++++++++++++++++++++++++++++++
 qobject/qstring.c               |  19 ++++
 scripts/qapi-introspect.py      | 172 ++++++++++++++++++++++++++++++++
 9 files changed, 705 insertions(+), 1 deletion(-)
 create mode 100644 docs/qmp-full-introspection.txt
 create mode 100644 scripts/qapi-introspect.py
Signature · 1 line
1.8.4.2