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 A5FD0C433B4 for ; Wed, 5 May 2021 06:11:16 +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 452606117A for ; Wed, 5 May 2021 06:11:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 452606117A 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]:59544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leAkd-00060f-5F for qemu-devel@archiver.kernel.org; Wed, 05 May 2021 02:11:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leAik-0004ZE-AX for qemu-devel@nongnu.org; Wed, 05 May 2021 02:09:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leAih-0001bu-2k for qemu-devel@nongnu.org; Wed, 05 May 2021 02:09:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620194953; 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=3ta0XVZxs1Ymause1w9UFlJHlPIRygfN1ksv/COZPQA=; b=PC0PiIdrlyGbixoFhTwm7u9ZI+tq8T9GqkKJGS74Omb9u14HXOJGawKyOmAYF54DS82ka8 3HE19cXPWbDtUAgG4sgKeplNx6m0BrrU9wD0L3Vy/PhJk8kL3ES1Vpk8tBf1Uw059+9+n2 qDqKSURK1tvJp7fSXCqAtRoLpiibWKA= 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-88-I5D5AF-jNQSxcPTq4xw8QQ-1; Wed, 05 May 2021 02:09:10 -0400 X-MC-Unique: I5D5AF-jNQSxcPTq4xw8QQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C874F64149 for ; Wed, 5 May 2021 06:09:09 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-11.ams2.redhat.com [10.36.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 10F311002D71; Wed, 5 May 2021 06:09:02 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 66E4F1800383; Wed, 5 May 2021 08:09:01 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PATCH v5 0/9] ui: add vdagent implementation and clipboard support. Date: Wed, 5 May 2021 08:08:52 +0200 Message-Id: <20210505060901.828658-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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=170.10.133.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.697, 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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , Gerd Hoffmann , 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 v5:=0D - use error_report.=0D - error out on bigendian hosts.=0D - rename chardev to 'qemu-vdagent'.=0D - misc minor tweaks.=0D v3:=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 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 (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 | 765 +++++++++++++++++++++++++++++++++++++++++=0D ui/vnc-clipboard.c | 323 +++++++++++++++++=0D ui/vnc.c | 20 +-=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, 1756 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