aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-03-11 11:13:27 -0300
committerGerd Hoffmann <kraxel@redhat.com>2010-09-21 18:36:42 +0200
commit29b0040be6371c403dae0fef7fec36b814e300e8 (patch)
tree04c22eb647ed3d1985cb84adb5a82ec07374b9fe /vl.c
parentcd4ec0b4d169faba8cc03a16b361700e32a83bd6 (diff)
downloadqemu-29b0040be6371c403dae0fef7fec36b814e300e8.zip
qemu-29b0040be6371c403dae0fef7fec36b814e300e8.tar.gz
qemu-29b0040be6371c403dae0fef7fec36b814e300e8.tar.bz2
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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 2edc853..27d9392 100644
--- a/vl.c
+++ b/vl.c
@@ -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;