]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/modify-query-spice.patch
refresh and enable debian/patches/modify-query-spice.patch
[pve-qemu-kvm.git] / debian / patches / modify-query-spice.patch
CommitLineData
da82a481
DM
1Return last ticket with query-spice
2
3We use this to implement spice seemless migration. The current spice code
4reconnect to the migrated VM using the original ticket. So we need
5a way to read the original ticket.
6
7Limits: This only works for a single spice session.
8
9
e2236ade
DM
10Index: new/ui/spice-core.c
11===================================================================
8fb262a9
DM
12--- new.orig/ui/spice-core.c 2014-05-05 07:53:16.000000000 +0200
13+++ new/ui/spice-core.c 2014-05-05 07:59:10.000000000 +0200
14@@ -540,6 +540,11 @@
97383fbb
DM
15 micro = SPICE_SERVER_VERSION & 0xff;
16 info->compiled_version = g_strdup_printf("%d.%d.%d", major, minor, micro);
e2236ade
DM
17
18+ if (auth_passwd) {
19+ info->has_ticket = true;
20+ info->ticket = g_strdup(auth_passwd);
21+ }
22+
23 if (port) {
24 info->has_port = true;
25 info->port = port;
26Index: new/qapi-schema.json
27===================================================================
8fb262a9
DM
28--- new.orig/qapi-schema.json 2014-05-05 07:57:11.000000000 +0200
29+++ new/qapi-schema.json 2014-05-05 07:58:20.000000000 +0200
30@@ -1320,11 +1320,14 @@
e2236ade
DM
31 #
32 # @channels: a list of @SpiceChannel for each active spice channel
33 #
34+# @ticket: #optional The last ticket set with set_password
35+#
36 # Since: 0.14.0
37 ##
38 { 'type': 'SpiceInfo',
39 'data': {'enabled': 'bool', 'migrated': 'bool', '*host': 'str', '*port': 'int',
40 '*tls-port': 'int', '*auth': 'str', '*compiled-version': 'str',
41+ '*ticket': 'str',
42 'mouse-mode': 'SpiceQueryMouseMode', '*channels': ['SpiceChannel']} }
43
44 ##