From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9cg5-0003IM-42 for qemu-devel@nongnu.org; Mon, 19 Mar 2012 09:31:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9cfb-00053q-49 for qemu-devel@nongnu.org; Mon, 19 Mar 2012 09:31:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9cfa-00053G-Sw for qemu-devel@nongnu.org; Mon, 19 Mar 2012 09:30:43 -0400 From: Gerd Hoffmann Date: Mon, 19 Mar 2012 14:30:32 +0100 Message-Id: <1332163838-1587-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1332163838-1587-1-git-send-email-kraxel@redhat.com> References: <1332163838-1587-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 1/7] spice: set spice uuid and name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Gerd Hoffmann From: Marc-Andr=C3=A9 Lureau This allows a Spice client to identify a VM Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index c1091e1..80535b6 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -19,6 +19,7 @@ #include =20 #include +#include "sysemu.h" =20 #include "qemu-common.h" #include "qemu-spice.h" @@ -688,6 +689,11 @@ void qemu_spice_init(void) =20 qemu_opt_foreach(opts, add_channel, &tls_port, 0); =20 +#if SPICE_SERVER_VERSION >=3D 0x000a02 /* 0.10.2 */ + spice_server_set_name(spice_server, qemu_name); + spice_server_set_uuid(spice_server, qemu_uuid); +#endif + if (0 !=3D spice_server_init(spice_server, &core_interface)) { error_report("failed to initialize spice server"); exit(1); --=20 1.7.1