Skip to content

qmp: Return extra information on qom-list-types

Eduardo Habkost qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 4 repliesSuperseded
  3. v1 RFC3 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Rebase to latest qemu.git master, only

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests: Simplify abstract-interfaces check with a helpertests/device-introspect-test.c+25 -180 replies
2/3qmp: Include 'abstract' field on 'qom-list-types' outputqapi-schema.json qmp.c tests/device-introspect-test.c+45 -140 replies
3/3qmp: Include parent type on 'qom-list-types' outputqapi-schema.json qmp.c tests/device-introspect-test.c+82 -110 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/3] qmp: Return extra information on qom-list-types

This series adds 'abstract' and 'parent' 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: 13146 bytes
* with 'abstract' and 'parent': 24046 bytes

This is just a rebase of v2. I'm sending it as v3 because a long time has passed since v2 was submitted.

Changes v2 -> v3:
* Rebase to latest qemu.git master, only

Changes v1 (RFC) -> v2:
* Make 'parent' field optional, to make output shorter
* Return only immediate parent type on 'parent' field, instead of all parent-types on a 'parent-types' field

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

 qapi-schema.json               |   7 +-
 qmp.c                          |   6 ++
 tests/device-introspect-test.c | 156 +++++++++++++++++++++++++++++++++--------
 3 files changed, 139 insertions(+), 30 deletions(-)
Signature · 1 line
2.9.4