Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 17AB5C433B4 for ; Wed, 19 May 2021 05:44:05 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2AFA60232 for ; Wed, 19 May 2021 05:44:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2AFA60232 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljEzz-0006M7-T1 for qemu-devel@archiver.kernel.org; Wed, 19 May 2021 01:44:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljEw2-00008G-P1 for qemu-devel@nongnu.org; Wed, 19 May 2021 01:40:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:35411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljEvy-0001dm-Up for qemu-devel@nongnu.org; Wed, 19 May 2021 01:39:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621402793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=82hgjANDsf7s7PB++Gzt8lZA61h7dq2fz6qO3r2Rmgg=; b=D/sNu9YPXq5Vu3vyfHZOlpiIWfDehmWjARubyAOQOGDogjaPHtJTql6gmdx28Xq0JTkIyi 1z9If5iT4s0c3QmcWSrHdEloUaYP52oHguD0QjLDh7yWBhUpGWmRakP8Xo86SmwbSAYPET gZZhCFEdhRQPOhtuSg9y3ooclaKJHQk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-353-3SEP5WnjNt6fsWPDHmayjQ-1; Wed, 19 May 2021 01:39:49 -0400 X-MC-Unique: 3SEP5WnjNt6fsWPDHmayjQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BEDA010082E4 for ; Wed, 19 May 2021 05:39:48 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-114-0.ams2.redhat.com [10.36.114.0]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D86C85D749; Wed, 19 May 2021 05:39:41 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 56C8F18007A2; Wed, 19 May 2021 07:39:40 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH v6 0/9] ui: add vdagent implementation and clipboard support. Date: Wed, 19 May 2021 07:39:31 +0200 Message-Id: <20210519053940.1888907-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=216.205.24.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.374, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Gerd Hoffmann , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Markus Armbruster Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Fist sketch of cut+paste support for vnc. On the guest side we are=0D going to reuse the spice vdagent, so things should work out-of-the-box=0D with guests in the wild. So this patch set brings a qemu implemenation=0D of the vdagent protocol.=0D =0D Beside that there is the clipboard infrastructure of course. For now=0D only text support is there. The design allows adding more data types,=0D so we can add image support and maybe more later on. So far vdagent,=0D vnc server and gtk ui are hooked up.=0D =0D Usage: qemu \=0D -chardev vdagent,id=3Dvdagent,clipboard=3Don \=0D -device virtio-serial-pci \=0D -device virtserialport,chardev=3Dvdagent,name=3Dcom.redhat.spice.0=0D =0D v6:=0D - rebase to latest master=0D - avoid busy-loop when writing to chardev.=0D v5:=0D - use error_report.=0D - error out on bigendian hosts.=0D - rename chardev to 'qemu-vdagent'.=0D - misc minor tweaks.=0D v4:=0D - rebase to latest master.=0D - make spice-protocol a separate build dependency.=0D - update qapi version annotation.=0D - add documentatin for qemu clipboard.=0D - misc little tweaks.=0D v3:=0D - support agents without VD_AGENT_CAP_CLIPBOARD_SELECTION.=0D - properly parse chunked messages.=0D - test with windows guests, minor fixes.=0D - set display_id for agent mouse events.=0D v2:=0D - add a bunch of sanity checks.=0D - add proper chunking.=0D - use autofree.=0D =0D Gerd Hoffmann (9):=0D build: add separate spice-protocol config option=0D ui: add clipboard infrastructure=0D ui: add clipboard documentation=0D ui/vdagent: core infrastructure=0D ui/vdagent: add mouse support=0D ui/vdagent: add clipboard support=0D ui/vnc: clipboard support=0D ui/gtk: move struct GtkDisplayState to ui/gtk.h=0D ui/gtk: add clipboard support=0D =0D configure | 36 +-=0D include/ui/clipboard.h | 193 ++++++++++=0D include/ui/gtk.h | 67 ++++=0D ui/vnc.h | 24 ++=0D chardev/char.c | 6 +=0D ui/clipboard.c | 92 +++++=0D ui/gtk-clipboard.c | 192 ++++++++++=0D ui/gtk.c | 56 +--=0D ui/vdagent.c | 803 +++++++++++++++++++++++++++++++++++++++++=0D ui/vnc-clipboard.c | 323 +++++++++++++++++=0D ui/vnc.c | 21 +-=0D docs/devel/index.rst | 1 +=0D docs/devel/ui.rst | 8 +=0D meson.build | 4 +=0D qapi/char.json | 21 +-=0D ui/meson.build | 5 +-=0D ui/trace-events | 10 +=0D 17 files changed, 1795 insertions(+), 67 deletions(-)=0D create mode 100644 include/ui/clipboard.h=0D create mode 100644 ui/clipboard.c=0D create mode 100644 ui/gtk-clipboard.c=0D create mode 100644 ui/vdagent.c=0D create mode 100644 ui/vnc-clipboard.c=0D create mode 100644 docs/devel/ui.rst=0D =0D --=20=0D 2.31.1=0D =0D