[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/21] qemu-options: define -spice only #ifdef CONFIG_SPICE
From: |
marcandre . lureau |
Subject: |
[PULL 01/21] qemu-options: define -spice only #ifdef CONFIG_SPICE |
Date: |
Tue, 22 Mar 2022 16:25:41 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1982600
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
softmmu/vl.c | 2 ++
qemu-options.hx | 2 ++
2 files changed, 4 insertions(+)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 0b81f6153548..f7d7c9550d7e 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3537,6 +3537,7 @@ void qemu_init(int argc, char **argv, char **envp)
case QEMU_OPTION_readconfig:
qemu_read_config_file(optarg, qemu_parse_config_group,
&error_fatal);
break;
+#ifdef CONFIG_SPICE
case QEMU_OPTION_spice:
olist = qemu_find_opts_err("spice", NULL);
if (!olist) {
@@ -3549,6 +3550,7 @@ void qemu_init(int argc, char **argv, char **envp)
}
display_remote++;
break;
+#endif
case QEMU_OPTION_writeconfig:
{
FILE *fp;
diff --git a/qemu-options.hx b/qemu-options.hx
index 58f2f76775c9..34e9b32a5c00 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2097,6 +2097,7 @@ SRST
Enable SDL.
ERST
+#ifdef CONFIG_SPICE
DEF("spice", HAS_ARG, QEMU_OPTION_spice,
"-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]\n"
" [,x509-key-file=<file>][,x509-key-password=<file>]\n"
@@ -2118,6 +2119,7 @@ DEF("spice", HAS_ARG, QEMU_OPTION_spice,
" enable spice\n"
" at least one of {port, tls-port} is mandatory\n",
QEMU_ARCH_ALL)
+#endif
SRST
``-spice option[,option[,...]]``
Enable the spice remote desktop protocol. Valid options are
--
2.35.1.273.ge6ebfd0e8cbb
- [PULL 00/21] Fixes patches, marcandre . lureau, 2022/03/22
- [PULL 01/21] qemu-options: define -spice only #ifdef CONFIG_SPICE,
marcandre . lureau <=
- [PULL 02/21] vl: typo fix in a comment, marcandre . lureau, 2022/03/22
- [PULL 03/21] m68k/nios2-semi: fix gettimeofday() result check, marcandre . lureau, 2022/03/22
- [PULL 04/21] Drop qemu_foo() socket API wrapper, marcandre . lureau, 2022/03/22
- [PULL 09/21] Move HOST_LONG_BITS to compiler.h, marcandre . lureau, 2022/03/22
- [PULL 05/21] Replace GCC_FMT_ATTR with G_GNUC_PRINTF, marcandre . lureau, 2022/03/22
- [PULL 07/21] compiler.h: replace QEMU_SENTINEL with G_GNUC_NULL_TERMINATED, marcandre . lureau, 2022/03/22
- [PULL 06/21] compiler.h: replace QEMU_WARN_UNUSED_RESULT with G_GNUC_WARN_UNUSED_RESULT, marcandre . lureau, 2022/03/22
- [PULL 10/21] scripts/modinfo-collect: remove unused/dead code, marcandre . lureau, 2022/03/22
- [PULL 08/21] Simplify HOST_LONG_BITS, marcandre . lureau, 2022/03/22
- [PULL 11/21] util: remove needless includes, marcandre . lureau, 2022/03/22