]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-config: load modules when instantiating option groups
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 May 2021 13:08:17 +0000 (09:08 -0400)
committerMichael Roth <michael.roth@amd.com>
Thu, 14 Oct 2021 20:29:47 +0000 (15:29 -0500)
commit701ff59cc42e5812c1cd024a07b4802f19e0fd2a
tree1f6da9b02f5138a6d0b7e6ea9d7211e739cd6c8e
parent4e1eef86117da65c7e084e9e87df3f562682a84b
qemu-config: load modules when instantiating option groups

Right now the SPICE module is special cased to be loaded when processing
of the -spice command line option.  However, the spice option group
can also be brought in via -readconfig, in which case the module is
not loaded.

Add a generic hook to load modules that provide a QemuOpts group,
and use it for the "spice" and "iscsi" groups.

Fixes: #194
Fixes: https://bugs.launchpad.net/qemu/+bug/1910696
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 632a8873500d27022c584256afc11e57e2418b94)
Signed-off-by: Michael Roth <michael.roth@amd.com>
include/qemu/config-file.h
softmmu/vl.c
stubs/meson.build
stubs/module-opts.c [new file with mode: 0644]
util/qemu-config.c