From nobody Mon Feb 9 22:19:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1640202370; cv=none; d=zohomail.com; s=zohoarc; b=BinFP5xVNJ6iHxfs6rJ8+3J7xi8pC9uKlLCcdf+viAUCYnAWRg6aQX2dtEUZatT6F2Ib2dTo31aetPg3KdxcSh/K30lkvLqNzKX6vKSudw4eV75AP7v+4IH3GnT1spfasG5Xw3GDUMRD7c6WdLiF86VdE0JqOz3gR/RR22WyQow= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640202370; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IU1uw3cJyWkWIarkJJlr3ELdOFtlT79PTQuxhPkKBAw=; b=CTnE8/7ASRY1BKAbaNiXzvPGgEYyJuq+Zt4SARJPMXVVUkUR7xw3PtDl3U+6L9Pd1NItE2YJDp1amEctf8SOu4R+4iu6aPU/e4ceqiEKSkBYsoiVjO4Paxh533/kIZdVEYng80wm5zA5+Y5zDT/tw3iieodL0+zwoh8ERPIYeoo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1640202370860688.685141132835; Wed, 22 Dec 2021 11:46:10 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-591-UvzKbxw2P2-LdeO-BbLzsg-1; Wed, 22 Dec 2021 14:46:05 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 388871023F4D; Wed, 22 Dec 2021 19:46:00 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1A1EB752D7; Wed, 22 Dec 2021 19:46:00 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DF5F54A700; Wed, 22 Dec 2021 19:45:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1BMJjwao019216 for ; Wed, 22 Dec 2021 14:45:58 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8DAEB7BB69; Wed, 22 Dec 2021 19:45:57 +0000 (UTC) Received: from localhost (unknown [10.39.208.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1754A7B6F0; Wed, 22 Dec 2021 19:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1640202369; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IU1uw3cJyWkWIarkJJlr3ELdOFtlT79PTQuxhPkKBAw=; b=eQam9iBnhiTClUf/oQzxRYlPcWvLlwaNNzZPBvJmtgV5F38y2+4RCgKPMoEi+D8Fb67LmF cm+wmJ1RdwL/KY+QJrBlhipKGaH23foeIUaxLZhba77+TuuAmNXJiYdfX5RWEgQMHBVFrz biEpwdfCzthYUkzzoumbIb3+fOhkgJQ= X-MC-Unique: UvzKbxw2P2-LdeO-BbLzsg-1 From: marcandre.lureau@redhat.com To: libvir-list@redhat.com Subject: [libvirt PATCH v3 11/16] conf: add dbus Date: Wed, 22 Dec 2021 23:43:40 +0400 Message-Id: <20211222194345.766352-12-marcandre.lureau@redhat.com> In-Reply-To: <20211222194345.766352-1-marcandre.lureau@redhat.com> References: <20211222194345.766352-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: mprivozn@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1640202373042100001 From: Marc-Andr=C3=A9 Lureau Signed-off-by: Marc-Andr=C3=A9 Lureau --- docs/schemas/domaincommon.rng | 8 +++++ src/conf/domain_conf.c | 13 ++++++- src/conf/domain_conf.h | 1 + .../graphics-dbus-clipboard.xml | 35 +++++++++++++++++++ .../graphics-dbus-clipboard.xml | 1 + tests/qemuxml2xmltest.c | 3 ++ 6 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 tests/qemuxml2argvdata/graphics-dbus-clipboard.xml create mode 120000 tests/qemuxml2xmloutdata/graphics-dbus-clipboard.xml diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 5938f0d5acd3..213e1a07c0e8 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -4039,6 +4039,14 @@ + + + + + + + + diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 791df66ff024..99cf63c1bc55 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -12918,6 +12918,13 @@ virDomainGraphicsDefParseXMLDBus(virDomainGraphics= Def *def, return -1; } =20 + if ((cur =3D virXPathNode("./clipboard", ctxt))) { + if (virXMLPropTristateBool(cur, "copypaste", + VIR_XML_PROP_REQUIRED, + &def->data.dbus.copypaste) < 0) + return -1; + } + return 0; } =20 @@ -26766,7 +26773,7 @@ virDomainGraphicsDefFormat(virBuffer *buf, virBufferAsprintf(buf, " address=3D'%s'", def->data.dbus.address); =20 - if (!def->data.dbus.gl && def->data.dbus.audioId <=3D 0) + if (!def->data.dbus.gl && def->data.dbus.audioId <=3D 0 && !def->d= ata.dbus.copypaste) break; =20 if (!children) { @@ -26786,6 +26793,10 @@ virDomainGraphicsDefFormat(virBuffer *buf, virBufferAsprintf(buf, "