From patchwork Fri Mar 2 12:49:22 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: 144242 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 E08A2B6FA1 for ; Fri, 2 Mar 2012 23:49:48 +1100 (EST) Received: from localhost ([::1]:34467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3Rvd-0005el-RT for incoming@patchwork.ozlabs.org; Fri, 02 Mar 2012 07:49:45 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3RvX-0005ea-Cg for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3RvS-0002NH-MT for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:38 -0500 Received: from mail-ey0-f173.google.com ([209.85.215.173]:56086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3RvS-0002NA-Cw for qemu-devel@nongnu.org; Fri, 02 Mar 2012 07:49:34 -0500 Received: by eaan13 with SMTP id n13so717025eaa.4 for ; Fri, 02 Mar 2012 04:49:32 -0800 (PST) Received-SPF: pass (google.com: domain of marcandre.lureau@gmail.com designates 10.14.50.74 as permitted sender) client-ip=10.14.50.74; Authentication-Results: mr.google.com; spf=pass (google.com: domain of marcandre.lureau@gmail.com designates 10.14.50.74 as permitted sender) smtp.mail=marcandre.lureau@gmail.com; dkim=pass header.i=marcandre.lureau@gmail.com Received: from mr.google.com ([10.14.50.74]) by 10.14.50.74 with SMTP id y50mr1249391eeb.107.1330692572144 (num_hops = 1); Fri, 02 Mar 2012 04:49:32 -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; bh=YrSvxLIQN3mIcRmXU5HYtQkZH8enF2E8/+l4FVzfZmc=; b=mnvhVrma+gDiK0y4aSg4b5bU4UfyNFKZAKBw+UpojQ0qyG/JFx1N8REpDWPDCs8Wbd KUxoAKpR5yjcEuDJQVDKrGydwcBg2abGKRRZdaAJHIUlYAN/Rf0o8ylgIUdtvg5vudet prIUcHVfr5ztM+Axo61aHhF1C+pdFxiVx5b3f+Y3ka7VGg449orP36thfKd+nlVoVuPI 3v0CVZXYdxMmr0oTGsGrQXRuHgKD7myIxc4dnmsMxzhczwpoWL08cZL81koL1K1Ow8I9 1RigeIEjfNbt5CcIDbw7nU8Gx92R+FxD+vZ/pewYlBUe/JZoUh38AI6kg6Kz4qd3alnC GmVA== Received: by 10.14.50.74 with SMTP id y50mr964186eeb.107.1330692572073; Fri, 02 Mar 2012 04:49:32 -0800 (PST) Received: from localhost (84.216.13.109.rev.sfr.net. [109.13.216.84]) by mx.google.com with ESMTPS id o49sm20004861eeb.7.2012.03.02.04.49.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Mar 2012 04:49:31 -0800 (PST) From: "=?UTF-8?q?Marc-Andr=C3=A9=20Lureau?=" To: qemu-devel@nongnu.org Date: Fri, 2 Mar 2012 13:49:22 +0100 Message-Id: <1330692562-21943-1-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 1.7.7.6 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 --- 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 1308a3d..8472cdd 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" @@ -699,6 +700,11 @@ void qemu_spice_init(void) qemu_opt_foreach(opts, add_channel, NULL, 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)) { fprintf(stderr, "failed to initialize spice server"); exit(1);