From nobody Mon Feb 2 05:56:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532369; cv=none; d=zohomail.com; s=zohoarc; b=L3GKhzMXsEkL4kE094SBy2NO3Xuk4rB+v9zogl43i7U38cZdexLJKSShoxxHNrK/xoDBsaGJc0/rX6eACFqiS2KE5LrzvfJ3Y2meifxi/CHYqS0otEFLX1hLMWc9yeqIv235x2LJMo4moKoMui9ysb0COqcLHkI0BdrDuFI4UHo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532369; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=HwPKOaO6Y3kdN49M+3HJe7otRfARvcM27OcZ8A8JVhE=; b=YMBIVauYDfYuu7Gv8R2fWThl7TpCxZFtuNk1gFLuL8YN4g2xUX3O2OVX1FCSX+CI5xG6L+fv0FAhl8TCJfBrUtiY3J9vzPpZiqffETk+7hYMOFsR/FfDiwwRqq3QddfCkGzX8N+11Lkt0bmQ1I7CWQ1vgjlPS85o7VFbgyZRRjo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532369840256.3688009609416; Thu, 15 Jan 2026 18:59:29 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id C50E541C12; Thu, 15 Jan 2026 21:59:28 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 7A0DE43DF4; Thu, 15 Jan 2026 21:57:48 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id A184541ACD; Thu, 15 Jan 2026 21:57:35 -0500 (EST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 2AA2841ADB for ; Thu, 15 Jan 2026 21:57:34 -0500 (EST) Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-8c6a001e3bfso94914885a.1 for ; Thu, 15 Jan 2026 18:57:34 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:33 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532253; x=1769137053; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=HwPKOaO6Y3kdN49M+3HJe7otRfARvcM27OcZ8A8JVhE=; b=PRjKBogPIwfef7e1ycQk3k3uR5oZzjdk7pWazI+xAIX96/wXlWtW1EHVWcKrEDysT3 vAfEPc9q+MIOtX08ei4H760azfhhnv3Njg0LKo2NdZzrx8GJPltyWzlHQLOZTL6+eCDe +1nL1vpYkzuDSGmhB2qb0ZnQwy45BYSF3oEf1eP6XpAYc4Q2kk5Ktfo0HQUJ2YSTELnL P/XiKyK4bNCWmUcd1hCElkhuHeiE0GLtFOgjCXgebSv6OcnJZV6LDqP7tC5pMoUEYjVy v1L1sY7+V844tF9bjQxmmOcV6+gOZxtWJKRK2G+EXk+snm+SO5LDsI2pmt5obs3/Aa20 JjoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532253; x=1769137053; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=HwPKOaO6Y3kdN49M+3HJe7otRfARvcM27OcZ8A8JVhE=; b=VxbqBC5RgUF5N5Mw9iqlzBZLdiY1GvWI/b76UBBJQWT9YSUgm0p1XXle0UE4Nd4cQz +PBLn3Km4/9bWxuryYvIVgpcmY0nUg4WeuDawrYgLDyN3wWWlX/oVZh7U5Yzv8UPqfyA 22seOj+JBcpafQCuJB++HB+ONAiWptBFzMYXsn7lmyPjeNYodZR8uatKltxarVoW3f9R zAIKkKpBPy8SxlfUZpKTDv9/iBMnzPcyLLO3SWrNXLr/SzqhF+ZC8P770onC6KVsz/px sIsCuIXDxrqENHZsn0bhlMj9hnYO+xfmXxHpxY7slpFoQ8tWConiLmfpnz120g/TTB3z HIIA== X-Gm-Message-State: AOJu0YyL/+RDToCHa/kDAhtGYlnek3k1girmRDu68Yq3Yb1XOcLJDNVi nlDy6zsJhGIvelZrr4aohUfWoXl4llk3dByDqBT+mo/qzRMChlXBKPhM6mG06w== X-Gm-Gg: AY/fxX7valFqzoh07xvdQlpzb/fbBSanhwGJps41fXvmMUAA2aFG3BwOqlRQGckLDEb DI22cLVVB6Gzk9xVZPZqfEoQF3MCw5B/p49a9ua9rJQgTjT14PRXc/cks0PXjv7baWDs+Y5QjkR FvH0FHGu0e8m3HgOYIyEQBLyODwMuZ2RyylWEkK5t6mZ2hq2DTj4yf6OmSs+VMi+6poALM/X5pX oiUL1008UbZYk+EWUqP6b5faMAY4/6QovbR4OPgNbR4If8pwdQ7KTrSlsT4gNdIqF83KbzY4Z+U Hh2sszX0cnGrkNPPtANTkmMaGhdnsU+hv0w56kS7By9Yl0acPv3arJieCAiv5kZhlYq9sfEtWYO sXWN8v2PYObDFnYzaSPfIbn6p+8R2Wb1hasy/287NmsAYa7YC1yD2ZrTpnxbRZ7H7AO+B75rBrk I= X-Received: by 2002:a05:620a:4402:b0:8b1:ac18:acc8 with SMTP id af79cd13be357-8c6a6707e15mr247882185a.26.1768532253422; Thu, 15 Jan 2026 18:57:33 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 1/8] conf: Add multitouch input type enum Date: Thu, 15 Jan 2026 23:52:29 -0300 Message-ID: <20260116025708.18419-2-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: YBXI6FBWTZ2GZWQ5RUJLYWZOCAAYGPOD X-Message-ID-Hash: YBXI6FBWTZ2GZWQ5RUJLYWZOCAAYGPOD X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532370939158500 Content-Type: text/plain; charset="utf-8" This commit introduces the VIR_DOMAIN_INPUT_TYPE_MULTITOUCH enum value to the virDomainInputType enumeration, laying the groundwork for multitouch input device support in libvirt. The new enum value is added to src/conf/domain_conf.h following the existing input types (mouse, tablet, keyboard, passthrough, evdev). This establishes the fundamental type definition that will be used throughout the codebase to identify and handle multitouch input devices. This is the first step in implementing support for QEMU's virtio-multitouch device, which was introduced in QEMU 8.1.0 and enables emulation of multitouch events via the libvirt API. Signed-off-by: Julio Faracco --- src/conf/domain_conf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index cb35ff06bd..4c448bd010 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -1554,6 +1554,7 @@ typedef enum { VIR_DOMAIN_INPUT_TYPE_KBD, VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH, VIR_DOMAIN_INPUT_TYPE_EVDEV, + VIR_DOMAIN_INPUT_TYPE_MULTITOUCH, =20 VIR_DOMAIN_INPUT_TYPE_LAST } virDomainInputType; --=20 2.52.0 From nobody Mon Feb 2 05:56:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532413; cv=none; d=zohomail.com; s=zohoarc; b=LwJZt3t+vzPvhaeRjS0i6gtqo3wOLrquvVVWdLm+L34LpegYHRJ21BXwsQnHB6v6bzW+hd5BaoyUQhU2K7UgRK4i5vY6z2n2aWehrH1IwU+s+wIJY8LweTzpF5v2ypRccl3kWVncym9uYZIHS6wVAgPTGT4p7Xuaw/H0tTs0ENM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532413; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=zMlgAINl0Ry/zfDZwnMXcNWRTVX/0X0ozAYsgnr4ODA=; b=aVeyx0JTAIMrG2m5d0Bm+lCW6l6rwVXF/OhbqafEwU0g7JzKixb5o/S6cBC/Gwjy5MqEqOYteqTg/JPinYL4Qfkg4p8tyjb3PelGAw2drk/b+VkYaFhYavg7XkBz5I4keG90gvJ2chX9C+sF0igaMHRrPUAXZEy/tPO/bSXnlqw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532413011853.8841582387233; Thu, 15 Jan 2026 19:00:13 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 2E7BB41C2C; Thu, 15 Jan 2026 22:00:12 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 7CA5141BA6; Thu, 15 Jan 2026 21:57:52 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 0C19841AC1; Thu, 15 Jan 2026 21:57:36 -0500 (EST) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id CAF6341AC4 for ; Thu, 15 Jan 2026 21:57:35 -0500 (EST) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-8c52c67f64cso174094585a.0 for ; Thu, 15 Jan 2026 18:57:35 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:34 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532255; x=1769137055; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zMlgAINl0Ry/zfDZwnMXcNWRTVX/0X0ozAYsgnr4ODA=; b=R2ZnFfIY+TATXKKrPXaKfTFtnT6KYRHv0VM/jFM2zqoISYzQmE0+PKTffG/O9gkIBE fvr3EitAQfkhcJBDSfJoKmtATDbD0LQRYLmll0HcvC/vhSIjy2TUHZHSvtdYUuoAdprC q2yVLihU7r3LmO0FhHYxKiRt+Sug50RpTnddv/heCf1XI3OxSZTK7/fWE9amNFMDLMAh dpRQbIGG3F4Him78sdIaolztXumP8v/Is+us20m1SSeGaxXJ/SMKn/WV4v+XHttcmnE1 iD4/Req734rKjlMnTjKGrVWBT4y8UoxdCab/aZKE2qeKCRS/vLo+uKWdz9gabV20qXsV Yp6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532255; x=1769137055; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zMlgAINl0Ry/zfDZwnMXcNWRTVX/0X0ozAYsgnr4ODA=; b=MnSjBV6bas/2/2kGSQP2Vv4Dihe+edBXb8JerUebkGAwcbSj69lseuECBX+nmIIb1z IiO5eu0ERRC+YxiSTmpFnZ1pyET42HMDYDyIDpDcdY971J/+5b1vfQILmKwzCyAAthta NW3vgBklVSOXOVpm29uqpEWMg9WuVVf0jWV+Hu98DmdhbgUSoBdXL8V7bhctzoZZ6dz0 00u7/pFzzWp0Kluf4FrvrQreWDxfVVtj8F1FWlpo+k0R1lJOg//1xsVOrT5IMu+4Hxvo ZgaBAEEUp4JMGhcf1JVzy9coq59y2JuO2/x0cA6j7KOwxzgFCvnFUyP56A9ke0cXGM6Q xwRQ== X-Gm-Message-State: AOJu0Yw58FYIPjwQD0DWsP+7tiUJ94djR9g7eQYoFC0NPKSK87V/S/dX 6ej4JMcTIjGjJgPithjZbtDLNSYN720VBmxxuKDBVMn1n/Mg2zDEMEhIMjoDqg== X-Gm-Gg: AY/fxX4csioIZ3P/sGGebi2So7F8Ay3PhCkdCjZIrSgy4c7AEvYArh3HHOO4Yq9uC+F AcqLKh/t/UBGYGxDpk0S10j2DCGt6LJT+htMZoQakUK9P2vbxM7EYcwOKfocT1P4JWq4nepNDAC gARSVCY3q5DuVhmlqy7WLZNGXb0FoTvAbEfmFqODf7S3u8lv08/XP5jZ+EXzMlepxQ3nkAC7qzL G7FVyOS0fVOJg70kRa06FajXL5CY6RPgjNUaSTEC3IvkGjSXO6fDsl/RF9PqmgW+QE+jI1ErTyf 9SnmIADp2CypXavZ/twbHipJWj9Zt4/Kf0BAHnKzPkvDBBlBFVoCXMHckNgJ9DjrT7L6SAmPBnU bY8WYWzJGBgxjTQY2dNlcHUgrt+T3h/Srb/kBc99U2+QTcRuSIWD4Lo+pmp1Y2mHIokKfH5VWC+ Q= X-Received: by 2002:a05:620a:404c:b0:8b2:ea3f:2f91 with SMTP id af79cd13be357-8c6a67ac4a4mr237616785a.81.1768532255033; Thu, 15 Jan 2026 18:57:35 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 2/8] conf: Update the type name mapping in the VIR_ENUM_IMPL macro Date: Thu, 15 Jan 2026 23:52:30 -0300 Message-ID: <20260116025708.18419-3-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: JI6KXR7FE2FCCDSA4SFTO4NANAK5OHNI X-Message-ID-Hash: JI6KXR7FE2FCCDSA4SFTO4NANAK5OHNI X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532415006158500 Content-Type: text/plain; charset="utf-8" This commit adds the string-to-enum mapping for "multitouch" in the VIR_ENUM_IMPL macro within src/conf/domain_conf.c. This mapping is essential for XML parsing and serialization, enabling libvirt to recognize "multitouch" as a valid value for the type attribute in input device definitions. When users specify type=3D'multitouch' in their domain XML, this mapping allows libvirt to convert the string to the VIR_DOMAIN_INPUT_TYPE_MULTITOUCH enum value internally. Without this mapping, libvirt would reject domain XML containing multitouch input devices as invalid. Signed-off-by: Julio Faracco --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9ca5c2450c..aeb81fc42f 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -916,6 +916,7 @@ VIR_ENUM_IMPL(virDomainInput, "keyboard", "passthrough", "evdev", + "multitouch", ); =20 VIR_ENUM_IMPL(virDomainInputBus, --=20 2.52.0 From nobody Mon Feb 2 05:56:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532452; cv=none; d=zohomail.com; s=zohoarc; b=Bxt4Va8N7RJJT1ETB7TtHCfOVCI53D4gWEX3z16uWZOsJk60SbAu1zpINDdFD0JSUUrNttorlKifzza0M1I2W1LOJSIJZPPOmwj4JdCZ6Wz6UII36FDKSUsHRXOHpkaTPuIM5Tqv3ABhDZSiWAi4i+z8OzSGLC+yz5Ep28YZqhk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532452; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=UkkP5q+AZ2t7kl0LsFWRA4Bch5equLOifXVUfFrnf28=; b=RaW8tNXopZEWT03Um8DcujW+Vlr87wJXM8loYu5/iiH3sDIBGQXRC2LVWuiXLZOMQbAn/i9VX75rLMuujZ/HIAwttB2za82rY0dnhH2cRgH+RjjDS47LHrHtAW5k9Ua621+hsNZEjQddRnXVnodaQ/Z4M2jki8DxL68/VzRCZcQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532452264298.5835540036077; Thu, 15 Jan 2026 19:00:52 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 7784141C80; Thu, 15 Jan 2026 22:00:51 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 63FD743E9B; Thu, 15 Jan 2026 21:57:56 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 13D6E41AB2; Thu, 15 Jan 2026 21:57:38 -0500 (EST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 8C27D41AB2 for ; Thu, 15 Jan 2026 21:57:37 -0500 (EST) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-8888a16d243so16097276d6.1 for ; Thu, 15 Jan 2026 18:57:37 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532257; x=1769137057; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UkkP5q+AZ2t7kl0LsFWRA4Bch5equLOifXVUfFrnf28=; b=OOMyre3x/gOXOL6VwgenBqE+jtxyij5ig6KSP3sYvEdoD+bH8DOQ9R0a8Hzn5Ad2iD 7rp5SoBD/WlxeFghPmM5uaylNCIF0BWVotEbEtD5xBTFDrJnrGYCz5Mycsu8baO9+ISZ 8NBrEpk50RSKhVqDtyjSaogHEy0zkatAEv5DNAYvlhEFy5vx4aDPNbFgq5mTMtEvLj41 f3fgk2EsL/Vd9s2BpNd8fT8o3ZlCJCBrjKxPAc0gWt6vmHdG53wCSO5z4vkDNzfOMUvB uCs3uaQylpBf0w/krmDLNEwOc5Bkc0nKwzivHZpljZJmzp8k63J+1XmZDybgHCEYnavP F/XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532257; x=1769137057; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UkkP5q+AZ2t7kl0LsFWRA4Bch5equLOifXVUfFrnf28=; b=EvD8973Sd9FuDQf5Km4jr96PLH/fKfq3N7RhWGfr65v09hnpaxYS19Bt6V0xw/v6fk 05R9Q3R4D8I1Hyq6amHhygqZ2t5bh+Hvc3hcMIDzOnrsOlyFccnBf+/MKwk9FoFBBv6c i7Q4mUdsIz1Z2ld3fkOuuSRFGfMY6B7WEYjdbblYVEJ0zzgfrIZdf7u4A2wfGp/f/9ry s4t9So2odWvI7KJ5YVstzhJ2wH2EjCwEfYvMua5fmJI/i2No/k4+3sQhEA3b7zCccl89 sdpNZ2T0c0VMpsw4TA13wI013HoRQrjeh7V6MiYVDiJ1HPIzI8KMiXFPWUVqMFp/d0Nm klmg== X-Gm-Message-State: AOJu0Yxzf1pm1+/O0hCHDUmqmVzq+P/qNphA1ElnITtijV9Pf+nONUhq owVRyuTLVRcDrB7/S5sUXwX/QD5CL7Fmh4flO7JNamBBxihU1DOVwx5xHt91bw== X-Gm-Gg: AY/fxX5GQP7irt3f5Qb+LVFwdDS8URHUiWhle2/C6Ajm057PtARoX2iemObYLi64hYV mlrHr2ya3QUebv1mLtlHrx/64KPD0txVQumYOaUgPzXQ/2Ia7moTO+yeYKZuLOmdgYwarCdR0kF vF62bJ/IChETYHh53E+13vF+cmIOX1byQyvLO2zPnsxm+8VVVQlIVkoq5eJx2gIDvdmiiUEZBeZ HvRMs6FKmsoV+EzrOVuGo8CsXWtN9pN2zSDQV39ahZL0FeUgX/XQQYjXuoZZZtGvdmR4BaRCEzU GX1/FphpATtnkl3VbOv2oW6rWivv9B2YJAFv3vmYkUxhSTFez8woIVGu/R1B6ow9SY8Cq5PcEpq gl0HtbeWhUD4PwBHAPfcvQYy0OSy6SwCrvCNBbF5sYxwB/NEoJr81+Azlxa3iFwzo X-Received: by 2002:ad4:5c6d:0:b0:888:7db7:b3e with SMTP id 6a1803df08f44-8942dd1b6bdmr21349626d6.18.1768532256732; Thu, 15 Jan 2026 18:57:36 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 3/8] schemas: Update domain schema to support multitouch Date: Thu, 15 Jan 2026 23:52:31 -0300 Message-ID: <20260116025708.18419-4-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: U2AQBV52WFBLBOYGOY7FZSTKSHLQBTA3 X-Message-ID-Hash: U2AQBV52WFBLBOYGOY7FZSTKSHLQBTA3 X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532453124158500 Content-Type: text/plain; charset="utf-8" This commit extends the domain schema (domaincommon.rng) to include "multitouch" as a valid input device type in domain XML definitions. By adding "multitouch" to the allowed input types, we enable users to define multitouch input devices in their VM configurations: ... ... Signed-off-by: Julio Faracco --- src/conf/schemas/domaincommon.rng | 1 + 1 file changed, 1 insertion(+) diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index 114dd3f96f..d8fdc8c240 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -6359,6 +6359,7 @@ tablet mouse keyboard + multitouch --=20 2.52.0 From nobody Mon Feb 2 05:56:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532489; cv=none; d=zohomail.com; s=zohoarc; b=FeBOpLaBb4ayyRJl0KdIRv5bPoEF5YMzyUCwEhsptR9S3y2VyvH460vfEXMn4OnjYKcs3OBt6wX7JIhUDit62NrfsH9p+1H82JHTFRTd75PD8TeWK33zM/lXeJcHtH8JCF7n7BN0UfEL1s+uFJDxqevzNcUBlCHlSDMHf4+2Y+4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532489; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=dmnnYpVsrR6sN0XpNb1qc9Z+mMYsXDWs5vGSd8Y4b/w=; b=dUaTMKqjJsdUR8obvNkQ0x97e4GpgvQtsQfiN1tCPgMG4Ff8SOi/+XJKyYdMCKTHj5Tor/qtD9berMYNITcwL/W2HJSRMJBcWXXGVOrGTA3P465zrIFTjUUB4uoo0VQ5LJRuCxiygHbPe7L/3T2S5SAFPGsflfQ9+DqtsUPTFu8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532489315148.51627264008607; Thu, 15 Jan 2026 19:01:29 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id F2AE641B24; Thu, 15 Jan 2026 22:01:28 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 76C4C41B94; Thu, 15 Jan 2026 21:58:01 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id B8CCA41B4F; Thu, 15 Jan 2026 21:57:47 -0500 (EST) Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 219F341B2E for ; Thu, 15 Jan 2026 21:57:39 -0500 (EST) Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-8c2c36c10dbso187273185a.2 for ; Thu, 15 Jan 2026 18:57:39 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:38 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532258; x=1769137058; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dmnnYpVsrR6sN0XpNb1qc9Z+mMYsXDWs5vGSd8Y4b/w=; b=HVDO7ou7F9LW1qxlhG4I3YcstzWS77upqQeAaMuFI/PWyf/725w7ub2NTWR2IRSsZN gY1S3Suc2G0nEzXqtWAnEQzO5O68S1wAVK2HI4jNrL9QGIdiwTPyjokgp7FXTpHLQS8U bmB7B7l4RHl+zrO9xhJVEkruJKVbNXG9zxVSlTleG5zaFTlj6c3Xvve6PBe6BLDFuvoC FpbaFpLI8ma4om+rU52oS6QVmjC0LAUwbMyHWEW9vI3xHDAiDKW+AfIVwKJ6WP9lO2Nh iKLPwnfE4ngySfCSu68wla1PbD5QyPVHDCSsMBkd4NzlK2QbL+6Ml2NLctEF6c75a+Zl f+cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532258; x=1769137058; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dmnnYpVsrR6sN0XpNb1qc9Z+mMYsXDWs5vGSd8Y4b/w=; b=jc4t0ga/kVGn//i0x7OuzWNRc/XK3sDzdsmhfO81By66S1SR3L9IzLx/cLCKeI9E8z L88zuYr1Iy8oos3VxcbeeDs3PMiYAcqXRiRPhdAbzjFSBnEPf1kVt2O/+eoPUZkP+gSO vmfhc7r4V3FMWQzN1E3JrPqVDvbsV7SxIvpuw0WpjhDHo0dDl2YEuL4KQYjuXy4jmIKQ vSbJhPI2H42cAtjEkEYCSMeWXGnjPlXsWhLAfhjGciIxiAKI8mWPvjnlp+IpGZqmTSB1 Uq1hzR1Y2dZXFpvilfiZMSAs1jUoeFeiDwZYlKa/YpxG7EwpR5D2HHATf+2DeoDBnf9m DA7Q== X-Gm-Message-State: AOJu0YwHCKCvfR4gH+RHVg57SK/mKtUwnDXmKiQ9mKZCOMmt/+34pImU TXPYirLO89CFphL05m0hgVLzGbnH7WEJyE2/wUlaZ6fCVBd7drVFVhhLOq8eGg== X-Gm-Gg: AY/fxX4u/S84A1/A8JYjjJXZ4Voy9z40I5UPDQ6VvadKaT0XrNll0joVzYJKfrMB7rd xbnJ37FOXpcH0wMfPeTgKuyT7OS8PsiM150Q2gPRA/+p694Tbl3P4YuDh1JAzlqDkOvx38ek7JO WrzSqJKkw8tHppAtSAnSKN1Ei4PecsIGjqms9MHBmQYlqWfq+DCjg9vY3VYMAhm35YphEJJIDsz nUyh/EkJyTguvGZFmvK3bLSLwPHwDJtphk5+fuedRb/mm+eG140CKEB/KhjJkVukD86njk38uHM oKI2JjojUH1+zMCE5MoN0lfrHuNFmxwOvvgGzsUR1lICPzD0hhkS78lVQMnGTxhgK36eicc6VI+ UU5mytJHmzWRxQCVKt7hNMDTM+6t2potF3oFjJmJ8XGltcR4QaHhnfwll4jwWBFs0 X-Received: by 2002:a05:620a:2592:b0:8c3:7016:1d8c with SMTP id af79cd13be357-8c6a67bf39bmr230529285a.88.1768532258391; Thu, 15 Jan 2026 18:57:38 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 4/8] qemu: Add the multitouch case to map to the QEMU virtio device Date: Thu, 15 Jan 2026 23:52:32 -0300 Message-ID: <20260116025708.18419-5-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: UN3NK2WGOCKAO5LQMEJS7U5JC5RD4QSE X-Message-ID-Hash: UN3NK2WGOCKAO5LQMEJS7U5JC5RD4QSE X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532491374158500 Content-Type: text/plain; charset="utf-8" This commit implements the QEMU command-line generation logic for multitouch input devices in src/qemu/qemu_command.c. When a domain configuration includes a multitouch input device, libvirt nee= ds to translate this into the appropriate QEMU command-line argument. This commit adds the VIR_DOMAIN_INPUT_TYPE_MULTITOUCH case to the switch stateme= nt that maps libvirt input types to QEMU device models. The mapping follows the established pattern for other virtio input devices: - For PCI bus: virtio-multitouch-pci - For MMIO bus: virtio-multitouch-device This enables libvirt to generate command-line arguments like: -device virtio-multitouch-pci,id=3Dinput0 which instructs QEMU to create a virtio-based multitouch input device for the virtual machine. Signed-off-by: Julio Faracco --- src/qemu/qemu_command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 0de0a79b46..705cc43cb9 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -929,6 +929,10 @@ qemuBuildVirtioDevGetConfigDev(const virDomainDeviceDe= f *device, *baseName =3D "virtio-input-host"; break; =20 + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: + *baseName =3D "virtio-multitouch"; + break; + case VIR_DOMAIN_INPUT_TYPE_EVDEV: case VIR_DOMAIN_INPUT_TYPE_LAST: default: --=20 2.52.0 From nobody Mon Feb 2 05:56:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532523; cv=none; d=zohomail.com; s=zohoarc; b=daz1MQWnmlR3RlBxFBINMu8FbpOE65RNBD1fYcBoB3N8WwE6mmdes2+CX6jJn6vm/oIXVKsnuwPnEM5vr7II3xSCTFTYSiJkqLT7wPjKhoQiRxDq0oRYyEB7fWmbzGX868lRjAs7iihmj+mpaJntqrLP9AT58shBOjS540WZeDw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532523; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=8r/R+STQq73Z0UYdJIVv+PRTJNW9Dod2zW076uWFDC0=; b=ZgxgaYGu4dESeVgyCNIF9FAi/VS3TW4Cos9G5B0US1uKF4pVpmQf6O8zWWSOvEZctuhm3QmWN5xxvXghcu22+cYzBvvt32JN+XYOsO9AXCeBJEM5HMT2xdQOC3wPLuc/+6cBg2XR/QWeeoBLrlw2OYXddpwnWXpTKUVTQYH7qD8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532523917989.5448219407195; Thu, 15 Jan 2026 19:02:03 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 1B09141AE8; Thu, 15 Jan 2026 22:02:03 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 71E8B43F4F; Thu, 15 Jan 2026 21:58:05 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id C469643E52; Thu, 15 Jan 2026 21:57:53 -0500 (EST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id C9E5C41BB8 for ; Thu, 15 Jan 2026 21:57:40 -0500 (EST) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-8887ac841e2so13314946d6.2 for ; Thu, 15 Jan 2026 18:57:40 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532260; x=1769137060; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=8r/R+STQq73Z0UYdJIVv+PRTJNW9Dod2zW076uWFDC0=; b=FqdcJVofkI0p5dMXxsPzgcUoHsM4oTCR/OCgkOcXniTlpWE6MeNyY8ft0Cb6EYuWkk Gzv5LPLTRQJ15nfeHEO9PBJMhsTG70dQ4I/8kkmSivrnn0LXXe68cpz7CyhFYn6x0pXU 2kL+NzatE2876YSQiZTYTgNwIETqIRe5hUINQMS7W8S6Hd/8C84hfUJg5740uLhaJ4+R tbvlhy0wBZ+LcpVM9X4yd1O98gvAxSMgRC+6Wmz4UWS4rD2f4C4jkXjHRHz37WXlkNsi pXahx8eV5kjOtWAYveUH0iCBCXIg+9ugDzHNBAP97YDS89xGS4PN6RJA3IecDbi+Z0+F STQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532260; x=1769137060; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8r/R+STQq73Z0UYdJIVv+PRTJNW9Dod2zW076uWFDC0=; b=SlC3L6IBno4HNWkHpzDXBM/P3upudMRg68RQd2SKUVP7HSlDfo1AewGHAYbP4qUGao yZIct7nj1j75/wdr/eHMRHxMmZIOFg4IMzUZVB+Kvn5Rfp6wyJKTkIz6pJo8r/P0gvUw 8X1VKshoPv68uAX13Jbx036aXZOLugNbH+hguFVqWxDzBKlQgb94Eoru28HSEiQeTvvc aFYHYBD1/TcHtWD4V8Yc995K+u+EAQsIAMucK1Gz6/go3PPTduwhC1Nyjjktd2FV34Yx sH53qdkamd97q1vYqO6B52a1nwdfAHGIAjEatfkK/nB7aUcwt/GuCsRns0xdGJ+P3mB0 OzWQ== X-Gm-Message-State: AOJu0YwZutkMXfCp4PPmcnTlXwUkkDh69ZRGVfmezu4j8cg13VKg7W/C oHd/cLa6BSpgppcCTlDs2gt5mmTpmPh5pok2wGv8+uZODxuxFY+iKGHvEG5lBw== X-Gm-Gg: AY/fxX7B4HlzirKjTb9FuylS+1CjAFzgrcIqiRqSxzxK+ArzWleYOSxbnQWGPzJM1tO iYiYUjXZVqNLjYjbPqa/1obJJ92JHy9R02kFl9/WCsYtkpANuRPzb0UFEPfu2jKq+1MThTwooii 3jYZP8bp10LARxh6NhNyQh1HhhdLN3SzThJfGg/4Tffi7z+WbfVd0oW0QmIZSIs1J5uhYZYiiEz 9cOK3O9lttEsLu5ujtHDv383YHMGUI8hJkKx83SgvZottBrT5WJ55/MWq+sb16rKo1bEChNUyK1 Tiz88q/NjgRZvqylWohuPZi6WuNmcae8ggTjHs1R9DJLy3GYMKyjQwVJVP1lBDHdDwWnnFRlRWZ x6WvZ9h2JkR9oS9w70FGqpDiXCZEVAXHVSjhxd9wQFi+SZ5Mg37YhGH9ZAlM/xBfgFww7dfQS/U o= X-Received: by 2002:a05:6214:21c9:b0:888:7e41:a9a with SMTP id 6a1803df08f44-8942ddb8495mr22658976d6.46.1768532260043; Thu, 15 Jan 2026 18:57:40 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 5/8] qemu: Add device properties for multitouch input Date: Thu, 15 Jan 2026 23:52:33 -0300 Message-ID: <20260116025708.18419-6-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: CJKYYLTDLDGR2GP6KMW2UQZ76KL2ST2D X-Message-ID-Hash: CJKYYLTDLDGR2GP6KMW2UQZ76KL2ST2D X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532525385158500 Content-Type: text/plain; charset="utf-8" This commit adds device property configuration for multitouch input devices in the QEMU command builder (src/qemu/qemu_command.c). When constructing QEMU command-line arguments for multitouch devices, certa= in device-specific properties may need to be configured. This commit extends t= he command generation logic to handle these properties, ensuring that multitou= ch devices are configured with the appropriate attributes when added to the virtual machine. The properties follow the same pattern used for other virtio input devices, maintaining consistency with the existing virtio input device infrastructure in libvirt's QEMU driver. Signed-off-by: Julio Faracco --- src/qemu/qemu_command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 705cc43cb9..4e4e0e52ef 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4309,6 +4309,7 @@ qemuBuildInputVirtioDevProps(const virDomainDef *def, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH: break; case VIR_DOMAIN_INPUT_TYPE_EVDEV: @@ -4354,6 +4355,9 @@ qemuBuildInputUSBDevProps(const virDomainDef *def, case VIR_DOMAIN_INPUT_TYPE_KBD: driver =3D "usb-kbd"; break; + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: + driver =3D "usb-multitouch"; + break; } =20 if (virJSONValueObjectAdd(&props, --=20 2.52.0 From nobody Mon Feb 2 05:56:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532570; cv=none; d=zohomail.com; s=zohoarc; b=A185yMfErhA0B/SJ82VEv+RMhGSFJx4TnLvegf+0Jhp7GOQH5kSuGcb9jOvIPKw/r6wkVg9/FkUIwFh6YL9qbrFC15Fy92Rcfa3a6NuuOGf46C9BOiRFFCn4WaHwT+X/w6OAss7GWdJGZlDm7y3N5PfyEcDoZoaO8tET5ODfDBw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532570; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=1r/dQyqxU8yG5P04hyBnwWd9vQQyqPK3rvNWLEn1uWI=; b=YvsfVLB1uBI1xEyTuj/B3T2DQeoFTsbBw6lYquRTheefBTVnpmMPAM1HKg1C9iwP2NEkYCe6tSAgEe+ZrxzNxCcF/j3ao6xT5JMY0pvHYJWYZ4TThjjx4qaZHRK5lLx9ZpEyz0lTiRUljyBmXTxeG3bdcUG4B2QVAqmuIvHdRyE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 176853257016314.629138917360706; Thu, 15 Jan 2026 19:02:50 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 4A92541BA6; Thu, 15 Jan 2026 22:02:49 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id AB8C441BB2; Thu, 15 Jan 2026 21:58:14 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 015F543DDE; Thu, 15 Jan 2026 21:58:07 -0500 (EST) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id C55BB41C1F for ; Thu, 15 Jan 2026 21:57:42 -0500 (EST) Received: by mail-qk1-f176.google.com with SMTP id af79cd13be357-8c0f13e4424so188188385a.1 for ; Thu, 15 Jan 2026 18:57:42 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:41 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532262; x=1769137062; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1r/dQyqxU8yG5P04hyBnwWd9vQQyqPK3rvNWLEn1uWI=; b=mUYDnfowt72z+OoW8G9cJR0N0t4fWCQGel4BnfGY4q3ML2kZQmTJcG0SEDA4Ode7nq Sj0oCi4ZQ/ZPJzdwVuL4BhjMjdzN41nS6OqARib9TOUpXVsOEwcbmy1h6dziEOFGOJBL zqFRXXcx0VlggcavpIs4RDCuoQ30de2rK6vVZymrtGhp5O3eSflLcBpxM1xRkqdbc58w 1pmbn+lasM8LjS4EX7VjAczsZuff+gufLWG9ew9t5Ct6i6HX9OuuoqO67lNn2Q7694mC vDxzvFEQIZO5Blz8qWDCLKMT2KcaNe0WEh590X3o8GARXrxNhXfp69IcgK/DGgvAuokd BZPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532262; x=1769137062; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1r/dQyqxU8yG5P04hyBnwWd9vQQyqPK3rvNWLEn1uWI=; b=BkYeCNFiL0XJdPP/fVexMtr0ais5kffYqhGs7N0GoQuSuogBRsAYuQe32Rk4pjYmrA ROMHirv9RTxpZF2Q2Ihaj1UUWaQgXyvD7NkHf3AYEdMYZzmf4H3kJZyX3jAmeeES9Mdh S3B9AxjYPfEM5tTHk1knp+B/+J2+YOAtq48EjVq4Zlfa69B0amSUUXfxw013vgvbJ8Gk U4iSyEkvYranUqPOIqcdFq5KReb5bLe3XeYqfbHKgSp1RCLY5JAqrY+58ViM4FUJKSa+ zm72LI8hFA80s2GSrwWk+50tTD5lK8XPoEbb0OGdnBZoUmg0eJyz/lQNGGrzFyo8T64L Xa8A== X-Gm-Message-State: AOJu0YxKFWbKbMkUr/JbH4PSPSEh5XR48x2mufaC+mkigJCQZ8surMi4 byb6fWRYPWhQogXcn91i5G3EJM07p84D9hC7BOam5x+MGg/afFN31x7UbC+zFA== X-Gm-Gg: AY/fxX5huSp0QSbz7zA7H7VHLxkW4i6KVrhkRk8pEiJj/YFJ82sD/H/k1R+aydDSg/X qBCvYLhGX45SLG0oZ3iKtcRm8CScBUHxwICSVLkWiKwvQgG5jZ0LQl7jlaSuZvN0R/21P4tKC8B fLy6+aOgx6a0hx2br36QwLcmNdQdfcAhCtfZ6FJTKfOhOO0usYAvqTUQpNOV/GHtdVxFv0AzQOb iH1Rfej0YcsToR+O8YgYBAV/vT9pKUrc0+2SwXiWQpojCC1Z3WZ9Jq8qWEEC2+IB7kqRBPg4/xx /D1t3Io0PkGy8BYRnht8ZHeELDUDbY0r/lJKptF9INhgMiJi2NLAiiaO5PS7LJvFNWqT46Kcmnn LuBpuE9G8ebXFoIXHVuLHxkqeHuLgxcvdisVRImAz3gOLsRnc03lsb/j0ETPQg6pc X-Received: by 2002:a05:620a:4155:b0:8a2:bff5:40d9 with SMTP id af79cd13be357-8c6a66d1590mr248996185a.16.1768532262001; Thu, 15 Jan 2026 18:57:42 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 6/8] qemu: Add the multitouch device capability Date: Thu, 15 Jan 2026 23:52:34 -0300 Message-ID: <20260116025708.18419-7-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: Z6XKXBADJRGWIBSOEHAI227F3VHBPDWM X-Message-ID-Hash: Z6XKXBADJRGWIBSOEHAI227F3VHBPDWM X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532571733158500 Content-Type: text/plain; charset="utf-8" This commit introduces QEMU capability detection and validation for virtio-multitouch devices. 1. Capability flag (QEMU_CAPS_VIRTIO_MULTITOUCH): A new capability flag is defined in src/qemu/qemu_capabilities.h to track whether the QEMU binary supports virtio-multitouch devices. 2. Device detection (src/qemu/qemu_capabilities.c): The capability probing code is updated to detect the presence of "virtio-multitouch-device" and "virtio-multitouch-pci" device types when querying QEMU. This allows libvirt to determine at runtime whether the installed QEMU version supports multitouch devices (available since QEMU 8.1.0). 3. Validation (src/qemu/qemu_validate.c): Validation logic is added to ensu= re that multitouch devices are only used when QEMU supports them. If a doma= in configuration specifies a multitouch device but QEMU lacks support, libv= irt will reject the configuration with a clear error message rather than generating invalid command-line arguments. This capability-based approach ensures that libvirt gracefully handles different QEMU versions, allowing multitouch devices on newer QEMU while preventing configuration errors on older versions. Signed-off-by: Julio Faracco --- src/qemu/qemu_capabilities.c | 3 +++ src/qemu/qemu_capabilities.h | 1 + src/qemu/qemu_validate.c | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 92b863a826..bc19aa1a5d 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -755,6 +755,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "disk-timed-stats", /* QEMU_CAPS_DISK_TIMED_STATS */ "query-accelerators", /* QEMU_CAPS_QUERY_ACCELERATORS */ "mshv", /* QEMU_CAPS_MSHV */ + "virtio-multitouch", /* QEMU_CAPS_VIRTIO_MULTITOUCH */ ); =20 =20 @@ -1345,6 +1346,8 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[= ] =3D { { "virtio-keyboard-pci", QEMU_CAPS_VIRTIO_KEYBOARD }, { "virtio-mouse-device", QEMU_CAPS_VIRTIO_MOUSE }, { "virtio-mouse-pci", QEMU_CAPS_VIRTIO_MOUSE }, + { "virtio-multitouch-device", QEMU_CAPS_VIRTIO_MULTITOUCH }, + { "virtio-multitouch-pci", QEMU_CAPS_VIRTIO_MULTITOUCH }, { "virtio-tablet-device", QEMU_CAPS_VIRTIO_TABLET }, { "virtio-tablet-pci", QEMU_CAPS_VIRTIO_TABLET }, { "virtio-input-host-device", QEMU_CAPS_VIRTIO_INPUT_HOST }, diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index f180844e66..44a3350cf9 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -730,6 +730,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_DISK_TIMED_STATS, /* timed stats support ('stats-intervals' = property of disk frontends) */ QEMU_CAPS_QUERY_ACCELERATORS, /* query-accelerators command */ QEMU_CAPS_MSHV, /* -accel mshv */ + QEMU_CAPS_VIRTIO_MULTITOUCH, /* -device virtio-multitouch-{device,pci}= */ =20 QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 184c23d307..6589939290 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -5485,6 +5485,11 @@ qemuValidateDomainDeviceDefInput(const virDomainInpu= tDef *input, cap =3D QEMU_CAPS_VIRTIO_INPUT_HOST; ccwCap =3D QEMU_CAPS_LAST; break; + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: + baseName =3D "virtio-multitouch"; + cap =3D QEMU_CAPS_VIRTIO_MULTITOUCH; + ccwCap =3D QEMU_CAPS_LAST; + break; case VIR_DOMAIN_INPUT_TYPE_EVDEV: baseName =3D "input-linux"; cap =3D QEMU_CAPS_INPUT_LINUX; --=20 2.52.0 From nobody Mon Feb 2 05:56:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532614; cv=none; d=zohomail.com; s=zohoarc; b=AUuFrSPaaC8OrcNcOw9hh2lbCHVMZvdaD0eD58RjuV/VlUmAoHDIeITs29MbNQnCAcet4xfP6sysFFl8+/jbg/M+hc7ZOlzyPXUBxFJIPdyggpfVcyuTvs3rC5EjShymE9UZw/p/EAQEpS9nNZFBI1cOsYPsMlBWS3qr379+PmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532614; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=izek02OquqaVMOIPG4b5YHkNwZdJkFsCp3yHhgbK3Wc=; b=WL52CA9R+984NAcKz8SZxJFGcnyJ5LYV+DXtKXdOp29t1Uiya+qkPslkH6FtDlp/x1wW9UKAmH8T90gTvrrxEy/a13YZIUEkIlGlX+xJOYP7pAibRDHKix02XgZdhdgxEz8FoS7wh3TpRb4i0nNZCAxXPjEnSrSDl3rpRfA8FXo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532614328733.976246875693; Thu, 15 Jan 2026 19:03:34 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 70B8D41A96; Thu, 15 Jan 2026 22:03:33 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 27F6C41BE0; Thu, 15 Jan 2026 21:58:54 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 9596041B2E; Thu, 15 Jan 2026 21:58:48 -0500 (EST) Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 59CD741C98 for ; Thu, 15 Jan 2026 21:57:45 -0500 (EST) Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-88a3b9ddd40so9032006d6.1 for ; Thu, 15 Jan 2026 18:57:45 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:43 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532264; x=1769137064; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=izek02OquqaVMOIPG4b5YHkNwZdJkFsCp3yHhgbK3Wc=; b=T3fp8gfZLkChKeuk0vmYBi4HiJ8TCX4Rsi2xEAguLAkJiNmUSaHYoySGCYpjveb59v +7sjz5sJYni712//t+qLEbVVuTACTqP6QE0qABizcUlAKF9vHZFAmQuJ0Btiq2N6CGzs WUN5iw+8NcCyRiqZMbuGrOnRuXBCRR8XEBePZ3cYVcTWm6Ds+gh+5U953onrtLDTu9i1 lXxlFSVUERNyf5japSsRqvgkSezjhJiLaoMFSmoqwMoBh7P4DevCrKxPyD5g+HREKp2m vLFdA012FNFv8Fwtzipzz5vZpbWDPkGFJkESLlo3sLp4a0XRIrlB3PJxI5aFz/4n2MqU 378g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532264; x=1769137064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=izek02OquqaVMOIPG4b5YHkNwZdJkFsCp3yHhgbK3Wc=; b=SHaP7uhQ8Lyfcnph7ydT/4Blb1cdhVsapTGrHzYJFRzbAznPNlcECN6LiUrOWoBtg2 oejvrN1RW59gw1YVGzIJ7EBbsNdye37rLuRl/RA3Nho73YoMYIpxnbW6bjkbYBxsyFeu kIiEkXeKOkIFHNJSeY2np52C9aP716OLyK5OR8RVd6vHu4SJdbz/LiCIg1a1f5vOwJlp PLaYeX5S+/06jhDL78QIDcTbOF7UmV8XtqcxKz8EavJjUqHJeilzVgVT9tOQyQ2Uc0hh jfAK2X42rEkfx9J7tb/DrIBeMEnjvPCp6sV5vKhMqvqm+HrgLPT+aZGDXSBqdjkq/wTy 0LVQ== X-Gm-Message-State: AOJu0YwmtmRMpQcZPOhCP+rZEtRRlQ0yEz2OI4VLGEv6B8sGig/5+Ju5 rf3/npmorBGg4G39jV5axJ0YTIzXlCcFC67mN1SpqAUxuDBicvoJ83gWdW4j6Q== X-Gm-Gg: AY/fxX4p45gntoHiklE/u7bHYtSd9UmKTGR5Kse0okIv7RmA4v1L5REwPhm1meag4v2 QLdLYNgpRuWhQXI2dasV9XtMMX2dogfgr4S6/GB+WTY/vkutbk4qsuk++mbvUiAAd9JieXQakMr OV341R77XvTfcsH4p7mWmtH3aQdhXwKos/zbcFbPV/du5ydDYEUWFkoj1h9hrcMw+0m0v1ueI4u AUuG8Wwx3c2KIAVSBOPNn/ew/70NR6CO/DvJPM3IvwYBRAn0UQqBHaIivDdCAhQxldYKfwvNVy8 n6GoF05BPdlKNypoSW+UhHxBCqf9jhrmjLPhmnZjTbodeH204NbB9l2Y1d8qVSz6rIEwFtC88lz Q9h2JQBzasxkpGT25VuHgmALq9gsW6Gu0aCKG6PtKB9PqChJTEwm8EFOaKspUmdF5 X-Received: by 2002:a05:6214:c25:b0:88f:d4b1:4c32 with SMTP id 6a1803df08f44-8942dda772amr21228446d6.63.1768532263751; Thu, 15 Jan 2026 18:57:43 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 7/8] Complete remaining enums with multitouch input type Date: Thu, 15 Jan 2026 23:52:35 -0300 Message-ID: <20260116025708.18419-8-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: ZAV7RRMH74XFGN666AUHFKGOENEAKJ5M X-Message-ID-Hash: ZAV7RRMH74XFGN666AUHFKGOENEAKJ5M X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532615782158500 Content-Type: text/plain; charset="utf-8" This commit completes the multitouch integration by adding the VIR_DOMAIN_INPUT_TYPE_MULTITOUCH case to all remaining enum switch statements throughout the codebase. Updated files: - src/conf/domain_audit.c - src/conf/domain_conf.c - src/conf/domain_validate.c - src/security/security_dac.c - src/security/security_selinux.c These additions ensure that multitouch devices are fully integrated with libvirt's security, auditing, and validation infrastructure. Without these changes, multitouch devices would trigger warnings about unhandled enum values or potentially cause security labeling failures. Signed-off-by: Julio Faracco --- src/conf/domain_audit.c | 1 + src/conf/domain_conf.c | 1 + src/conf/domain_validate.c | 1 + src/security/security_dac.c | 2 ++ src/security/security_selinux.c | 2 ++ 5 files changed, 7 insertions(+) diff --git a/src/conf/domain_audit.c b/src/conf/domain_audit.c index 7a6bb02203..1dee7d76fc 100644 --- a/src/conf/domain_audit.c +++ b/src/conf/domain_audit.c @@ -922,6 +922,7 @@ virDomainAuditInput(virDomainObj *vm, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: break; =20 case VIR_DOMAIN_INPUT_TYPE_PASSTHROUGH: diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index aeb81fc42f..84496478b0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -2080,6 +2080,7 @@ const char *virDomainInputDefGetPath(virDomainInputDe= f *input) case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_LAST: return NULL; =20 diff --git a/src/conf/domain_validate.c b/src/conf/domain_validate.c index 7346a61731..e36927985e 100644 --- a/src/conf/domain_validate.c +++ b/src/conf/domain_validate.c @@ -2877,6 +2877,7 @@ virDomainInputDefValidate(const virDomainInputDef *in= put, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: if (input->source.evdev) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("setting source evdev path only supported for= passthrough input devices")); diff --git a/src/security/security_dac.c b/src/security/security_dac.c index 2f788b872a..44038e194f 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -1841,6 +1841,7 @@ virSecurityDACSetInputLabel(virSecurityManager *mgr, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_LAST: ret =3D 0; break; @@ -1865,6 +1866,7 @@ virSecurityDACRestoreInputLabel(virSecurityManager *m= gr, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_LAST: ret =3D 0; break; diff --git a/src/security/security_selinux.c b/src/security/security_selinu= x.c index 2f3cc274a5..5177b38be0 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -1605,6 +1605,7 @@ virSecuritySELinuxSetInputLabel(virSecurityManager *m= gr, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_LAST: break; } @@ -1632,6 +1633,7 @@ virSecuritySELinuxRestoreInputLabel(virSecurityManage= r *mgr, case VIR_DOMAIN_INPUT_TYPE_MOUSE: case VIR_DOMAIN_INPUT_TYPE_TABLET: case VIR_DOMAIN_INPUT_TYPE_KBD: + case VIR_DOMAIN_INPUT_TYPE_MULTITOUCH: case VIR_DOMAIN_INPUT_TYPE_LAST: break; } --=20 2.52.0 From nobody Mon Feb 2 05:56:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1768532654; cv=none; d=zohomail.com; s=zohoarc; b=RBTD4ewpdT3NIZqdMUetpKY7K6LuLOfIeAlDWx+pWRNkPkTtb0DQt0TQu7p8nRqOR0MPsTgRHFlBdElWzS/bAHZAfgwOSs5vuc2NuD2IhGPfr+GYDzu3IYxdCz42fSmMWfPtmrwHtRl8rwUmdw0uC6gfLNJKOlXVtQaxChtJWtk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768532654; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=Th0TY27ZgU4Wfp6od9nimqecWoBeJarlIyYLwvrO+sU=; b=QHiGtuYUq3Wl/3US7LZQFZx06Sm6RgRhnzTAhKY5NtDVQ7wQHpFDnoMwPjOKdfGHbm/4LNP9HDO4vGbSflCZXBQVUITPoVzno1/BYmCKC+d6mZiCn7Fpub/FuVUEDD5LJkwsePdX5xkYspY2r//oZPpTKoPf8d/rUObuaqYIMn4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1768532654478610.7523354902062; Thu, 15 Jan 2026 19:04:14 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 6707E41ACD; Thu, 15 Jan 2026 22:04:13 -0500 (EST) Received: from [172.19.199.83] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 5FE0441C3D; Thu, 15 Jan 2026 21:59:10 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id E9F6841C2C; Thu, 15 Jan 2026 21:59:04 -0500 (EST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 6B2A043DBC for ; Thu, 15 Jan 2026 21:57:46 -0500 (EST) Received: by mail-qk1-f180.google.com with SMTP id af79cd13be357-8c69ffb226eso169839085a.1 for ; Thu, 15 Jan 2026 18:57:46 -0800 (PST) Received: from fedora ([2804:14c:3b83:91fd::fa62]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6a71c14a9sm120243785a.22.2026.01.15.18.57.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 18:57:45 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768532266; x=1769137066; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Th0TY27ZgU4Wfp6od9nimqecWoBeJarlIyYLwvrO+sU=; b=ktaeDTk55Veg7MeaOitj5VTzruPTM5AANLNqfHAHArKm2Wa2aN9T+S+dZFLTmJhMDy lqps7emZ2Ha1UKSUncJ+yI7ANGuYCDQXhhHMj0cHf146161nViPh4pBQ90RygsKp84oc PUn4kaTeGYeW8WLmUc4asMcH5H5FKk1+Jku3BhguutkdeBF0NmRNNyAidphkIMANcbCd UowY73Em80PE7ATKvHO3bAkiGxedbSZyM6WRiOxsPXH6JI1OEzdj4em1H3QskOxIJVJ5 vJdkbXm0AHyUwQV6V/hPpC7Mv0YDtPxaX3VfaEzDTSNzXJrjYlkYlIxSAn1mVC3dLg/P cDwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768532266; x=1769137066; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Th0TY27ZgU4Wfp6od9nimqecWoBeJarlIyYLwvrO+sU=; b=BzgGvEedEyL6lM4khyVn3SASYCZbRbcJQ9TIJA4Rrr2pnskWiIxV5ANbLItl8D91P1 28BFHb0iDslrvICN+d6R9BonM9LNShCw4SEuHng3XXXznapeBC9iIOzjFh5152p0U1eR A+Z+Oo3EYH0KBkVnWpiwVutwi7H/HttkgVF+IZM5looCBdsVH5O3ETyqWZom29HirmgA +Hf44FKDB4TdWLzWTucEQWNMeiovZPXHkPODJ5c6Kwo64A1o5d5e40eZLwBnbRhG09M6 V24BHjq4jB8VCaCagQEkrf97GOAxIS/nhJscMbUW7QCnPKaW384RBWt4mO8j+MVbYkif FwRg== X-Gm-Message-State: AOJu0YyMPmwaQ8B7AE6HcN+3S45EWgkesS1QHL/q0pvnfv7gTR2fhbMy VUB+AoVFGbgnNw9Dj3ku8n38n99on2qvzmzNwS0VQLfV7TLSH9oXHUaL4V6BNw== X-Gm-Gg: AY/fxX6T436SF/DLdl9wrDUIW5VkrxIF/sNVOXsxOMvF21va3ljlS58KZ2xrHupgFzg kF2xjPBOuYsjPXVvpX7EulHA+6XSR0RS/gulOAyinzEN78T8Gz+vAqpagBMcnJu9n2WHFxdnCy0 r2+Jo7NA6owubDYWkllfNjRlYm1IKaXT4RIICtH0cmNOtMQ8GHoDZEXC+5CtlZf+JCB/17I+2qJ 5onNyzNpyKbzdR3SbJP4Pga+L5mx2CTwLF9b+OArt0Fp/oJlzf2VMzYl9W32ZEgJiAQoP8XY5+6 xGWar/IEG7FTSBPs/zNxWxuyx2zj4Yv0jOKg3H3CxGZhCP1L/dmNa78IgkizJU8YT/Bhtyp1nM0 AyijF5Lpzf6Oac/rsQRH1UT4+scX7BsK97JObEPYatP0vbUmhKP6fu7cXZi4ONv9m X-Received: by 2002:a05:620a:4441:b0:8be:e044:8cfa with SMTP id af79cd13be357-8c6a6906aa2mr227617185a.40.1768532265685; Thu, 15 Jan 2026 18:57:45 -0800 (PST) From: Julio Faracco To: devel@lists.libvirt.org Subject: [PATCH 8/8] tests: Add multitouch support to virtio-input tests Date: Thu, 15 Jan 2026 23:52:36 -0300 Message-ID: <20260116025708.18419-9-jcfaracco@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260116025708.18419-1-jcfaracco@gmail.com> References: <20260116025708.18419-1-jcfaracco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: UUAWYCFCLUP7HEY3TQGLXPRS3GY6UMZY X-Message-ID-Hash: UUAWYCFCLUP7HEY3TQGLXPRS3GY6UMZY X-MailFrom: jcfaracco@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1768532655940158500 Content-Type: text/plain; charset="utf-8" This commit adds test coverage for the multitouch input device feature. Updated test files to get this new capability working with other input devices: - tests/qemucapabilitiesdata/caps_10.2.0_x86_64.xml: Adds the QEMU_CAPS_VIRTIO_MULTITOUCH capability to the QEMU 10.2.0 capability test data, indicating that this QEMU version supports multitouch devices. - tests/qemuxmlconfdata/virtio-input.xml: Adds a multitouch input device definition to the virtio-input test case, providing an example of proper XML syntax. - tests/qemuxmlconfdata/virtio-input.x86_64-latest.xml: Updates the expected parsed XML output to include the multitouch device configuration. - tests/qemuxmlconfdata/virtio-input.x86_64-latest.args: Updates the expect= ed QEMU command-line arguments to include the virtio-multitouch-pci device, validating that libvirt correctly translates the XML into QEMU arguments. Signed-off-by: Julio Faracco --- tests/qemucapabilitiesdata/caps_10.2.0_x86_64.xml | 1 + tests/qemuxmlconfdata/virtio-input.x86_64-latest.args | 1 + tests/qemuxmlconfdata/virtio-input.x86_64-latest.xml | 3 +++ tests/qemuxmlconfdata/virtio-input.xml | 1 + 4 files changed, 6 insertions(+) diff --git a/tests/qemucapabilitiesdata/caps_10.2.0_x86_64.xml b/tests/qemu= capabilitiesdata/caps_10.2.0_x86_64.xml index 06f7bf784d..d718aec43a 100644 --- a/tests/qemucapabilitiesdata/caps_10.2.0_x86_64.xml +++ b/tests/qemucapabilitiesdata/caps_10.2.0_x86_64.xml @@ -64,6 +64,7 @@ + diff --git a/tests/qemuxmlconfdata/virtio-input.x86_64-latest.args b/tests/= qemuxmlconfdata/virtio-input.x86_64-latest.args index 20439c7de1..9f1747f509 100644 --- a/tests/qemuxmlconfdata/virtio-input.x86_64-latest.args +++ b/tests/qemuxmlconfdata/virtio-input.x86_64-latest.args @@ -30,6 +30,7 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -device '{"driver":"virtio-mouse-pci","id":"input0","bus":"pci.0","addr":"= 0x3"}' \ -device '{"driver":"virtio-keyboard-pci","id":"input1","bus":"pci.0","addr= ":"0xa"}' \ -device '{"driver":"virtio-tablet-pci","id":"input2","bus":"pci.0","addr":= "0x4"}' \ +-device '{"driver":"virtio-multitouch-pci","id":"input3","bus":"pci.0","ad= dr":"0x5"}' \ -audiodev '{"id":"audio1","driver":"none"}' \ -device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","add= r":"0x2"}' \ -sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ diff --git a/tests/qemuxmlconfdata/virtio-input.x86_64-latest.xml b/tests/q= emuxmlconfdata/virtio-input.x86_64-latest.xml index e9c7a3676c..ff7b142cdd 100644 --- a/tests/qemuxmlconfdata/virtio-input.x86_64-latest.xml +++ b/tests/qemuxmlconfdata/virtio-input.x86_64-latest.xml @@ -30,6 +30,9 @@
+ +
+