diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-03-19 13:37:23 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-03-19 13:37:23 -0500 |
| commit | dfebfcf02f74ed47b61841037d7eda1baffb4d6e (patch) | |
| tree | 15ce64dc8a2bc0ee84a85c1d3f6c5dfe8bae3681 /ui/spice-core.c | |
| parent | 49f54371f22e3e95124e8115050cea29fadde606 (diff) | |
| parent | ad1be89948f88e89708b04ccd782456ccec3a6f0 (diff) | |
| download | focaccia-qemu-dfebfcf02f74ed47b61841037d7eda1baffb4d6e.tar.gz focaccia-qemu-dfebfcf02f74ed47b61841037d7eda1baffb4d6e.zip | |
Merge remote-tracking branch 'spice/spice.v50' into staging
* spice/spice.v50: spice: fix broken initialization hw/qxl.c: Fix compilation failures on 32 bit hosts qxl/qxl_render.c: add trace events qxl: switch qxl.c to trace-events qxl: init_pipe_signaling: exit on failure monitor: fix client_migrate_info error handling spice: set spice uuid and name
Diffstat (limited to 'ui/spice-core.c')
| -rw-r--r-- | ui/spice-core.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c index c1091e1602..a468524799 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -19,6 +19,7 @@ #include <spice-experimental.h> #include <netdb.h> +#include "sysemu.h" #include "qemu-common.h" #include "qemu-spice.h" @@ -553,7 +554,7 @@ void qemu_spice_init(void) qemu_thread_get_self(&me); - if (!opts) { + if (!opts) { return; } port = qemu_opt_get_number(opts, "port", 0); @@ -688,6 +689,11 @@ void qemu_spice_init(void) qemu_opt_foreach(opts, add_channel, &tls_port, 0); +#if SPICE_SERVER_VERSION >= 0x000a02 /* 0.10.2 */ + spice_server_set_name(spice_server, qemu_name); + spice_server_set_uuid(spice_server, qemu_uuid); +#endif + if (0 != spice_server_init(spice_server, &core_interface)) { error_report("failed to initialize spice server"); exit(1); @@ -781,10 +787,3 @@ static void spice_register_config(void) qemu_add_opts(&qemu_spice_opts); } machine_init(spice_register_config); - -static void spice_register_types(void) -{ - qemu_spice_init(); -} - -type_init(spice_register_types) |