All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE
@ 2021-09-09 15:19 marcandre.lureau
  2021-09-10  4:40 ` Markus Armbruster
  2021-09-10  8:52 ` Gerd Hoffmann
  0 siblings, 2 replies; 3+ messages in thread
From: marcandre.lureau @ 2021-09-09 15:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, berrange, armbru

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>
---
 softmmu/vl.c    | 4 +++-
 qemu-options.hx | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/softmmu/vl.c b/softmmu/vl.c
index 55ab70eb97..1e60d286b9 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -1931,7 +1931,7 @@ static void qemu_create_early_backends(void)
     object_option_foreach_add(object_create_early);
 
     /* 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 audio as it changes the default audiodev */
     /* spice must initialize before chardevs (for spicevmc and spiceport) */
     qemu_spice.init();
 
@@ -3488,6 +3488,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) {
@@ -3500,6 +3501,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 8f603cc7e6..204028408c 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2003,6 +2003,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"
@@ -2024,6 +2025,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.33.0.113.g6c40894d24



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE
  2021-09-09 15:19 [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE marcandre.lureau
@ 2021-09-10  4:40 ` Markus Armbruster
  2021-09-10  8:52 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2021-09-10  4:40 UTC (permalink / raw)
  To: marcandre.lureau; +Cc: berrange, qemu-devel

marcandre.lureau@redhat.com writes:

> 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: Markus Armbruster <armbru@redhat.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE
  2021-09-09 15:19 [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE marcandre.lureau
  2021-09-10  4:40 ` Markus Armbruster
@ 2021-09-10  8:52 ` Gerd Hoffmann
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2021-09-10  8:52 UTC (permalink / raw)
  To: marcandre.lureau; +Cc: berrange, qemu-devel, armbru

On Thu, Sep 09, 2021 at 07:19:22PM +0400, marcandre.lureau@redhat.com wrote:
> 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: Gerd Hoffmann <kraxel@redhat.com>

take care,
  Gerd



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-10  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09 15:19 [PATCH v2] qemu-options: show -spice options only if #ifdef CONFIG_SPICE marcandre.lureau
2021-09-10  4:40 ` Markus Armbruster
2021-09-10  8:52 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.