diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-03-11 11:13:27 -0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2010-09-21 18:36:42 +0200 |
commit | 29b0040be6371c403dae0fef7fec36b814e300e8 (patch) | |
tree | 04c22eb647ed3d1985cb84adb5a82ec07374b9fe /vl.c | |
parent | cd4ec0b4d169faba8cc03a16b361700e32a83bd6 (diff) |
spice: core bits
Add -spice command line switch. Has support setting passwd and port for
now. With this patch applied the spice client can successfully connect
to qemu. You can't do anything useful yet though.
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -165,6 +165,8 @@ int main(int argc, char **argv) #include "cpus.h" #include "arch_init.h" +#include "ui/qemu-spice.h" + //#define DEBUG_NET //#define DEBUG_SLIRP @@ -2616,6 +2618,18 @@ int main(int argc, char **argv, char **envp) } break; } + case QEMU_OPTION_spice: + olist = qemu_find_opts("spice"); + if (!olist) { + fprintf(stderr, "spice is not supported by this qemu build.\n"); + exit(1); + } + opts = qemu_opts_parse(olist, optarg, 0); + if (!opts) { + fprintf(stderr, "parse error: %s\n", optarg); + exit(1); + } + break; case QEMU_OPTION_writeconfig: { FILE *fp; |