[Qemu-devel] [RFC 0/3] qmp: Return extra information on qom-list-types

Eduardo Habkost posted 3 patches 6 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170520020914.14562-1-ehabkost@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
There is a newer version of this series
qapi-schema.json               |   9 ++-
qmp.c                          |  17 ++++++
tests/device-introspect-test.c | 131 ++++++++++++++++++++++++++++++++---------
3 files changed, 127 insertions(+), 30 deletions(-)
[Qemu-devel] [RFC 0/3] qmp: Return extra information on qom-list-types
Posted by Eduardo Habkost 6 years, 11 months ago
This series adds 'abstract' and 'parent-types' fields to the
output of qom-list-types.

For reference, below are the sizes of the output of
"qom-list-types abstract=true" on qemu-system-x86_64, before and
after applying the patches:

* before: 11724 bytes
* with 'abstract' field: 20119 bytes
* with 'abstract' and 'parent-types': 44383 bytes

I'm not sure if extending qom-list-types with this info is the
right way to go, or if we should keep qom-list-types as-is and
add a new "query-qom-type" QMP command to query info on one QOM
type at a time.

Eduardo Habkost (3):
  tests: Simplify abstract-interfaces check with a helper
  qmp: Include 'abstract' field on 'qom-list-types' output
  qmp: Include parent types on 'qom-list-types' output

 qapi-schema.json               |   9 ++-
 qmp.c                          |  17 ++++++
 tests/device-introspect-test.c | 131 ++++++++++++++++++++++++++++++++---------
 3 files changed, 127 insertions(+), 30 deletions(-)

-- 
2.11.0.259.g40922b1