From patchwork Mon Mar 5 17:22:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 144721 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 15722B6F98 for ; Tue, 6 Mar 2012 04:22:56 +1100 (EST) Received: from localhost ([::1]:60127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4bcb-00084W-Eq for incoming@patchwork.ozlabs.org; Mon, 05 Mar 2012 12:22:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4bcO-00081j-MD for qemu-devel@nongnu.org; Mon, 05 Mar 2012 12:22:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S4bcI-0007ZU-Cz for qemu-devel@nongnu.org; Mon, 05 Mar 2012 12:22:40 -0500 Received: from mail-ey0-f173.google.com ([209.85.215.173]:36607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S4bcI-0007Z6-4E for qemu-devel@nongnu.org; Mon, 05 Mar 2012 12:22:34 -0500 Received: by eaaf11 with SMTP id f11so856552eaa.4 for ; Mon, 05 Mar 2012 09:22:31 -0800 (PST) Received-SPF: pass (google.com: domain of marcandre.lureau@gmail.com designates 10.213.23.7 as permitted sender) client-ip=10.213.23.7; Authentication-Results: mr.google.com; spf=pass (google.com: domain of marcandre.lureau@gmail.com designates 10.213.23.7 as permitted sender) smtp.mail=marcandre.lureau@gmail.com; dkim=pass header.i=marcandre.lureau@gmail.com Received: from mr.google.com ([10.213.23.7]) by 10.213.23.7 with SMTP id p7mr3708629ebb.66.1330968151445 (num_hops = 1); Mon, 05 Mar 2012 09:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=2ZMeF/piVdWQrv7F0DfcTlwQY6xLY0ZS4IVDXX9Yi04=; b=uKl0LXCplF+IkmBOBq2SqmbCNVzxiR9zFrVR6JeeIeEsJVyx3NepQt46nCZBIji5tz EuMauBasNv7V1BsN9qFTbpx72vuBATWinlOu171JHowq5wBINkCMscYUUSMgPX+oZXvk LX7D2Qi/WaVu/8Vq+MMkPcHFFje62aMW/lI0C9a4iVnetQXrpJkgRlkoBYTXMZDBnHph E5QbYgxT+ldJi7ICspVOhKYQqZVtRUTdUaplgpAQgcMcN406W8/6P3gp8QyslrnYZfKb KV/sDksz7JMPZX4HDOre7GXbafXxULia3RgwQZh92851PW078umLZB1bzKy7elgTOK5U HdnA== Received: by 10.213.23.7 with SMTP id p7mr2798661ebb.66.1330968151348; Mon, 05 Mar 2012 09:22:31 -0800 (PST) Received: from localhost (177.pool85-58-41.dynamic.orange.es. [85.58.41.177]) by mx.google.com with ESMTPS id v51sm63619407eef.2.2012.03.05.09.22.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 09:22:29 -0800 (PST) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" To: qemu-devel@nongnu.org Date: Mon, 5 Mar 2012 18:22:26 +0100 Message-Id: <1330968146-6353-1-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <4F50D4D7.8010602@redhat.com> References: <4F50D4D7.8010602@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.173 Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [Qemu-devel] [PATCH] spice: set spice uuid and name X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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(-) 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 #include +#include "sysemu.h" #include "qemu-common.h" #include "qemu-spice.h" @@ -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);