]> git.ipfire.org Git - thirdparty/qemu.git/commit
vl: plug -object back into -readconfig
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 May 2021 10:57:52 +0000 (06:57 -0400)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 20:32:42 +0000 (15:32 -0500)
commit5b96b36a6162d24fd6a4d64c81e71b3a60e511a6
treef14d39f05d591c65ea3e875923f94f0358c18af1
parentc675ba821cc2369fe369b89efa09696a2b1afda1
vl: plug -object back into -readconfig

Commit bc2f4fcb1d ("qom: move user_creatable_add_opts logic to vl.c
and QAPIfy it", 2021-03-19) switched the creation of objects from
qemu_opts_foreach to a bespoke QTAILQ in preparation for supporting JSON
syntax in -object.

Unfortunately in doing so it lost support for [object] stanzas in
configuration files and also for "-set object.ID.KEY=VAL".  The latter
is hard to re-establish and probably best solved by deprecating -set.
This patch uses the infrastructure introduced by the previous two
patches in order to parse QOM objects correctly from configuration
files.

Cc: Markus Armbruster <armbru@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210524105752.3318299-4-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 49e987695a1873a769a823604f9065aa88e00c55)
Signed-off-by: Michael Roth <michael.roth@amd.com>
softmmu/vl.c