Skip to content

vl: add -object support back into -readconfig

Paolo Bonzini qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches6 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qemu-config: parse configuration files to a QDictinclude/qemu/config-file.h softmmu/vl.c util/qemu-config.c+75 -331 reply
2/3vl: plumb keyval-based options into -readconfiginclude/block/qdict.h include/qapi/qmp/qdict.h softmmu/vl.c+62 -260 replies
3/3vl: plug -object back into -readconfigsoftmmu/vl.c+18 -60 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKevin Wolf
1/3
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 v4 thread

Cover letter [PATCH v4 0/3] vl: add -object support back into -readconfig

LXD developers have reported that [object] stanzas have stopped working in configuration files.

The problem is that QEMU 6.0 switched the creation of objects from qemu_opts_foreach to a bespoke QTAILQ, in preparation for supporting JSON syntax in -object. Entries from the configuration file however do not go through object_option_parse, and are thus lost. Of the many fixes that are possible, I chose one that is slightly more invasive but more consistent with the plans for keyval-ification of options such as -M and -accel.

-set was also broken by the same change. For simplicity I chose not to add it back yet, however this series will report the breakage instead of failing silently.

The first two patches of this series are thus a reduced version of
https://patchew.org/QEMU/[email protected]/
([PATCH 00/14] vl: compound properties for machines and accelerators), with the -set infrastructure removed. The third is very simple and uses the newly-provided hooks to parse objects from configuration files.

Paolo

Based-on: <[email protected]>

Paolo Bonzini (3):
qemu-config: parse configuration files to a QDict
vl: plumb keyval-based options into -readconfig
vl: plug -object back into -readconfig

 include/block/qdict.h      |   2 -
 include/qapi/qmp/qdict.h   |   3 ++
 include/qemu/config-file.h |   7 ++-
 softmmu/vl.c               | 105 +++++++++++++++++++++++++++----------
 util/qemu-config.c         |  98 +++++++++++++++++++++++-----------
 5 files changed, 153 insertions(+), 62 deletions(-)
Signature · 1 line
2.27.0