vl: plug -object back into -readconfig
commit49e987695a1873a769a823604f9065aa88e00c55
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 May 2021 10:57:52 +0000 (24 06:57 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Jun 2021 11:50:04 +0000 (4 13:50 +0200)
tree1373da5c17404275265db45fb3a1104643e312eb
parentc0d4aa82f895af67cbf7772324e05605e22b4162
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>
softmmu/vl.c