Re: Automatic module loading (was: [PATCH] qemu-config: load modules when instantiating option groups)

2021-05-19 Thread Daniel P . Berrangé
On Wed, May 19, 2021 at 03:14:54PM +0200, Markus Armbruster wrote: > Paolo Bonzini writes: > > > 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 ca

Automatic module loading (was: [PATCH] qemu-config: load modules when instantiating option groups)

2021-05-19 Thread Markus Armbruster
Paolo Bonzini writes: > 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 pr

Re: [PATCH] qemu-config: load modules when instantiating option groups

2021-05-18 Thread Gerd Hoffmann
On Tue, May 18, 2021 at 09:15:42AM -0400, Paolo Bonzini wrote: > 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. > > Ad

Re: [PATCH] qemu-config: load modules when instantiating option groups

2021-05-18 Thread no-reply
modules when instantiating option groups === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT

[PATCH] qemu-config: load modules when instantiating option groups

2021-05-18 Thread Paolo Bonzini
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