mirror of https://github.com/xemu-project/xemu.git
qemu-options: define -spice only #ifdef CONFIG_SPICE
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>
This commit is contained in:
parent
48fb0a826e
commit
5324e3e958
|
@ -2097,6 +2097,7 @@ SRST
|
||||||
Enable SDL.
|
Enable SDL.
|
||||||
ERST
|
ERST
|
||||||
|
|
||||||
|
#ifdef CONFIG_SPICE
|
||||||
DEF("spice", HAS_ARG, QEMU_OPTION_spice,
|
DEF("spice", HAS_ARG, QEMU_OPTION_spice,
|
||||||
"-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]\n"
|
"-spice [port=port][,tls-port=secured-port][,x509-dir=<dir>]\n"
|
||||||
" [,x509-key-file=<file>][,x509-key-password=<file>]\n"
|
" [,x509-key-file=<file>][,x509-key-password=<file>]\n"
|
||||||
|
@ -2118,6 +2119,7 @@ DEF("spice", HAS_ARG, QEMU_OPTION_spice,
|
||||||
" enable spice\n"
|
" enable spice\n"
|
||||||
" at least one of {port, tls-port} is mandatory\n",
|
" at least one of {port, tls-port} is mandatory\n",
|
||||||
QEMU_ARCH_ALL)
|
QEMU_ARCH_ALL)
|
||||||
|
#endif
|
||||||
SRST
|
SRST
|
||||||
``-spice option[,option[,...]]``
|
``-spice option[,option[,...]]``
|
||||||
Enable the spice remote desktop protocol. Valid options are
|
Enable the spice remote desktop protocol. Valid options are
|
||||||
|
|
|
@ -3537,6 +3537,7 @@ void qemu_init(int argc, char **argv, char **envp)
|
||||||
case QEMU_OPTION_readconfig:
|
case QEMU_OPTION_readconfig:
|
||||||
qemu_read_config_file(optarg, qemu_parse_config_group, &error_fatal);
|
qemu_read_config_file(optarg, qemu_parse_config_group, &error_fatal);
|
||||||
break;
|
break;
|
||||||
|
#ifdef CONFIG_SPICE
|
||||||
case QEMU_OPTION_spice:
|
case QEMU_OPTION_spice:
|
||||||
olist = qemu_find_opts_err("spice", NULL);
|
olist = qemu_find_opts_err("spice", NULL);
|
||||||
if (!olist) {
|
if (!olist) {
|
||||||
|
@ -3549,6 +3550,7 @@ void qemu_init(int argc, char **argv, char **envp)
|
||||||
}
|
}
|
||||||
display_remote++;
|
display_remote++;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case QEMU_OPTION_writeconfig:
|
case QEMU_OPTION_writeconfig:
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
Loading…
Reference in New Issue