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

Eduardo Habkost posted 3 patches 6 years, 9 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170707122215.8819-1-ehabkost@redhat.com
Test FreeBSD passed
Test checkpatch passed
Test docker passed
Test s390x passed
qapi-schema.json               |   7 +-
qmp.c                          |   6 ++
tests/device-introspect-test.c | 156 +++++++++++++++++++++++++++++++++--------
3 files changed, 139 insertions(+), 30 deletions(-)
[Qemu-devel] [PATCH v3 0/3] qmp: Return extra information on qom-list-types
Posted by Eduardo Habkost 6 years, 9 months ago
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(-)

-- 
2.9.4


Re: [Qemu-devel] [PATCH v3 0/3] qmp: Return extra information on qom-list-types
Posted by Eduardo Habkost 6 years, 9 months ago
On Fri, Jul 07, 2017 at 09:22:12AM -0300, Eduardo Habkost wrote:
> 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.

As we're close to soft freeze, I'm queueing this on my
machine-next branch.

-- 
Eduardo