Skip to content

vl: QAPIfy -object

Paolo Bonzini qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 9 repliesApplied
  2. v13 patches 12 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3tests: convert check-qom-proplist to keyvaltests/check-qom-proplist.c+55 -220 replies
2/3qom: move user_creatable_add_opts logic to vl.c and QAPIfy itinclude/qom/object_interfaces.h qom/object_interfaces.c softmmu/vl.c+56 -1198 replies
3/3vl: allow passing JSON to -objectsoftmmu/vl.c+21 -120 replies

Reviews trailers per patch

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

PatchKevin WolfEric Blake
1/3R-b
2/3R-b
3/3R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] vl: QAPIfy -object

This is a replacement for -object QAPIfication that keeps QemuOpts in order to not break some of the CLI parsing extensions that OptsVisitor includes. Since keyval is not used, support for directly passing JSON syntax to the option must be added manually, which is what patch 3 does. However, both the QemuOpts and the JSON paths go through the new ObjectOptions interface, just with two different visitors, so we can reuse all the new type-safe code that Kevin has added.

Patch 1 is a patch that I already had lying around, which I included to be able to remove user_creatable_add_opts completely in patch 2.

Paolo

Based-on: <[email protected]>

Paolo Bonzini (3):
tests: convert check-qom-proplist to keyval
qom: move user_creatable_add_opts logic to vl.c and QAPIfy it
vl: allow passing JSON to -object

 include/qom/object_interfaces.h | 47 -------------------
 qom/object_interfaces.c         | 54 ---------------------
 softmmu/vl.c                    | 83 ++++++++++++++++++++++++++-------
 tests/check-qom-proplist.c      | 77 +++++++++++++++++++++---------
 4 files changed, 120 insertions(+), 141 deletions(-)

v1->v2: avoid g_assert with side effects, fix -object without qom-type

Signature · 1 line
2.26.2