From mboxrd@z Thu Jan 1 00:00:00 1970 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 21DA0C433C1 for ; Fri, 26 Mar 2021 09:30:24 +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 A1B6461A32 for ; Fri, 26 Mar 2021 09:30:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1B6461A32 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]:43076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPinJ-0002O2-Rn for qemu-devel@archiver.kernel.org; Fri, 26 Mar 2021 05:30:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPiiI-0006fV-SN for qemu-devel@nongnu.org; Fri, 26 Mar 2021 05:25:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:59573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPiiH-0001cx-2E for qemu-devel@nongnu.org; Fri, 26 Mar 2021 05:25:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616750704; 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=ulHB5goP1OYYWrCeobzy36XqIsJGJhJMrxFSyWwozcE=; b=Qjka55ps0wjSQrf8RgJFxYINzrIL7Uebw7bxIeUo8KE7hEIZ8J2xAm0DjOvF8550MeyU9p dfnoe3EU8iiMUv3IMGMH2hZUf0aWAmRf4eZuFaJa6O+RTStp25Wbw4DpPSl+lMBz/PWwcS oqypnX85NMqVrsM/WN4Aahxup8+YAFk= 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-486-umlj22x_P3-rSPVuSqCt2Q-1; Fri, 26 Mar 2021 05:25:01 -0400 X-MC-Unique: umlj22x_P3-rSPVuSqCt2Q-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5E1FA1052BB2 for ; Fri, 26 Mar 2021 09:25:00 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-102.ams2.redhat.com [10.36.112.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 338626EF54; Fri, 26 Mar 2021 09:24:50 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8B6E71800385; Fri, 26 Mar 2021 10:24:48 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH v3 0/7] ui: add vdagent implementation and clipboard support. Date: Fri, 26 Mar 2021 10:24:41 +0100 Message-Id: <20210326092448.367016-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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=63.128.21.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, 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 , Markus Armbruster , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= 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 v2:=0D - add a bunch of sanity checks.=0D - add proper chunking.=0D - use autofree.=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 =0D Gerd Hoffmann (7):=0D ui: add clipboard infrastructure=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 include/ui/clipboard.h | 68 ++++=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 | 756 +++++++++++++++++++++++++++++++++++++++++=0D ui/vnc-clipboard.c | 323 ++++++++++++++++++=0D ui/vnc.c | 20 +-=0D qapi/char.json | 17 +=0D ui/meson.build | 5 +-=0D ui/trace-events | 10 +=0D 13 files changed, 1574 insertions(+), 62 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 =0D --=20=0D 2.30.2=0D =0D