From patchwork Mon Sep 15 19:35:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 342 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757964961; bh=qEjysFB1Y0xTdQRaK/2FnhDmPrfGP6M69b9DOKlHAJ8=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V6YZ2dS3Up4Wc9UksS5jcHDiw4LDbfh7rQDstUwWpoqfjL2gLmY88ifpOyxra0d3w ki3BrZCY25LBbYRBs8aN3s9IuYag7owx33mKn6b19osw7crnbLlj3xMtj1cX/8495y 2sno4v60TTEtp9+y6Y/849teOI0kS7rLdpyE+TnrVr0Uw9bsKdgNIluMLXGbcCdqb3 PukhePUI/F5YVhYo+gZie6Qde4uvd7He6CLL2pmpBvf2/rTAR5dYzDLfb9mPzpONHT 9wU4v/zwJyL8VINf9LNeKPAqsa/u2QfPbvMbAzbWz5zpV8sUqN9VAEUO1m5Q+tjChT Q3j4WVH/VmhZg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 743C267B47 for ; Mon, 15 Sep 2025 13:36:01 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id N231yq_e9AKc for ; Mon, 15 Sep 2025 13:36:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757964961; bh=qEjysFB1Y0xTdQRaK/2FnhDmPrfGP6M69b9DOKlHAJ8=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=V6YZ2dS3Up4Wc9UksS5jcHDiw4LDbfh7rQDstUwWpoqfjL2gLmY88ifpOyxra0d3w ki3BrZCY25LBbYRBs8aN3s9IuYag7owx33mKn6b19osw7crnbLlj3xMtj1cX/8495y 2sno4v60TTEtp9+y6Y/849teOI0kS7rLdpyE+TnrVr0Uw9bsKdgNIluMLXGbcCdqb3 PukhePUI/F5YVhYo+gZie6Qde4uvd7He6CLL2pmpBvf2/rTAR5dYzDLfb9mPzpONHT 9wU4v/zwJyL8VINf9LNeKPAqsa/u2QfPbvMbAzbWz5zpV8sUqN9VAEUO1m5Q+tjChT Q3j4WVH/VmhZg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 60DC067B4B for ; Mon, 15 Sep 2025 13:36:01 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757964959; bh=Lu2PSXBQlRtOKScfU6PwG1rHscFtDtgokudeWbjyaa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ky4wfMCGqU06cW8ZQKh/zg/8K7Fza/vhpBiYFUSqCmPTJ2qmLtCx9XbSuRxIJgVI+ aS76hi4IV7pKPxvvvuLq7Sa1KQmfZgF59udF8xEgDZNNubjPmAJqhIawAG6d1w9BXD T0qS/dOWswC2c3v7M/ViOZPEMQyyfqbbKHuGYG6Ha7wHeI4ACTWb5vsLOgt6q+xS5O eAI5FrzyIMe7fq8C5LHvlbfXouG2cdEJbjOWW5Dc9rznjUuj6j74m6v5iCF5Jr/o+D h52I1MDm5tdYjfDOkT+lQ/wrV/AOjQJ9VK+Xre3sPfjG1XqElwmKKlES324lYsull0 EMOK1t071Zu8Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 61FF267B47; Mon, 15 Sep 2025 13:35:59 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id qvDgpLCM_EII; Mon, 15 Sep 2025 13:35:59 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757964955; bh=QB5mD3OsxbyK3yANRz/7pGpX6E6aazheMjW3Ck7Ag/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X+FCuOIGWy/E0Ezpa4+O4Yf3RLDSinACs2HPrgJVxj7PZ16EQBWOvQlF05wkO3mNh 1+0ta0WJ6EkjZoLHdNoGESGtnFgKe6ldrH0F8nTqtMnVTh7/lk6EVAjwO5vCc3EYk8 YHYaNEktV5LKGszDidb4f1HwfRrjBo5pOi67dzFcMum6dTA+cbyYM5kSOM9xExUTsm 60LGi14lzaAmVKkd5RYa/WKTIsnOv7/qN0VB7tYrl4rfeHG/RK3CiBNk5Dd2PiL8mu Sfvb1AdF+fQtMkliECL1eF0yNC+KLpPZ3qdxxwsUGZLbLjbWHNjQZYKMLopk6rQu2+ dlz32l4sIjVSA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id BB44267B4B; Mon, 15 Sep 2025 13:35:54 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Mon, 15 Sep 2025 13:35:35 -0600 Message-ID: <20250915193538.2316642-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250915193538.2316642-1-sjg@u-boot.org> References: <20250915193538.2316642-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 6KD7SOG4QMSYC4V3JTYXSVLYI557ML44 X-Message-ID-Hash: 6KD7SOG4QMSYC4V3JTYXSVLYI557ML44 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 3/3] build-qemu: Use the virtio tablet instead of USB for x86 List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Switch the x86 QEMU configuration to use virtio-tablet-pci instead of usb-tablet. This allows testing the new virtio input device driver and does not need 'usb start' to work. The virtio tablet provides the same functionality as USB tablet but integrates with the VirtIO subsystem that U-Boot already supports. Signed-off-by: Simon Glass --- scripts/build-qemu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-qemu b/scripts/build-qemu index 62f0bc41fad..cba3a54b9e6 100755 --- a/scripts/build-qemu +++ b/scripts/build-qemu @@ -278,7 +278,8 @@ class BuildQemu: qemu_cmd.extend(['-display', 'default,show-cursor=on']) elif self.args.arch == 'x86': qemu_cmd.extend(['-device', 'qemu-xhci']) - qemu_cmd.extend(['-device', 'usb-kbd', '-device', 'usb-tablet']) + qemu_cmd.extend(['-device', 'usb-kbd']) + qemu_cmd.extend(['-device', 'virtio-tablet-pci']) qemu_cmd.extend(['-display', 'default,show-cursor=on']) if not any(item.startswith('-serial') for item in self.qemu_extra): qemu_cmd.extend(['-serial', 'mon:stdio'])