From patchwork Thu Dec 20 14:15:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 1016798 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43LDzm3Lfvz9rxp for ; Fri, 21 Dec 2018 01:44:20 +1100 (AEDT) Received: from localhost ([::1]:37866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZzYf-0001vF-5Q for incoming@patchwork.ozlabs.org; Thu, 20 Dec 2018 09:44:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZzLf-0007jL-BE for qemu-devel@nongnu.org; Thu, 20 Dec 2018 09:30:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZz7N-0000D9-6f for qemu-devel@nongnu.org; Thu, 20 Dec 2018 09:16:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48830) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZz7N-0000CN-0v for qemu-devel@nongnu.org; Thu, 20 Dec 2018 09:16:05 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C646B64100 for ; Thu, 20 Dec 2018 14:16:03 +0000 (UTC) Received: from localhost (ovpn-112-51.ams2.redhat.com [10.36.112.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3F666600C0; Thu, 20 Dec 2018 14:15:57 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= To: qemu-devel@nongnu.org Date: Thu, 20 Dec 2018 18:15:41 +0400 Message-Id: <20181220141553.24098-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 20 Dec 2018 14:16:03 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v2 00/12] spice: add -display spice-app, setup and launch a Spice client X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kraxel@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi, The QEMU GTK UI is quite featurful. Yet, it doesn't provide many of the functionalities one can expect from a VM desktop application (USB redirection, shared folders, drag and drop, better multimonitor support etc.). Spice is able to export many of the VM controls to a client, including QMP monitor, serial ports etc... It's thus possible for a Spice client to provide a similar experience as the QEMU GTK UI (while keeping similar display performances locally) and more. This series provides "-display spice-app" to setup a Spice server and launch a client (associated with the spice+unix:// URI). With virt-viewer series "Add QEMU-like UI: VT console & basic VM state" (under review), the resulting user experience is close to what qemu GTK UI provides. v2: - renamed -display app -> -display spice-app - error if full-screen or window-close is provided (supports can be added later) - use a stable URI when -name is provided - print the URI at start - added "qapi: document DisplayType enum" - added "spice: use a default name for the server" - commit message tweaks - include previously reviewed "configure: bump spice-server required version to 0.12.5", to avoid conflicts - rebased Marc-André Lureau (12): configure: bump spice-server required version to 0.12.5 char/spice: trigger HUP event char/spice: discard write() if backend is disconnected spice: avoid spice runtime assert spice: merge options lists spice: do not stop spice if VM is paused char: move SpiceChardev and open_spice_port() to spice.h header char: register spice ports after spice started build-sys: add gio-2.0 check qapi: document DisplayType enum spice: use a default name for the server display: add -display spice-app launching a Spice client qapi/ui.json | 31 ++++++- include/chardev/spice.h | 27 ++++++ include/ui/qemu-spice.h | 6 -- chardev/spice.c | 70 +++++++------- hw/display/qxl.c | 2 - ui/spice-app.c | 200 ++++++++++++++++++++++++++++++++++++++++ ui/spice-core.c | 21 +++-- chardev/trace-events | 1 + configure | 17 +++- qemu-options.hx | 5 + ui/Makefile.objs | 5 + 11 files changed, 330 insertions(+), 55 deletions(-) create mode 100644 include/chardev/spice.h create mode 100644 ui/spice-app.c Tested-by: Victor Toso