aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-10-22 12:33:20 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-10-22 12:33:21 +0100
commit4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430 (patch)
tree4e9be650849bb9cced28c5712eecb3416486f3df /softmmu
parenteec4682e9977ea4e57d7238fba2782e6f2f3b0d0 (diff)
parentc8263659f1268a0f3502568d7663f722b2461935 (diff)
downloadqemu-4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430.zip
qemu-4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430.tar.gz
qemu-4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430.tar.bz2
Merge remote-tracking branch 'remotes/kraxel/tags/modules-20201022-pull-request' into staging
modules: build spice and opengl as module. # gpg: Signature made Thu 22 Oct 2020 06:12:03 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/modules-20201022-pull-request: opengl: build opengl helper code modular opengl: build egl-headless display modular spice: flip modules switch modules: add spice dependencies modules: dependencies infrastructure spice: load module when enabled on the cmdline spice: wire up monitor in QemuSpiceOps. spice: move display_add_client() to QemuSpiceOps. spice: move auth functions to QemuSpiceOps. spice: move add_interface() to QemuSpiceOps. spice: move display_init() to QemuSpiceOps. spice: move qemu_spice_init() to QemuSpiceOps. spice: add QemuSpiceOps, move migrate_info spice: add module helpers Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'softmmu')
-rw-r--r--softmmu/vl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index cb476aa..14fc527 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3705,7 +3705,11 @@ void qemu_init(int argc, char **argv, char **envp)
break;
}
case QEMU_OPTION_spice:
- olist = qemu_find_opts("spice");
+ olist = qemu_find_opts_err("spice", NULL);
+ if (!olist) {
+ ui_module_load_one("spice-core");
+ olist = qemu_find_opts("spice");
+ }
if (!olist) {
error_report("spice support is disabled");
exit(1);
@@ -4151,7 +4155,7 @@ void qemu_init(int argc, char **argv, char **envp)
/* spice needs the timers to be initialized by this point */
/* spice must initialize before audio as it changes the default auiodev */
/* spice must initialize before chardevs (for spicevmc and spiceport) */
- qemu_spice_init();
+ qemu_spice.init();
qemu_opts_foreach(qemu_find_opts("chardev"),
chardev_init_func, NULL, &error_fatal);
@@ -4447,7 +4451,7 @@ void qemu_init(int argc, char **argv, char **envp)
#endif
if (using_spice) {
- qemu_spice_display_init();
+ qemu_spice.display_init();
}
if (foreach_device_config(DEV_GDB, gdbserver_start) < 0) {