aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-config.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 /qemu-config.c
parentcd4ec0b4d169faba8cc03a16b361700e32a83bd6 (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 'qemu-config.c')
-rw-r--r--qemu-config.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index e3b746cc2..5c6ae6327 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -351,6 +351,24 @@ static QemuOptsList qemu_cpudef_opts = {
},
};
+QemuOptsList qemu_spice_opts = {
+ .name = "spice",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_spice_opts.head),
+ .desc = {
+ {
+ .name = "port",
+ .type = QEMU_OPT_NUMBER,
+ },{
+ .name = "password",
+ .type = QEMU_OPT_STRING,
+ },{
+ .name = "disable-ticketing",
+ .type = QEMU_OPT_BOOL,
+ },
+ { /* end if list */ }
+ },
+};
+
static QemuOptsList *vm_config_groups[32] = {
&qemu_drive_opts,
&qemu_chardev_opts,