From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4cDe-0002DR-NC for qemu-devel@nongnu.org; Mon, 05 Mar 2012 13:01:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4cDX-0000DS-OD for qemu-devel@nongnu.org; Mon, 05 Mar 2012 13:01:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4cDX-0000Cy-GN for qemu-devel@nongnu.org; Mon, 05 Mar 2012 13:01:03 -0500 Date: Mon, 5 Mar 2012 20:00:56 +0200 From: Alon Levy Message-ID: <20120305180056.GA20937@garlic.tlv.redhat.com> References: <4F50D4D7.8010602@redhat.com> <1330968146-6353-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1330968146-6353-1-git-send-email-marcandre.lureau@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] spice: set spice uuid and name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel@nongnu.org On Mon, Mar 05, 2012 at 06:22:26PM +0100, Marc-Andr=E9 Lureau wrote: > This allows a Spice client to identify a VM Reviewed-by: Alon Levy > --- > ui/spice-core.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) >=20 > 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.7.6 >=20 >=20