From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458469; cv=none; d=zohomail.com; s=zohoarc; b=MLEQH9yxxwiHvhJLAX6TQN82l7L3jqC2AtntlVhQZpbGgTfgPVzaZnxejhRK/yJ9DWdJK/jPjClahKhv2PohcRlWaZguxKP3CPPvVFcW4SXukML+W0x+qece7WUEIzfNgF2Ks1MX+tb7Fn8bSMwhe/wUzGdsdjlHKapSdAOf3oU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458469; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xoU3B6IrYuHWtrEFBoP8PgcM1/fxyuux+neEj88fAEQ=; b=WZK9bGtSw+VNaBwiXJFatKr9FQY0drw3uI9nc8WIm/eKUmy23s5s25/ojsKKrN2Onggf12TVcWiFMBe4/iz7/vHvLo/p4yIwO6+VZff1N2iLtr+mr7U5AA0LHOLSZci1erFiJGi7xuh+vkZNi5tsHd/F6LxgGdlcRMForFFYB5s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458468922822.2515756702912; Fri, 25 Jul 2025 08:47:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcL-0003ad-BO; Fri, 25 Jul 2025 11:45:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKbt-0002nI-AI for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:26 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbr-0002QY-II for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:25 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-60702d77c60so4117176a12.3 for ; Fri, 25 Jul 2025 08:45:22 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af63585ffe4sm10489366b.17.2025.07.25.08.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:18 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EBCEF5F845; Fri, 25 Jul 2025 16:45:17 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458320; x=1754063120; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xoU3B6IrYuHWtrEFBoP8PgcM1/fxyuux+neEj88fAEQ=; b=NQaiGZVBoiJQD0PttWIPY5MMtnJl1+FxavETak7eZL3yX5X5nSA5PvdemJzgGb8i1j FFhvcaXbeleR7knVkfOEN/41dBQlyKzIh2BJZ5E8XDwAWdDGdnPn0DItbWJqDwKvZVg5 48DYQ8TlO2GNTg49ZrA1Q9MQVApZzjpswQQyJIdFKM6/2Ta+HU7ZwjWgBGRl+weF3OJE cOIa5wClb79Ggp0sjdMVS3kgw8szEcunnvxiMZbdid09VHm47pu1+hyAApfPpgO09bJq SO9EOdlhNgMEQ2IRmXYLd1nuaqVQEDIRje/soUqfuIRDFytf3Cb4OVAi2za+3qbpDgQm Kfrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458320; x=1754063120; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xoU3B6IrYuHWtrEFBoP8PgcM1/fxyuux+neEj88fAEQ=; b=kI8XAzzqeVCm7RDm+ZbFuZqHelvGGtkFxOrzN1f82Pkb4bzJU0NQWvFCBwGzUWKFsH qO2+RDFONNaQXuUGv7zVacXfRQDHTYzHfybJFvUnv0nmoxkM0B9pZfyKcZVtj7kBrBHe v9mkz7ixa/vE9sZkRDcUUzWvNfQxOCMU4wNsby32O/yz0JUR/bAkJHEHWu3Ixzh7OkOp 4/PtF7YNkZkEQVKYpSlkLwrg6m8RdvKZM3+prRBgG5PHfg27cJ5lMvWAEzaGFxN3YudQ zlnpTwf+BhdKvt7qnIItJepdbMApvJ6kAkk5rmfUb/ycmlKNtVZsdUr/8aFICU3i9oB5 gk3w== X-Gm-Message-State: AOJu0Yw+VmSrWyjPjPa0O+g4Bb2QTkwJHPI4GSDZkiW1+oCW3e1o3hAx q2ae5GyZHfDyBBUS0sjELPwhxmNaPv704myHaXJunS6YdgmXypZaBa5o1dMMQA3EuaY= X-Gm-Gg: ASbGncvc9iOo6pKdJGesPDIxvkP10b+C8Vi8rabNxrELRb0QSOrilz2t5x61EPInoOY wPb8Y7XCVGcyNKY1F18kPlCyAfNUyL+K9Gnh6fHIp7ksGYxK5AWdUHE2Zsq9nZSivsmCFTzqgh2 2kpSypKUTYFdpjmjgAQM8XL5smCgAg4p0Ybu4pJlIJZ0dDCbHHcIVH5HvfRtg8EC77b+oRwzdEz yrpQdsL7hjYCrycrBfBH26Yx44V1Aa8JcWoI+oDId9HitObJN1fs5J9+4Q9Aq5CA/So4oZ/hENQ bj99Y23Y88G3NCDOVi9b+KIvYUciKroeGVQfwvETzgQTMwu6/P9zb1Oloxa4UpBt5N7+aPk+Pta XxxPu/QVq5iPBv1BSAczMipqwxDeSSR6Hdg== X-Google-Smtp-Source: AGHT+IESPAcQC5hk0L/kWZzNkIqZz0JHH6h0FndbLyRMPnvCwA2tc+6gIHBrT6WdNiW35Z/vuiTovQ== X-Received: by 2002:a17:907:5ce:b0:ae2:a7aa:7efe with SMTP id a640c23a62f3a-af61a0f75fcmr277013266b.58.1753458319710; Fri, 25 Jul 2025 08:45:19 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 01/14] docs/user: clarify user-mode expects the same OS Date: Fri, 25 Jul 2025 16:45:04 +0100 Message-ID: <20250725154517.3523095-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458469971116600 While we somewhat cover this later when we talk about supported operating systems make it clear in the front matter. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- docs/user/index.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/user/index.rst b/docs/user/index.rst index 782d27cda27..2307580cb97 100644 --- a/docs/user/index.rst +++ b/docs/user/index.rst @@ -5,8 +5,9 @@ User Mode Emulation ------------------- =20 This section of the manual is the overall guide for users using QEMU -for user-mode emulation. In this mode, QEMU can launch -processes compiled for one CPU on another CPU. +for user-mode emulation. In this mode, QEMU can launch programs +compiled for one CPU architecture on the same Operating System (OS) +but running on a different CPU architecture. =20 .. toctree:: :maxdepth: 2 --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458394; cv=none; d=zohomail.com; s=zohoarc; b=JMfUjgQn5sRFkjtSvOqeqj7I0hFKx+k2jf+JbULghWxZkeZ6mPHEqCqgWCXm6qaCn4EDlzbsSPTZC9v5lsweM8VVXKlL70Oi8P4dUTFST/FVMIZEdkeaC59aCz/G6TqQ3lakFR00HGG5JMWC2mUtR8sz+1Jm2NA1B/pKRdM62eQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458394; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bIabl8p/7XQ226I10wjA7oVAu+HYDoNW8uJ8FZl1Lqc=; b=UHLvYwK6OALDHOVstj4M6symh2/SomGRmd+Rf0k1LKNG9Ged9C6GcqM4ZgmydrF+/CwQV93tBGZE8CnsfRJs+x4Xl2QWW2K2JKkEiFJTgasEAcMsuDRvyFimJJft/8AyunN21EOAS91VmW8QY9exOK64I9+k7qRhXSOutVdpUSE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458394112823.031330452299; Fri, 25 Jul 2025 08:46:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcb-0003kh-L3; Fri, 25 Jul 2025 11:46:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKby-00032O-Jm for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:34 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbv-0002Rw-GS for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:30 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-ae361e8ec32so374364266b.3 for ; Fri, 25 Jul 2025 08:45:26 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635860003sm10452266b.10.2025.07.25.08.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:20 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0B4455F876; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458325; x=1754063125; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bIabl8p/7XQ226I10wjA7oVAu+HYDoNW8uJ8FZl1Lqc=; b=Q6Xfvra23FueRnXMvnjvuPgpwoyRObRBMgv1XBaM3YXNwlD3azzjJcWBGbYTK7GLX2 zCJJtLzRHmG8EWiK5Nh8lab4MUf1FMVcBUa8b8dFhkfRNeg0/mGCyBOLGLxbG2Xv96Fj DlES/2M0CDqcAJvy2MDVw9mcBzInHZZhTuFHCBH1TRsMBAXTGn9LxvuoF7iCCKC5hqM6 F0VEirZYVq5N5iOo3u33Cf9I6oOPZPJsZbmZel/BS+y6vLhgcWeHYQ8FwxNJ+6Z4kiIZ tEN0kzfJKqXOhEyTKS/b4HV2YgukBmsiOHSOaoqX+9OyA9/oHAN/AzI/0lUJCOFi6exZ UhUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458325; x=1754063125; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bIabl8p/7XQ226I10wjA7oVAu+HYDoNW8uJ8FZl1Lqc=; b=tzecT+iwHUhtZ/SVj4canqN2XTrcfpAcNAI0/YsRTlNqKp5FXu4YXXCCEEyxUkM4/F 4tAK6kqk1P9AHe+bz3v83aXoGBx1Z8g6mhYsJ3Q3KkOMdPi+xFomAKu0wNpav+ZtY902 bSFLOCtntnYtIKMsNZ5ev9vFoQi1EqElV/fmnRJbiYVgfWFDNoq5kA4tEZyzdR1SJPgj 49lmIs9i2IkUjuuLVOKhOfq9ApUFZpUbkFmtS0czELKUb1HtvZiyjfJt5Wvq5ZEQV2WJ So2S+nTy2D0uS7hvasXg+cr+me8OGKEJovZIzRRQDZGVV8szqMrx3XFv3tbTapoGf4cZ DdYA== X-Gm-Message-State: AOJu0Yy0ep0JXQaqS0Mn1fBcCD0aIHswPKWn/nUsimkuDVwbQ6qxsgHb irQG0SU7vTYw7xjXag1MTcNskPWi6vZAv86YBCyNCgUm4fDYDY0sPXGwMbsZaa2dlWc= X-Gm-Gg: ASbGncvX5bAt993JMLXN5lXX8VxZAKJPvPH7qwuIGGSU9T9YVDeVsdymZ0mcFzXYSrF LwCaaBX+rKTO+J4MMrIimeYSlHn7P58CRhuOh0sDC3L6TjNMgIDZiryQYp3kPs2ymJ0YvrtXcPM /c1PfnOSusu9HtExKL/SzDYvTwteZIy5NHedaVHZpLJWHconKRBjfkBDRbD/VWLmB1SI5+l87xl q4LMgjxKzxCxLEZwUsb72+UmzhbFgdRK0PC7QAfd9c/8wGRfbQvVmPMAlL/hm0PNoY5Bqo3M80U qH3F+dSuY6yQbSNYTNJf0xY+XzeRCE17iVkXeiPN85ZwBZ6ctURTW2psz8aKo6TNANtbMaBVBPG oRq/oz5WiSG11wUgEvDYNPrU= X-Google-Smtp-Source: AGHT+IGUHgGU9K5KfE7qyK/BSFlnnFrvzH/XwqMn0NT9jZ7X9voCtyepF8BDOavjc7QbDmzXrrJSTg== X-Received: by 2002:a17:907:5c7:b0:ad5:7bc4:84be with SMTP id a640c23a62f3a-af619dffbc2mr324176966b.52.1753458325085; Fri, 25 Jul 2025 08:45:25 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 02/14] docs/system: reword the TAP notes to remove tarball ref Date: Fri, 25 Jul 2025 16:45:05 +0100 Message-ID: <20250725154517.3523095-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458395181116600 We don't ship the tarball and users should generally look to the distribution specific packaging. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/560 Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- docs/system/devices/net.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/system/devices/net.rst b/docs/system/devices/net.rst index 4d787c3aeb0..7d76fe88c45 100644 --- a/docs/system/devices/net.rst +++ b/docs/system/devices/net.rst @@ -21,11 +21,17 @@ configure it as if it was a real ethernet card. Linux host ^^^^^^^^^^ =20 -As an example, you can download the ``linux-test-xxx.tar.gz`` archive -and copy the script ``qemu-ifup`` in ``/etc`` and configure properly -``sudo`` so that the command ``ifconfig`` contained in ``qemu-ifup`` can -be executed as root. You must verify that your host kernel supports the -TAP network interfaces: the device ``/dev/net/tun`` must be present. +A distribution will generally provide specific helper scripts when it +packages QEMU. By default these are found at ``/etc/qemu-ifup`` and +``/etc/qemu-ifdown`` and are called appropriately when QEMU wants to +change the network state. + +If QEMU is being run as a non-privileged user you may need properly +configure ``sudo`` so that network commands in the scripts can be +executed as root. + +You must verify that your host kernel supports the TAP network +interfaces: the device ``/dev/net/tun`` must be present. =20 See :ref:`sec_005finvocation` to have examples of command lines using the TAP network interfaces. --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458373; cv=none; d=zohomail.com; s=zohoarc; b=I0XnX1wBXdbf/efi/CBm1TCEIxdJY18OV2VYU1ydXRR31dQngqUg6ziQiIUNQNScQ7zsDHRyWsmZEqTO+JOCY4I7ifZVIIWez2WeXDpTVeDvmoBSwzNZ/sy3C5jcYDcQzJuuG2HWDOjQnXw6aew+r0ahSkNv30xS9yLl8ULzLTc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458373; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ci13zANRlMXshyqaJ0Y9zNXzi7dZMXO5ioaNjRJV8Ak=; b=g4qk1WfeaMquWL5IjJcAG4iZa94Zy8+bMwAp+xWSmzwDSm6d2fGb7caxuT1KEpsdgL89tOfziJGT88P9/qNpP3GCpKHKKOEWd/owQzGmU2eHawwi6pkkaQ4XoLVJRSgytRJoZDDHqvkQMAUV8LqlcNMd19ZTkgeWgC0fiuYZay8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458373501805.4276701370602; Fri, 25 Jul 2025 08:46:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcJ-0003Vc-F2; Fri, 25 Jul 2025 11:45:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKbx-0002xa-CM for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:34 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbv-0002Rp-5w for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:29 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-af2a2a54a95so359666166b.0 for ; Fri, 25 Jul 2025 08:45:26 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af6358a1dbasm10020666b.53.2025.07.25.08.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:18 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1E13B5F89B; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458324; x=1754063124; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ci13zANRlMXshyqaJ0Y9zNXzi7dZMXO5ioaNjRJV8Ak=; b=O8RYw6w5vIIKJaQJQyQxU58f8yxPBbpBzN7igHc0/S+WXYX6Ky4Or0nsYuk9RVC9yT ojMsWfB1hnZ5YXXG9UdjdEj+qsgQwWX1i5Ya4dT5/Iv9iDD8WNqL1Wzv6bcx+NYZWvXA KHSzVJbRrKUxFrTsebZiN9FIfTzQF11Z1hYouDlWYjfmVtZcyiwH/RSKOlhb5nkMZdT0 UEnV2RR9RV7q/mKv30EWHsH/UXQfB2hDty7EezLfk7d1wmaqCm9p8cvQSmhxprncKxjp Y6II+qD+S2WuEMPK83BqKbRjus7nYDHVrKmBjCBE+u0le5FrgRQ+GXjXGDGvEovTh94c 7vgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458324; x=1754063124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ci13zANRlMXshyqaJ0Y9zNXzi7dZMXO5ioaNjRJV8Ak=; b=Z/b75uBuYYvBxb2sP5RNvWxydKqqsr37ZzWvSdjxgqXanXJIYkMFf11W1/e0Fmw+vb HMNRokPzNbU5Flgj9KUCPqIqAceZmpg3vDhV9LHBmuuyCL3m3y1Eq+nN1jRnrB2rjJd3 CYPWrw36tVhCRTGXeMSELOHIWx40SK1tXVtgjYbRRlMkVQ9/b0WOUbPWMmsDHvU/8zK2 TM2UNa/gW+0cs8B/HvNNbYDQGwJfg8kdRCEcehbgt7UmPc6NYmP2H7xgnYbaYD2nU5+d 1cPrRf4wLLqUO5WTxMWnymTDQ3/PFlKZmev8nGSFxkFYfx4k4DJWehrbLLzqgpQjFQHf LSWw== X-Gm-Message-State: AOJu0YyyDL2xOvjocDDGdPqn+uDau+Vymfowqrsos5o1OnmnSrlaZyDz 1FbaUTkfnqW1an5uAwGo3k286oq8+PuUpu7tACgzYR+Q2W+gPuIQr2tfLrCGf40aGpc= X-Gm-Gg: ASbGncvfopi+rqsRvIprYfg87rv+v1B3eup4sKlk9QFSdEvoq1iVoq6Mb04jj3dnWHQ H72JJP31M0U8yKEjkNmsDPLx/+M8Cur1Z4WTO63staQvRwvwzGRzvDa2j9nQwAKjIO2OwwcQoFx im882BSOUW8VxA2jlnWsSS5431dkkd/l7K1XxROsRPzvqJswCdSrZGFk6FEmW4zT8hmu85Jlf48 jAeFKQ1OPXt4FFOXE8iX+Nv5R7cYlR6g0ixwdPyLHt8e3L95g6q8ovFjzp7RvympZ81LR6TsXja 8/Z58cY6PDM8UfdQz2okgytyZbK7/7zVp07piE4l5c9j9SbNhFSPY6dmCnvKEK7N22snFG3dBTA O/Q7hxAff50IhI7HAwOdQ9II= X-Google-Smtp-Source: AGHT+IGp8bL3b8uksvPgT262raT3NeWQnxuSjlqBF49tMYii/WVpozUG0lb5UOekE6qE4bxkPqv/7w== X-Received: by 2002:a17:906:6a21:b0:af5:3172:ca80 with SMTP id a640c23a62f3a-af61dd649e5mr317347966b.38.1753458323531; Fri, 25 Jul 2025 08:45:23 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis , Richard Henderson Subject: [PATCH for 10.1 v2 03/14] docs/user: clean up headings Date: Fri, 25 Jul 2025 16:45:06 +0100 Message-ID: <20250725154517.3523095-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62d; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458375059116600 This was a slightly duff format for rst, make it use proper headings. Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e --- docs/user/main.rst | 50 ++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/docs/user/main.rst b/docs/user/main.rst index 9a1c60448c5..b8ff203c212 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -17,28 +17,34 @@ Features =20 QEMU user space emulation has the following notable features: =20 -**System call translation:** - QEMU includes a generic system call translator. This means that the - parameters of the system calls can be converted to fix endianness and - 32/64-bit mismatches between hosts and targets. IOCTLs can be - converted too. - -**POSIX signal handling:** - QEMU can redirect to the running program all signals coming from the - host (such as ``SIGALRM``), as well as synthesize signals from - virtual CPU exceptions (for example ``SIGFPE`` when the program - executes a division by zero). - - QEMU relies on the host kernel to emulate most signal system calls, - for example to emulate the signal mask. On Linux, QEMU supports both - normal and real-time signals. - -**Threading:** - On Linux, QEMU can emulate the ``clone`` syscall and create a real - host thread (with a separate virtual CPU) for each emulated thread. - Note that not all targets currently emulate atomic operations - correctly. x86 and Arm use a global lock in order to preserve their - semantics. +System call translation +~~~~~~~~~~~~~~~~~~~~~~~ + +QEMU includes a generic system call translator. This means that the +parameters of the system calls can be converted to fix endianness +and 32/64-bit mismatches between hosts and targets. IOCTLs can be +converted too. + +POSIX signal handling +~~~~~~~~~~~~~~~~~~~~~ + +QEMU can redirect to the running program all signals coming from the +host (such as ``SIGALRM``), as well as synthesize signals from +virtual CPU exceptions (for example ``SIGFPE`` when the program +executes a division by zero). + +QEMU relies on the host kernel to emulate most signal system calls, +for example to emulate the signal mask. On Linux, QEMU supports both +normal and real-time signals. + +Threading +~~~~~~~~~ + +On Linux, QEMU can emulate the ``clone`` syscall and create a real +host thread (with a separate virtual CPU) for each emulated thread. +Note that not all targets currently emulate atomic operations +correctly. x86 and Arm use a global lock in order to preserve their +semantics. =20 QEMU was conceived so that ultimately it can emulate itself. Although it is not very useful, it is an important test to show the power of the --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458417; cv=none; d=zohomail.com; s=zohoarc; b=fepElZ3KNBVLYHBWxoo2CkpxXs1imHGQRnY0nIKmrMoXgv/S2JGLrl70VaIi0ggtdpIhsdmqfReXDD1de64q++OeDAd2gkfNa17vM+imH9cJN5Uj0erkZz/PeFp0q4uVRuv/CdsUzVavXzJ62HuO46X5s5NRK/6o3NojY4VIvO0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458417; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XnSza4lTBhV6Q/kwVg/CCfLpPpYvuTirTlEa76oijPQ=; b=Smfa2PQ5SzJ4gFWNCqvq1xUoNem/RypneIChZaB5JITJsJPdtjkG/yZJraN59aESCtYzoBCHKuqjfTy2wsZjDmU/sfXbSOdwevg24EwqkBv1ipjPlvbnqHqwvcL8AlPMBU3eMfjZnFaBpycrbD3HxKtak2ehXC8blalbK2piuQI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458417133681.0202669414147; Fri, 25 Jul 2025 08:46:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcM-0003au-EZ; Fri, 25 Jul 2025 11:45:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKbu-0002nY-RI for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:34 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbs-0002Qz-Vt for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:26 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-ae9c2754a00so392184266b.2 for ; Fri, 25 Jul 2025 08:45:24 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635aa68e7sm8411166b.110.2025.07.25.08.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:18 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 331CB5F8B5; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458322; x=1754063122; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XnSza4lTBhV6Q/kwVg/CCfLpPpYvuTirTlEa76oijPQ=; b=SfVYize7HKcIfsxmhquLd4rkiRSiaEQ4gG3o0DG1PnouZY0tRedsFooJB7OdeJ7WzF 5vq3M2eqGCZiqRE46ZLVCQ9PuNmEk+S+eZHMS32FlOrRTCVWJxWaKE6M9wNQvXOQdCfe J8ho9wktrIa2cfuAy+clyp/rsQqMu03WIOi+TLxT4msNrQQmZVCZenkIftpN1zM6s7f2 Mk07Cr6WTgn8Vrp7v2TbNHDe9+nz/os7ThVsA3ttoPSlm9DuRTWad7jCEZSkcZ7ce02x 4E8mHSDVtOIUvW/dmAiC47dapLSncJbk5U7dH4WxrLNDmBS2rcpGerc/qZL1bcssy6IP oJkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458322; x=1754063122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XnSza4lTBhV6Q/kwVg/CCfLpPpYvuTirTlEa76oijPQ=; b=ugWfNlCNm7RR9uit67oCnAAwM6EhlbfmZw1OFsjRxRH6MEL7aHNPcRFmzXIg0ZLAQg 0afMMKbZH0AR12se5Cd5KalBXrvQXduBe37EMv5mD23+HBuVutPVjgO5v6HxuoXr/cbP +6yF5Yq8qWWsbQmpVI9f+wKS/ZOmRLr4lOTE6zeJoOF/gSFDWzEP5MljtEHvN5ApLgof eNNPC3BCgUe4I7ANoQ+pwFwe22WkDRPyI49VlFXKqNtahoPA5sJRjLadqjoSIKLDM9iE A8HkgqlUYd0UO0qhsszwxoiLO0wmrhCMdT/58PDeEvCWfcWlw73WzdHJ1/TKv//oAsgs Ku3g== X-Gm-Message-State: AOJu0Yx0hfAk2VdCUA2IsAJ5SfXJkP6w+CZoJCeukv/OyqLQVD2PNmRe 7vQGZ28Hhqvbklcye27ejpfMX5aH833qJA+ZbUVLdz7dNiytgOQghyU+ndmxnn1iCdM= X-Gm-Gg: ASbGncsszjCWQCqw5gRCrOF3rqKeb8MXvEYHsD9378oIxbWLq+NAiknD8efM1UatBRO +VbjH3PTnvYhGIeHRJr01uh5/8xQK1icebi0s4/68TSMm4ujoWTXALXV1opvAgSHhuW9BeGKFVQ RjNvuacwWTl0E1tTGHYpl+UHt573+eIR1hOgweTEQiOZmPVcAmqaQqJ90nZ6MXJvMU6aQueuFEJ sp/Yz3PmIuhF9+BmOChIDcbOZZ3GpC+VIlCa1mZqnmhk8KxZ5gjKWjQaTELyPRKVhm0MQCmoQYV +DOFwnLQhCJwqqtro9nutD9eLBXiVfb0W7oQhPl3+Ps+1KtVpzQoPI4pxkmYSpxsIBfPtAuXjti hwQgIsFyOs87jdezFqM9rS4c= X-Google-Smtp-Source: AGHT+IEwL92+C60pzCCLSdE9B99WZrLxD7f3VT8aXHl85p64E1Yv5nqhdukC4adqO1nesInb+/7NQQ== X-Received: by 2002:a17:907:60cd:b0:af2:4257:fa1e with SMTP id a640c23a62f3a-af617d00e58mr336283966b.25.1753458322456; Fri, 25 Jul 2025 08:45:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 04/14] docs/user: slightly reword section on system calls Date: Fri, 25 Jul 2025 16:45:07 +0100 Message-ID: <20250725154517.3523095-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458419375116600 Expand the description slightly and quote ioctl(). I did ponder mentioning something about why DRM ioctls are often missing but I see we have the I915 ones so I guess its just no one has done them. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- docs/user/main.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/user/main.rst b/docs/user/main.rst index b8ff203c212..05de904225c 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -20,10 +20,14 @@ QEMU user space emulation has the following notable fea= tures: System call translation ~~~~~~~~~~~~~~~~~~~~~~~ =20 -QEMU includes a generic system call translator. This means that the -parameters of the system calls can be converted to fix endianness -and 32/64-bit mismatches between hosts and targets. IOCTLs can be -converted too. +System calls are the principle interface between user-space and the +kernel. Generally the same system calls exist on all versions of the +kernel so QEMU includes a generic system call translator. The +translator takes care of adjusting endianess, 32/64 bit parameter size +and then calling the equivalent host system call. + +QEMU can also adjust device specific ``ioctl()`` calls in a similar +fashion. =20 POSIX signal handling ~~~~~~~~~~~~~~~~~~~~~ --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458636; cv=none; d=zohomail.com; s=zohoarc; b=Q5+BqOD+qT1KDnHRBnzhW4uLMQC9KR1Aws7wH1pN14fKgAVA5aH6QSpiigH2byn8gaHptbZ4Ubi+oC10DldOZTHmBVlpELoX7O8EaxH2zeN4IGfMretZGjAN1zwgzXpSynIw33mSQeRIXuYazyd7F4JNK2XKCMx45smb4ABBAA8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458636; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=DY/auZzeGDfY2FoWi/fBd8zngCsKbjYbcPImiiCVnS4=; b=jjpNVxberK3DstFmr1nxd/E2HYKPnhjKTOa11vsymFvZdFSnZBlOZUgKmeXMiXu9BnJwRa9XHIe1T+vHQlF/PKLRZS7hRLJAmeTMtiTe9JbXaNUyRcdQzZnx+XgYbPsiLgSBzknGNa/UMxOxcSxcXhOIfrpfPw0rYj2FBpWoCIU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458636450696.4952004109219; Fri, 25 Jul 2025 08:50:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcd-0003m8-Ap; Fri, 25 Jul 2025 11:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKbz-00035w-9I for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:34 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbw-0002SO-I3 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:30 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ae3b336e936so442300066b.3 for ; Fri, 25 Jul 2025 08:45:28 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635b08846sm8320166b.140.2025.07.25.08.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:23 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 46D415F8BD; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458326; x=1754063126; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DY/auZzeGDfY2FoWi/fBd8zngCsKbjYbcPImiiCVnS4=; b=R2BktGZwjrtXv175L04n8Ti3sGLymv1azhU1zAXl17pKmq0Zq4scAlSf9rtvUwIqRv bCO8zhPM5qYSJPCefQA6sKRVAk4uRDICNkdbjw1/bbUYVAdWwaUFSGVjPsWkJQc6/4h/ DioZvKtdhiKb+dKkzGO5F/MpIKQYws+AUNaizI6AdEc2KL6HNd6LWG0U5JmfOUnQMbZM OajTsUz29I2gkfesVj28T9wTEjHhz5aj+TvQDlAlokqA3kCJhcq8w90qQ0YgwisEmD9w MaNYJrVnU3bMauptE55Wqu59/sV+P9Ulazo5UPNc0V9eES7ih4dtPuYGDQJIELcFaEbF bd8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458326; x=1754063126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DY/auZzeGDfY2FoWi/fBd8zngCsKbjYbcPImiiCVnS4=; b=UTJ4hoDpssw7h+ui+fjHMxpXZtAYt6tSnqqWITe5SCNfcGYMKKCOY/P4hYTizEduGN O88CG3gBzQD2qVfWqOPUAeSBpmZLsdebYwXoEiLTfJQEIILl69rrLpPZJiEU5Zl0gJx2 ViEDRkjTJ9tCnW7km6lA36xyx/lGJ6jqI6okDLXUVlh52GrBrx0RtOe3nJvowmnKjMyT XbuILiOCAAeS5r+1km7i1zkQWH1PpYVN6v1wRdxKhHOjBMtpSv7AjzHgfIvNGtERFDxE i8tKZdYqPvQvrCefn7WnxpP+Y1EvTQmnZw712unYByK265IctQHgvVA/wiOsp3WrMohg PUJQ== X-Gm-Message-State: AOJu0Yy+dwCKkKcAmBhEOYrlvGQ6zIjJoSCXrSc0d+XZrefo8hHEFL71 +H2TCiZuvLVLtCqVHQx16KRNHvlTXhffBoQ7lB0fHmMeNO8fr8v1bcLpjv4yZWWOmoQ= X-Gm-Gg: ASbGncsQQHlbAbmDxK1i/sY+NgFvQ20BlPXqMnPROLNQZNvWfuMjCXahCiz/u/v5umC 7OTw/SZUWjvGxa5jUBpOL7Bfx/+52e9Q3mG/L9p3BZxu1dvWB1KmafyreU0EdE6idRwG0Y2Q5iY A2Vra8D9b7bzzSO44LKc93SB12OffDK/NXXPFhn+ii7PC+IRmvMCfgqR8JBVC2VzQaOtbeUdb1T SuXuT9Z2mXd/8IcA2yZjYabXoOUviLW3ftD5169amKTsIkEbkMfjVsD7SfwwJgdjDSzmn5JVqWg GraLJJujroWZHI6iL8UAG/WH/QmIHqX7NVwlmg9ltCqfJklU8BYDCrNbhmXzQfUPNSGTv5eOnqh G0Hkknbb0csES7SorDA4f4qY= X-Google-Smtp-Source: AGHT+IGhc+DzzG5zkKzznMyj991NDTVBbFEorG7dAAYJ+rsir0JUM9PSs+wbQ2lt8kx0dGHofqv1+g== X-Received: by 2002:a17:907:3e9f:b0:ae6:ddc2:f9f4 with SMTP id a640c23a62f3a-af61c2b4194mr296809766b.6.1753458326075; Fri, 25 Jul 2025 08:45:26 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH for 10.1 v2 05/14] docs/user: expand section on threading Date: Fri, 25 Jul 2025 16:45:08 +0100 Message-ID: <20250725154517.3523095-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458638012116600 Potentially too many weasel words when describing atomic and memory order issues. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- v2 - /we are limit/we limit/ - use QEMU -user-mode process instead of guest --- docs/user/main.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/user/main.rst b/docs/user/main.rst index 05de904225c..347bdfabf8c 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -46,9 +46,15 @@ Threading =20 On Linux, QEMU can emulate the ``clone`` syscall and create a real host thread (with a separate virtual CPU) for each emulated thread. -Note that not all targets currently emulate atomic operations -correctly. x86 and Arm use a global lock in order to preserve their -semantics. +However as QEMU relies on the system libc to call ``clone`` on its +behalf we limit the flags accepted to those it uses. Specifically this +means flags affecting namespaces (e.g. container runtimes) are not +supported. QEMU user-mode processes can still be run inside containers +though. + +While QEMU does its best to emulate atomic operations properly +differences between the host and guest memory models can cause issues +for software that makes assumptions about the memory model. =20 QEMU was conceived so that ultimately it can emulate itself. Although it is not very useful, it is an important test to show the power of the --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458633; cv=none; d=zohomail.com; s=zohoarc; b=SO+vT4GdI0mMU1Q43PVkIgBXumd9OQ6RVB39IlXDziZQPnL0h+0oxZk4ONyAHfKB98VKkyx70OHBaulwk2kJtmecYnLcv4MwKIbFwSMmEl4zTMFKbKtRJA07o3RGQdJeernpp4NAqB2eIU/hb9+M4h3xS9kWVj1+b4yy5qcdOaA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458633; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bwGqdtmYsXLYT4cV4+QQFBwWc6jmgZWJKPKsBEeRTIs=; b=mfFOLmarF6d3xuPn8j5+ntOMQZhP2erySlLI178Zikzhcsb5EJMWRQysfzGx4Tbcfaaz44fBLi5s9NhjsnDa60Qn5rZzvbgNdRHklI5gpPWb0iZIGS38lTNds6yUEUj4WgxLF9nulsL4WnzgkYve9CyDZ5AF4s53YrR9Z1kY6eE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458633265357.07580686248104; Fri, 25 Jul 2025 08:50:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcd-0003m6-AO; Fri, 25 Jul 2025 11:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc0-0003Ap-A3 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:38 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKbx-0002Sp-NY for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:31 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-aec46b50f33so373807966b.3 for ; Fri, 25 Jul 2025 08:45:29 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635a61103sm8582966b.70.2025.07.25.08.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:23 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5DB4B5F8C8; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458327; x=1754063127; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bwGqdtmYsXLYT4cV4+QQFBwWc6jmgZWJKPKsBEeRTIs=; b=TH3hFbELr4n+7AQLmQLsaY2kyAYhTiw9i7csJOwSCrds50nAjVKM1nsfpisblTKK2b All8hnw/l/fy+BgI/CEWUgctfZy6Grk32MfnPAa0HMNGd48RUSxPpPs9pA0iJAmN/Ud9 lD0NFA1dSrdxLfgE2CnomoNgg7UW6Kr4c4IKW81Z/BBp6BWQm+GL4YOGY/DmmbfuvIn5 Tf2QjPa0XeQmOTH4t1CuqMvrHRcGWA5fXFH2C2jQf3p5+nna8tBOHP3tf68lGqY8Zt7R FWCNQ7p63G+G0JGqYNOl0ynHERZL5MEnhBBNaPkoTO5PSmL1Q+brZ+OPMrvYYmBW++44 +4JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458327; x=1754063127; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bwGqdtmYsXLYT4cV4+QQFBwWc6jmgZWJKPKsBEeRTIs=; b=slyfpc5R5R+ib3ed6TEP5L1JHY7wrc9+52+SIINlqsE8LniOKI1ok33+EQw8UiFuN6 wTP1EiKXXXoEPIXrOmpC2VVkhr9RcOu4i2lE5VaVrmfjbi1vGbdsjrLAUgttjLVnPSDu KpIt6FhXafoSti9Bf6W33Xl/G3D5KrCi7+wUh8U6UMyiBA2wP5T8YZ7h854IdlU8hKI7 0BSimAnVfjwNH9JsEX8WrTPj2MoPqyPMzj8Np9m8wj2mO9jPKvPBJRh1jphB6WFEjUQt 3nnkL1IhQ6yR51fxDKuYgHVJDPuRjt8i2smeyjiohktSkHt+lGxsOuEPUhh/OkR1lkpk bHug== X-Gm-Message-State: AOJu0YyxT6AkQ/zCUdlnGu9gg3WseNIhdC0AKzkyS/qpnuM8ux/49QKB ZYC+u9dR1+5EXAUlY7PGM6rPpA3MVkhbvgM4ToSp0A5zgyzGU01YIH31UWZxLJ9fG50= X-Gm-Gg: ASbGncuAqO6/9BMJKlyW/w/pQbG9K9aG/VKJTMyekY5CIIrvNjZ4H9c4aqCKJD15Z0h rqw4KOyAmcZCuDi6PfZ3BmUZ8Nwu3znj03MttTktvSD1FFwl8fPRtYUfsRn1jJ56TEvzBTwuzgx Dq81YQttB4YbvsQYZ2NxcFfSf27alrp4BMbF7ORS/hWJQpXPV0GqVbj29Xg3phoXVwXL0mnBDFs faAi3Y2bNsU2GXBts2hFe5g100mH2NVE6eaj4MjmhQspNwhroJh+BNT+sAACn/wAW602q7HagLz mdCDblpgKLAFYTuEUiWe+a5k14uJoVkJe0bzP1XmBH09eIvcfb63CvVmUWPBEtuPp4YZqGC5VkF Q0gSVdq+pSTsrvxDtzVsplVA= X-Google-Smtp-Source: AGHT+IGH/j4Werq+MEgIWqHqiB5MTEi57pEdhOgnZjC9MMATq6Me31VN4TbWyOxcDy7PlB9vGyA94g== X-Received: by 2002:a17:907:3da8:b0:ae3:60e5:ece3 with SMTP id a640c23a62f3a-af616d056e8mr294306266b.6.1753458327190; Fri, 25 Jul 2025 08:45:27 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 06/14] tests/functional: add hypervisor test for aarch64 Date: Fri, 25 Jul 2025 16:45:09 +0100 Message-ID: <20250725154517.3523095-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458634099116600 This is a simple test case that runs an image with kvmtool and kvm-unit-tests which can validate virtualisation works. This is useful for exercising TCG but can also be applied to any nested virt setup which is why it doesn't specify an accelerator. Tested-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Manos Pitsidianakis Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- v2 - drop try/except (copy paste from gpu handling) - refactor tests into helper, add commentary - drop 2 line spacing --- tests/functional/meson.build | 1 + tests/functional/test_aarch64_kvm.py | 71 ++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100755 tests/functional/test_aarch64_kvm.py diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 8bebcd4d94e..ecf965adc6c 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -89,6 +89,7 @@ tests_aarch64_system_thorough =3D [ 'aarch64_device_passthrough', 'aarch64_hotplug_pci', 'aarch64_imx8mp_evk', + 'aarch64_kvm', 'aarch64_raspi3', 'aarch64_raspi4', 'aarch64_replay', diff --git a/tests/functional/test_aarch64_kvm.py b/tests/functional/test_a= arch64_kvm.py new file mode 100755 index 00000000000..9fb9286139f --- /dev/null +++ b/tests/functional/test_aarch64_kvm.py @@ -0,0 +1,71 @@ +#!/usr/bin/env python3 +# +# Functional test that runs subsets of kvm-unit-tests on Aarch64. +# These can run on TCG and any accelerator supporting nested +# virtualisation. +# +# Copyright (c) 2025 Linaro +# +# Author: +# Alex Benn=C3=A9e +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from qemu_test import exec_command_and_wait_for_pattern as ec_and_wait +from qemu_test.linuxkernel import LinuxKernelTest + + +class Aarch64VirtKVMTests(LinuxKernelTest): + + ASSET_KVM_TEST_KERNEL =3D Asset( + 'https://fileserver.linaro.org/s/HmjaxXXYHYSqbes/' + 'download?path=3D%2F&files=3D' + 'image-with-kvm-tool-and-unit-tests.gz', + '34de4aaea90db5da42729e7d28b77f392c37a2f4da859f889a5234aaf0970696') + + # make it easier to detect successful return to shell + PS1 =3D 'RES=3D[$?] # ' + OK_CMD =3D 'RES=3D[0] # ' + + # base of tests + KUT_BASE =3D "/usr/share/kvm-unit-tests/" + + def _launch_guest(self, kvm_mode=3D"nvhe"): + + self.set_machine('virt') + kernel_path =3D self.ASSET_KVM_TEST_KERNEL.fetch() + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + f"console=3DttyAMA0 kvm-arm.mode=3D{kvm_mod= e}") + + self.vm.add_args("-cpu", "cortex-a72") + self.vm.add_args("-machine", "virt,gic-version=3D3,virtualization= =3Don", + '-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.add_args("-smp", "2", "-m", "320") + + self.vm.launch() + + self.wait_for_console_pattern('buildroot login:') + ec_and_wait(self, 'root', '#') + ec_and_wait(self, f"export PS1=3D'{self.PS1}'", self.OK_CMD) + + # this is just a smoketest, we don't run all the tests in the image + def _smoketest_kvm(self): + ec_and_wait(self, f"{self.KUT_BASE}/selftest-setup", self.OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-smp", self.OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-vectors-kernel", self= .OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-vectors-user", self.O= K_CMD) + + def test_aarch64_nvhe_selftest(self): + self._launch_guest("nvhe") + self._smoketest_kvm() + + def test_aarch64_vhe_selftest(self): + self._launch_guest("vhe") + self._smoketest_kvm() + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458439; cv=none; d=zohomail.com; s=zohoarc; b=W5fgt6tw1EItf3cT2AxwNOBjNhCUZVwWRimkci12ANjy38hN7M5dNtPAeF4YsaL6FhI3sIto4dDf85dgRKTGNTN5FT++D7GIgUiuKekk1N57TSW0zURWrpGqFiXISgRBuWgXes1Cb2Y2MbYCCKSVh77pYY2YN3me2nHFFoh3Sbw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458439; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Igf1pNYcYoZ3hwlkUPmHcAumxqDOxsPEzXZR12elC5s=; b=SVRua2lKJy0omk3QK710KKIvoT0V/Sl2/l/RTR+tG2sSarX4V43QwttuKF1H7eEphQaoW9wMesaGB5f7XkTn/pffkLhpHp2ZhKu6EdyKsdV3zoPZ64mU8DrVVb0XRZEhYlgTAS4apyY/uAK68SfpWau7e6CjspB8eUXmYZ9lP+A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 175345843902780.34105450128288; Fri, 25 Jul 2025 08:47:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKce-0003mf-Bx; Fri, 25 Jul 2025 11:46:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc4-0003OB-RY for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:44 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKc1-0002Uo-KE for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:36 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-6129ff08877so5310713a12.1 for ; Fri, 25 Jul 2025 08:45:33 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af6358600a4sm10405066b.25.2025.07.25.08.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:25 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 738435F8D5; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458331; x=1754063131; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Igf1pNYcYoZ3hwlkUPmHcAumxqDOxsPEzXZR12elC5s=; b=t3dcKi+GoCNOTP17Mi66uc6bOfPzNV2Klba9RMw8fsbcbcjETiQHvPTFbPqXj0lw+n fMB8lM2oTkmnnVQ8fJoR9ozzxQcSRlxeIqXfPWBJLase1NuMRi2bORxr61c4IQjFcBpv Ocx88GhK0qCS5w0zrgT6CSm4qgLshSDFwsTuo5ZSLSG4GWYHLIPm2cHCHQyBxQWkJhPM VfDKmXVgxOtcPZnpZHYJoTn2DIEy/aFuNu0g93GVkoumH8QuoKCM8CRez4oKcyJkeg8l ytLsApbIlxoQACCxMPqTj+y8KSIrXnuEBfPkLxACKI4c2e/xbZSSvQ+SILD9IjVFjF7h oKWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458331; x=1754063131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Igf1pNYcYoZ3hwlkUPmHcAumxqDOxsPEzXZR12elC5s=; b=YG4yf6outA+6VYQKMizPp2yCgomkN77c4RgzWaRjmkPl1etEseF0ejc7KwVKCpVdv3 uFPXsTmBQ+EE2m2T4/oA1VMaDWChRzPn1bKrH7gEDyixUkD1SOAP5xFvjFL9Lj7zVIPJ h/Z5CO9iKjS+CS854pkfgvchTOuFvzidAdeh5DdrF6JFQjfcsvEoyx6FbLqNayYwarqp 7RwSiQwIFEz5banujXgpj6j/BwJXrpnYTsmmFM27YkFcMHbeY76ZLMONoeFVDRBpCCsn SJO0wpkNM2MnPd6qJK7lFuqgyev6n4lgEQwmePw+H18JQk/13dQJ9wey7bGGbKGv63Jc eZag== X-Gm-Message-State: AOJu0YyKq+Th40atBTAbngP+3vFchmOh5nbhDf70paKHEpMPKj+Aav/j m2ZmG43n5/xRpr87PmTrs6Fx8btA3FwxhPmz3WdiCiGf3rSXZ97KmqLRcpBrxw8lSVM= X-Gm-Gg: ASbGnct5txtnP0I+bkBPnwrVMM7laHxEQhD9CTyGp8LBqq7pIH9iJ4nRdmxSCiJqAga Y1iyDExLenXhMsh26jINUJAqvty31TggqFHPBcBxuEmsk+/MVLBpL4ObUYyH1PAQrpJIfD3Z75e xTzA+VPtg79RWLoQK6UPSFfeLROyE529yYKtJ7raz45bJzaVXqFYg+BjGaaPddEvxSrGx+wU7s2 rHoErmBjHrxfMYBQnlVN6tc4skOrQhfmj8FSU/fAJqjMO/sJAyAy+FF1BSrhtUR9edW0NFH7Tgw SpqpEJ98FX0/KpzPkTs/1tWhL/SzUuY2uvaZBZnHERmGszwFxjYZ2TO4lCDicrcUGBJ1R8mYAhl 6qGFhvbYNsPIbxG7yz3Mq0lI= X-Google-Smtp-Source: AGHT+IH4rwZO5CpAHKc1e6daW/zsvnpN1AsNCxv11WFGwoG29RlPHAsh9IytmlJy1oJYkDgyPtrZbA== X-Received: by 2002:a17:907:3c8a:b0:af2:4690:9df3 with SMTP id a640c23a62f3a-af4c3c4bb54mr665196266b.14.1753458330912; Fri, 25 Jul 2025 08:45:30 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 07/14] tests/tcg: skip libsyscall.so on softmmu tests Date: Fri, 25 Jul 2025 16:45:10 +0100 Message-ID: <20250725154517.3523095-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::535; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458439582116600 It isn't testing anything and just expanding the runtime of testing. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/Makefile.target | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index af68f11664f..3d96182a7b9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -155,6 +155,12 @@ VPATH+=3D$(PLUGIN_LIB) # For example, libpatch.so only needs to run against the arch-specific pat= ch # target test, so we explicitly run it in the arch-specific Makefile. DISABLE_PLUGINS=3Dlibpatch.so + +# Likewise don't bother with the syscall plugin for softmmu +ifneq ($(filter %-softmmu, $(TARGET)),) +DISABLE_PLUGINS +=3D libsyscall.so +endif + PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ $(patsubst %.c, lib%.so, $(notdir $(wildcard $(PLUGIN_SRC)/*.c)))) =20 --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458553; cv=none; d=zohomail.com; s=zohoarc; b=jrtwjoapRw4d0dVFMqfeoa+FyBNvpUwy2g9n08vNwb8aoA/B2RGWqVvqgrldURwB3H0eEKvq2vUsCeIW/WsC3ykWpMvkLR/p8M4zO4DUiy1yd7xKCqlW0e455g6x2mwtk6l6uZxWFiQqgQDyvX77wB66zzeJCjUWd2Y0hwlZhAE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458553; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Q4sxpQUxIXO6b5aTsXXmhMZvicKhgqHiA13ifXZz278=; b=LEWeF/UGLKo9Fhmlc5TjPbvv4DXjveVaVeylsJSZjLD8GlA83rbbnpxUzqaTrKduGkkkW/H6mF1AEiv4+A2t2MFdAU1yiMSgs9Rg3Ko5wMu5iKvFB/vHM8+ukgkG5PddB2UxbnzVaL6XF2Ok8DtPRNncpQZYnsrT8RKPT6Cdygc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458553005189.68827704782848; Fri, 25 Jul 2025 08:49:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcd-0003mU-Hz; Fri, 25 Jul 2025 11:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc0-00039a-19 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:38 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKby-0002TE-AZ for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:31 -0400 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-607434e1821so3220951a12.0 for ; Fri, 25 Jul 2025 08:45:29 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500ad045esm8029a12.38.2025.07.25.08.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:25 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 892995F8E1; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458328; x=1754063128; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q4sxpQUxIXO6b5aTsXXmhMZvicKhgqHiA13ifXZz278=; b=d3WC6DJtb6uCxKzQscR5SQP48snBA5TI8YjGqkYssURAaj9kxL0/zBlqJscuouk3Co l5h7HiKpuZn21CSuHuH1/cd5RXasuZ9FTmXbGW6dOmr1bEVmQYfZUuwltAfjhpY2Ddm2 b6XchgL5BK/ake23hmVoGqaGxP/EMyo6PCC1q+O8rj7sn5nygE9LJPInJpDyaXmJVrAk rqSxACqLpgsY8GaUXFqZvCPbwM+ybpGYs9XaXpoMczHfH3OwcLgO/kXfRTgM8P+sKIL1 OBOxymui/OcP/bWgvPtUpeeHdl0JN32juU9dbWTkmwo09B7BFCKiAPP6AW4o4WBGlQif rSuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458328; x=1754063128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q4sxpQUxIXO6b5aTsXXmhMZvicKhgqHiA13ifXZz278=; b=Hgmm8IgZIbXisT2R3Kvuo75T2hVF8Agu+5ZfCg6j/cHVlSV1NkRga9E0NnmBy2uKO8 TrxGFWu8yBUPMgQyCWbKEEZGvqatF+oMAdQxPMoS9hmOpQAYx/GMgdbY9kvCbuydUzP+ QnjRiRXVE3Xt6IWrh6N5yokNM3/dkw4FNUJMsVjP2uBKqwGLm2gFA4fZiouk+hUxRPs6 BVwW5YabR8H2Vthhp+KS/9leGpmb4GejlqsIaZXVFxhsNaNkpmYQhs4MRvbn0HUIWIKb v5mBrYEzq07ZG+BYsBNEIfgXzii1Y5TSCINGd5fBr+jwyygVrsS0YYOVWg7TPYqvUVdz xXRg== X-Gm-Message-State: AOJu0YxhqrFp6/2bavvobWwoCIhqj2HeTwUy7PiLp7pvs1+qiYhjceKu G+nY6pNOqzr1ujXFu3/LmvDM3eWYMrDrvdP5gRFKSIkgzaOFdlOQfGWV197B5cAylXw= X-Gm-Gg: ASbGncsI/bFcxaheNfzfRlfvvr8CYSVWY6dg3RSwcC4tkNGtdnpDIj5JNJou+sGZAtd ImtmhOgG1jeAOFm+JKjKY3tnym4hnX1TQ4+E49AH8hy4c9RUMwQ0lnqmJH4TeHdqCWMoG+n3j22 3o9MR0Bq3yrOD447dbXbJfpDhbKzUhnt6z6sfBB2aKwRcY6M0GHrXiDpYyyNNC3dRPDZEjAYTL4 OePusC1LfTrOpvjz3jAiFvAxoSgRhtClPfmnk8vC/kF3MGbB93uoAcqHRV6iT2S2x0ZQXXKXpQI BOhMfj/IKM9Mu+YbOwQdi4s0rLjcewWSVymqPI4oa2q4P9M+67GWvG2/WuSrWMiE7VuxdBdfN21 mHFHDsXa3dIVB3cFukxBQ3FXJBSlr3YYq/w== X-Google-Smtp-Source: AGHT+IFB84to3S4f3Zwv2w9pnM3WezHPnmM8+ZMISkr9y/9hyjWW38pHT4jyvjbMclE95UBxb7ofZA== X-Received: by 2002:a05:6402:27c6:b0:612:b150:75f3 with SMTP id 4fb4d7f45d1cf-614f1bf83d1mr2485584a12.8.1753458328049; Fri, 25 Jul 2025 08:45:28 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 08/14] tests/tcg: remove ADDITIONAL_PLUGINS_TESTS Date: Fri, 25 Jul 2025 16:45:11 +0100 Message-ID: <20250725154517.3523095-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458554882116600 We never actually used this is the end. Remove it to enable re-factoring. Fixes: 7cefff22d54 (tests/tcg: add mechanism to run specific tests with plu= gins) Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/Makefile.target | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 3d96182a7b9..97ebe8f9bc9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -169,11 +169,10 @@ PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ # only expand MULTIARCH_TESTS which are common on most of our targets # to avoid an exponential explosion as new tests are added. We also # add some special helpers the run-plugin- rules can use below. -# In more, extra tests can be added using ADDITIONAL_PLUGINS_TESTS variabl= e. =20 ifneq ($(MULTIARCH_TESTS),) $(foreach p,$(PLUGINS), \ - $(foreach t,$(MULTIARCH_TESTS) $(ADDITIONAL_PLUGINS_TESTS),\ + $(foreach t,$(MULTIARCH_TESTS),\ $(eval run-plugin-$(t)-with-$(p): $t $p) \ $(eval RUN_TESTS+=3Drun-plugin-$(t)-with-$(p)))) endif # MULTIARCH_TESTS --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458439; cv=none; d=zohomail.com; s=zohoarc; b=kgLR533SrxiNEQc7rAjBMOdsGCi0glIMjZr0bUye3uDI6q8AfjqR8sJPmDUYmOkB1oBCDz7DXhV8/oZ58y7h1HdsUa7oJJCHbuEzqYuzSQL0Q/9EcgBV5CGpvevej+sNRxzzkPmic9ib0wEs9f2J8gtcb2dSlWJUDaUa92NmhNQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458439; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Hheeh9Xx9hzorxh/J/X7KgueFhsA9Hl1jTdEQCdFEQI=; b=A2JiDwQuImYlkJnugglR2bDKjfp2rfFyot+G25DF7EMlaL2mUpY/2tlTeKlHYxFXClh1vrYEy7/976ijv7dwJKdZfTyKLH7h6VQSeRUHMKwmLZbZAPwgyo9N7zgzJ6iXav1CwOGkLEYgqPiiqagfMN7hKLJzwsRbS8LAQWH8L9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458439507335.6311384427959; Fri, 25 Jul 2025 08:47:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcZ-0003jC-EK; Fri, 25 Jul 2025 11:46:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc7-0003Oj-4d for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:45 -0400 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKc3-0002Va-Af for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:37 -0400 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-ae0b2ead33cso402166266b.0 for ; Fri, 25 Jul 2025 08:45:34 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af6358b052bsm10070366b.57.2025.07.25.08.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:25 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A22DC5F8E7; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458333; x=1754063133; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hheeh9Xx9hzorxh/J/X7KgueFhsA9Hl1jTdEQCdFEQI=; b=gLBgmta8fQ4W/p0L30IIFet1McS4RAGtq+S/i6KNhISuowIV8zh6HuYiFRhhySD/JM C6V96nGAlji/wz4vGk+YYyGaw4hkTJWBAAuQK+hjZetNgp/5jQBXUHoGWNtzV0eZQ82Z 3Q4HFjA5FOrLvmVp+LRbaqOp6GHgDIbgmjLpMEXO3JPR0foE54HBRDDlzde/JrEawpv9 j87u7xjm5eiNSMMQnQkVNCB2Zrs17Bks/IKqNEsRT4ItEtoKsc73C21HeFvGGwhrHtgQ qVTH2NNxAxS8L38htUybDixeuSvdvP2xUt69YsXX8yu3h+YP6E1mLZD3xBfsCk4w0I7H G5JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458333; x=1754063133; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hheeh9Xx9hzorxh/J/X7KgueFhsA9Hl1jTdEQCdFEQI=; b=rQaUuk1o1/tRTB+ODEsEpbdf0MHSazzBewElFufdA6Cmh0IxQJS+8XfQLhIXySh7GS bLP+aIw0JBm005cp8YAPPexgi5OrbheLkQVvEYTBDZK4FETqzEy82QsH1DVvilTqL0G8 AhUqsIbC79AtKNWx7Dg2tO461ZdXioMNcWgIDfGaIyA6uz4xKnWeF/VvHjuxnnUGN1zX SF3RG7VkBZoVgp/EnONb43b8OvC1sXBEETY1t0CQO5W3pyKi1i+ES65D5yZUILqAAPaj Gb7HGDwfNs0g1ItWYDldTwMkZ05PTUafnn48TBydR6NkNe4eoD59VHqt4oblc/L6go2M fR/Q== X-Gm-Message-State: AOJu0YxbdTGYcj9v3xzjSwsg0p0rAcWjagNk27k11MrOLESZV8zHWdiw Q9EI1ZQoJnzbLUeg5s7ARFfCKW/yyzss3pE6yZ+FWc/ss/20eJY4D/SPTPAXMTDFtQs= X-Gm-Gg: ASbGncuch2Ei+1kgwkHqG5lF6jN7497+olaSXirBYwgmzdVHrZH0fAoN+K8KpYed3CP exEmbtsyhNo09l7nhdN3ipNVEgzLFzJm8FPtJQYzUsXc+mbzDrIVlTTRnLEXXCQuKdP2P5pRnYO ccDcEZb8lm/r7QyiG1zdeW/8Cz2ypLknevqXA2cHZAAgegmq0pYq94Ejubi7PzG00yHkcGu1fIe JAoKG1wP6p/JuOWdRVppPjC6HKxx8N6znTHQL7k03u1CNh8j9nfwx+EgWbbIEIYTb/jef7DYRU1 Mci+z2F/3Y7aq2zEz2cefDvRh3e/MMNidqwwU0ozErKBuqsZIb+iQPh034v7B0cVdc7s+gsA1Pj pNdbItcGnx5H30ufY+J2jgv4= X-Google-Smtp-Source: AGHT+IG3kR2ipPy+qPBfa5bZA2no3zs7OW9Npw0ou3CnqJceZCc8HZ12IxsmV2ygqP3C59+yjvP8pA== X-Received: by 2002:a17:906:4785:b0:ae6:c334:af3a with SMTP id a640c23a62f3a-af4c1e266admr781863966b.6.1753458332753; Fri, 25 Jul 2025 08:45:32 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 09/14] tests/tcg: don't include multiarch tests if not supported Date: Fri, 25 Jul 2025 16:45:12 +0100 Message-ID: <20250725154517.3523095-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::635; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458441717116600 We are about to change the way the plugin runs are done and having this included by default will complicate things. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/Makefile.target | 6 ++++++ tests/tcg/multiarch/system/Makefile.softmmu-target | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 97ebe8f9bc9..a12b15637ea 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -127,8 +127,14 @@ else # build options for bare programs are usually pretty different. They # are expected to provide their own build recipes. EXTRA_CFLAGS +=3D -ffreestanding -fno-stack-protector + +# We skip the multiarch tests if the target hasn't provided a boot.S +MULTIARCH_SOFTMMU_TARGETS =3D i386 alpha aarch64 arm loongarch64 s390x x86= _64 + +ifneq ($(filter $(TARGET_NAME),$(MULTIARCH_SOFTMMU_TARGETS)),) -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target +endif -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target =20 endif diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg= /multiarch/system/Makefile.softmmu-target index 07be001102b..5acf2700812 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -6,6 +6,11 @@ # architecture to add to the test dependencies and deal with the # complications of building. # +# To support the multiarch guests the target arch needs to provide a +# boot.S that jumps to main and provides a __sys_outc functions. +# Remember to update MULTIARCH_SOFTMMU_TARGETS in the tcg test +# Makefile.target when this is done. +# =20 MULTIARCH_SRC=3D$(SRC_PATH)/tests/tcg/multiarch MULTIARCH_SYSTEM_SRC=3D$(MULTIARCH_SRC)/system --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458366; cv=none; d=zohomail.com; s=zohoarc; b=Y/riUUzIw218v12wPqKvgV1rPmnNvf+gYbJhmU4oDp3NH1MHL+m8xBdGq5bB7ZW+qkCsyoqmhnuRr7I/booF4SITC+zSKw9705ckoTlHaPpl8TS23trf8jbtr+bQzdwd3ixXVQ2js+eiWWeiduJG+B1qAtPLr/jYxswT1xI443A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458366; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7g+EQl4FO2y9seoDYtW7fldlHVS7rtc0zlRHDP7pw3A=; b=KIp2feAVVbBvOUVCGIrK/GU+wwvbg124JXaxaUztbB38JThwtrihXHmAF0S1hPX7RhjwjF+yddXj7kpX+dz+CVal3M6Jtxe5+07gQKGy6We7mdOhRFRZYg138qjI2ksJZbSjY5mjWXc/5SrmPbd2NpycV5ZtMcyed7RKuWDHlIs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458366860918.3587223595669; Fri, 25 Jul 2025 08:46:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcN-0003bm-3j; Fri, 25 Jul 2025 11:45:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc4-0003O9-ET for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:42 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKc1-0002U3-K6 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:35 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-60700a745e5so4816165a12.3 for ; Fri, 25 Jul 2025 08:45:32 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500ad286esm7112a12.35.2025.07.25.08.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:25 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BC7DA5F8ED; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458330; x=1754063130; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7g+EQl4FO2y9seoDYtW7fldlHVS7rtc0zlRHDP7pw3A=; b=QWU3yvlUZc38sqUvVp3K1sFOC/IFtG+UKxgQGf0bqZ+fAftF+8b0zeulO76mjsZSVg K4W0p/H9mWrrOoHhRiDup2FaUC6VPo+08aZDjFK7djBFgO9kn1vJcqV4BefA2HmHQUGa GQVOWlRB/vFNn7H2ZeHjyGw8gEgoM40HlIH57tO7OOcrKlbaENDRCkqGdjaSY88y9j/i +zNb1gea/DqX0YLIi7UXkEGmDgXLNh8/STcUO9fWzeOKbFVSSFt+94XO/caqDHJVRewG lvzNAIaQP8ylW92n6qGJZRDR8bw8G4DH4Iwc5jLjB/64HBDzcOAlRjx8d74nFhlV2eBI yg9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458330; x=1754063130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7g+EQl4FO2y9seoDYtW7fldlHVS7rtc0zlRHDP7pw3A=; b=nGrpBod+BQc8iPjUfxeTn3JGUUDR25A9S5sc4bY4nj7ju4RXlQTHI0MaQBp5PGTcrC hH0XnZFlwuWccG2RPCc7Ii1wRuD6LxlKWCE3n/xtWmET3WXFp7TTHDoNZVLSGsryZpU+ tWWTv8OVxB6DUWFwSFTuXflNgf0T4lSsS5ShNg5F5YfPaO5InISlzW4EVKbt19M00H8v nffqXNNvdcjLoyku023be6qV4dNIz7vr7JR05tOfndDuEH79wW1WCU6V5rAi6u2MMY3X XqJhItOeV01m46lTja9kFX3oDx1fGKfajzcfCdF8xbPL+v0iGCsFqCWsWZ+dy88iXyNR Ucvg== X-Gm-Message-State: AOJu0YxO8ybF7oesK3Pa6H0MZ5coV5q62Nn/pn3e9l3lQkjUI416olXI uZJfXYnnbqMYjYpASZwpd0I1BxPnaVhRLLyCZ/oqwMBY11UjMJnDiiyp6Yy9itn4+TU= X-Gm-Gg: ASbGncvHLCAqiTtAfgnMv9i5SiCeNV7j49V1qMd+twB7CY8jgIHp0WLztvGLTI8Fufk GN3qeGCjnTQPlzRQOixITHAjvXRkAlJDoQW2a3KC7O3VlSJRPpe/lm7gnsT3UKcJCqSUkKoWo9p KQK5NMEAi7Z65BuKAmKI9/LuMSTd3r975tsol1FzVsOqIBIhdv5hgCHjQ/bsWb5c2zOKr6I3GiW l8RYv/quwWCRCTcL0LSZ6j+OaJZBkSDX8l55iRYQOlPCHxpPBHiQffQREJUNcK1zy2VO97CQZjL S3At0X2kVSJHAl4FNdAHZRgu0QJsH7j21Hyt1X0yCothjmqGIJfVwSHMeJfPJRnpw2llmuytLd6 enR3jqAa5A0vOQ2XPdGdJ4A4= X-Google-Smtp-Source: AGHT+IFN2pqk8ejQbfoRSTG+yahE5WGO13sjEFuibdnT1MdF0LGYtgsOYS2eVTnaMU9rfBMeAu4dgw== X-Received: by 2002:a05:6402:50cc:b0:602:1b8b:2925 with SMTP id 4fb4d7f45d1cf-614f1dfab00mr1986895a12.29.1753458330238; Fri, 25 Jul 2025 08:45:30 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 10/14] configure: expose PYTHON to test/tcg/config-host.mak Date: Fri, 25 Jul 2025 16:45:13 +0100 Message-ID: <20250725154517.3523095-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458368762116600 This will be useful for making $shell calls to something more flexible than the shell builtins. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 95f67c1a827..825057ebf15 100755 --- a/configure +++ b/configure @@ -1800,6 +1800,7 @@ echo "SRC_PATH=3D$source_path" >> tests/tcg/$config_h= ost_mak if test "$plugins" =3D "yes" ; then echo "CONFIG_PLUGIN=3Dy" >> tests/tcg/$config_host_mak fi +echo "PYTHON=3D$python" >> tests/tcg/$config_host_mak =20 tcg_tests_targets=3D for target in $target_list; do --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458394; cv=none; d=zohomail.com; s=zohoarc; b=huMzY0Xg4HHOAnD8ype/raVFKj54kjYGTmn4qT7Bi0UGhRAuvvnedafoys9A3wLKsS4H/Qg7WuIzN3lFTC1lEGBY/6PNOZALDRrvYP8IkW0Ph0wOrOD+kMSFZ42KUhNHJE6Jaxwma2IgQ82vadjBZ5bRyYlN5HbiCEaOybDCDgc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458394; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=16xfUtbC6UzI1u4ODCUmMfcCCqi0akC8LfMOrHCPnys=; b=nPe831E3oMN5G2F3QS8v9vEbRLUEAivT+nST4Tm2b1KRKYkdzC97hdGOqSlQ0WxdyUE+qTOarMScteMLxv5HABXP9DJIx8CvtctqtOdD1Zwz1yffTtvXK0HGLtX6oEQElhKjHbMK0axUCDhzKaAne/nr24J+hGTKmSpaXN51IYU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458394726270.2573166658975; Fri, 25 Jul 2025 08:46:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKci-0003qC-Ge; Fri, 25 Jul 2025 11:46:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKcL-0003aY-2K for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:53 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKcI-0002at-5E for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:52 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5550dca1241so2036040e87.0 for ; Fri, 25 Jul 2025 08:45:48 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500add92dsm6710a12.52.2025.07.25.08.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:27 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id D5ACD5F8F1; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458347; x=1754063147; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=16xfUtbC6UzI1u4ODCUmMfcCCqi0akC8LfMOrHCPnys=; b=jBOcKR6PsOLuO2WACTkjRCBEUXa6O8JuvXAtWeNeL6/g6WjH59fD5YrvHhA3YfJoq0 9oarqdzW3F/fSEYKgE+LuHDHsy7bCHiZQoR3clBr9sc3OmcGBvSrIebJd6F3QBHxkUn4 rQ9neK/Ya6E/APtQKlgx84RDaZkv14bdmzyIUiklTmI9nmzGbk15QJH5EgzVGUc6Ox/L xxoJZSEsoqaDYEJU7eVOkGqUmP0cYEhYTC5rb05zugxdMtPVlEAU8Vw5lAdcEyDWlcjC pCcNvEKV57ozUU+kPXxwCFl0t47ww9SuVx0prR8vYWXd5U1RLdJl79N7VV417xJHt/Kt fICg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458347; x=1754063147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=16xfUtbC6UzI1u4ODCUmMfcCCqi0akC8LfMOrHCPnys=; b=hbxnKhJVZNCd/PYTfYU3NgdExxGvGilreKrkPOp9wHCBHOF941KCoLP6dOcUdWUYAH iVF/MKPC+2pcz9FtoxlimkF6jdrGKqliaFLEUmfOQbABTv1NyPbX4lSi7JXBWsGOCJQL +RHtASMBII7FU1whfpn2iVsQ0vcA7XPMXdeuGOxZ43SFHsNMI+rjoaeYmwt6pHQ4T1d4 9illcll/HUdlmSsibPP9QZWuYDNdX7hkrx+MbA55p9xY/4XIFKOq4Df1jjDT1/u6Lgdb 0XGyV9csHnoYkv4fdklH8rBLE4ih7Pn85gXDH+UYiudqy2GARPfs+UjV3eFB8pSOxDCI zR6A== X-Gm-Message-State: AOJu0YwOkbUs8/5aXxfJ2T/dfChCGNHXOCW8lgzYolEfUQEf5XSGTivr HmNh3/Ysk7I5sq39TPJdlpPV1NhorWN9oJewKZp31ZA2SsleNSjm373A1tW2z43kX+jgkZapz9n 8zfUx X-Gm-Gg: ASbGncuGIOOc/bEGjFvMhUVkaawgY5l+zs+3xZI6JFsKVSY0uV9Ldw6TkT3wfBxIljj IqhHKVO9viNZqed7g3ZXrvLqmPX1fD9pw0xBQpJ90qpCcKE4hNEH3+43NRw7Hq6doupejyN5bAT h8eOsSd9A0sxzxQv9jfsx/YyAmfTn+maTY4WaSenLUcBB8FU/vfenVdO1UBXbLkTQGIaylnEHjU Ho/zb5it2rHrZX9wC4IQ254cultBGB+6UzC8M0EevbXLTpcoA4QyQfqD4BLwRHGCycxDuoemuCU sz/QkCP7t669x2jHaSvven/g0IHFhiQZlSxFRbJCLAgioPsMs8CBIBKVS6J01c1zJI489uQ5iFm Am1X3I8nZKAwFXlngz3hds/o= X-Google-Smtp-Source: AGHT+IG9HAC5+3xvsSdgH7ALQJn52Q2ZEznMpmcmtBfv4SAzRmtVNp0mY12l8JpU6BhvbjFIVNHytA== X-Received: by 2002:a05:6402:13d3:b0:5ff:ef06:1c52 with SMTP id 4fb4d7f45d1cf-614f1bd8c22mr2536819a12.3.1753458333402; Fri, 25 Jul 2025 08:45:33 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 11/14] tests/tcg: reduce the number of plugin tests combinations Date: Fri, 25 Jul 2025 16:45:14 +0100 Message-ID: <20250725154517.3523095-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458395298116600 As our set of multiarch tests has grown the practice of running every plugin with every test is becoming unsustainable. If we switch to ensuring every test gets run with at least one plugin we can speed things up. Some plugins do need to be run with specific tests (for example the memory instrumentation test). We can handle this by manually adding them to EXTRA_RUNS. We also need to wrap rules in a CONFIG_PLUGIN test so we don't enable the runs when plugins are not enabled. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- tests/tcg/Makefile.target | 23 ++++++++++++++----- tests/tcg/multiarch/Makefile.target | 8 +++++-- .../multiarch/system/Makefile.softmmu-target | 11 +++++---- 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index a12b15637ea..18afd5be194 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -173,14 +173,25 @@ PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ # We need to ensure expand the run-plugin-TEST-with-PLUGIN # pre-requistes manually here as we can't use stems to handle it. We # only expand MULTIARCH_TESTS which are common on most of our targets -# to avoid an exponential explosion as new tests are added. We also -# add some special helpers the run-plugin- rules can use below. +# and rotate the plugins so we don't grow too out of control as new +# tests are added. Plugins that need to run with a specific test +# should ensure they add their combination to EXTRA_RUNS. =20 ifneq ($(MULTIARCH_TESTS),) -$(foreach p,$(PLUGINS), \ - $(foreach t,$(MULTIARCH_TESTS),\ - $(eval run-plugin-$(t)-with-$(p): $t $p) \ - $(eval RUN_TESTS+=3Drun-plugin-$(t)-with-$(p)))) + +NUM_PLUGINS :=3D $(words $(PLUGINS)) +NUM_TESTS :=3D $(words $(MULTIARCH_TESTS)) + +define mod_plus_one + $(shell $(PYTHON) -c "print( ($(1) % $(2)) + 1 )") +endef + +$(foreach _idx, $(shell seq 1 $(NUM_TESTS)), \ + $(eval _test :=3D $(word $(_idx), $(MULTIARCH_TESTS))) \ + $(eval _plugin :=3D $(word $(call mod_plus_one, $(_idx), $(NUM_PLUGINS)),= $(PLUGINS))) \ + $(eval run-plugin-$(_test)-with-$(_plugin): $(_test) $(_plugin)) \ + $(eval RUN_TESTS+=3Drun-plugin-$(_test)-with-$(_plugin))) + endif # MULTIARCH_TESTS endif # CONFIG_PLUGIN =20 diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Make= file.target index bfdf7197a7b..38345ff8805 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -189,6 +189,10 @@ run-plugin-semiconsole-with-%: TESTS +=3D semihosting semiconsole endif =20 +test-plugin-mem-access: CFLAGS+=3D-pthread -O0 +test-plugin-mem-access: LDFLAGS+=3D-pthread -O0 + +ifeq ($(CONFIG_PLUGIN),y) # Test plugin memory access instrumentation run-plugin-test-plugin-mem-access-with-libmem.so: \ PLUGIN_ARGS=3D$(COMMA)print-accesses=3Dtrue @@ -197,8 +201,8 @@ run-plugin-test-plugin-mem-access-with-libmem.so: \ $(SRC_PATH)/tests/tcg/multiarch/check-plugin-output.sh \ $(QEMU) $< =20 -test-plugin-mem-access: CFLAGS+=3D-pthread -O0 -test-plugin-mem-access: LDFLAGS+=3D-pthread -O0 +EXTRA_RUNS +=3D run-plugin-test-plugin-mem-access-with-libmem.so +endif =20 # Update TESTS TESTS +=3D $(MULTIARCH_TESTS) diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg= /multiarch/system/Makefile.softmmu-target index 5acf2700812..4171b4e6aa0 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -71,8 +71,11 @@ endif MULTIARCH_RUNS +=3D run-gdbstub-memory run-gdbstub-interrupt \ run-gdbstub-untimely-packet run-gdbstub-registers =20 +ifeq ($(CONFIG_PLUGIN),y) # Test plugin memory access instrumentation -run-plugin-memory-with-libmem.so: \ - PLUGIN_ARGS=3D$(COMMA)region-summary=3Dtrue -run-plugin-memory-with-libmem.so: \ - CHECK_PLUGIN_OUTPUT_COMMAND=3D$(MULTIARCH_SYSTEM_SRC)/validate-memory-cou= nts.py $@.out +run-plugin-memory-with-libmem.so: memory libmem.so +run-plugin-memory-with-libmem.so: PLUGIN_ARGS=3D$(COMMA)region-summary=3Dt= rue +run-plugin-memory-with-libmem.so: CHECK_PLUGIN_OUTPUT_COMMAND=3D$(MULTIARC= H_SYSTEM_SRC)/validate-memory-counts.py $@.out + +EXTRA_RUNS +=3D run-plugin-memory-with-libmem.so +endif --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458402; cv=none; d=zohomail.com; s=zohoarc; b=BZT+9sQ2gRm4Z204+aBWjQ2qFC9Fti9yOFuf6Jz9/VWcDnLFJOA3E5rhSPETdltHNyNnxXbIvgicYy3sTlNd9ONfT1H+c39JtkUV5WSUEoNQxTynyIgWIhDmS4jQww1K4tyTUNJ9kReKiW6fQQ11A7OG9bPMwRiDR9tgBbw+vFc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458402; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vi6txes3Cym2c47zpRf6J2fLu3c8dV2yAjdnOgZrKq4=; b=HLk5KeRzyegen/zo2fyp1up8JbzYko0CpwBtD1AeUNQeTxnPvm0sgW4HzxEf3HBCPhW41YyEoXgRSQE6hnY8JlANe88vHCuITFouSpKJPXGZk/VOCGekrFu7Sb5UGvmzb6E36bNwJDwyp0u3IuCwH+SoAs8AG+9E1bNi+HQDL8w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458402333303.1463318423498; Fri, 25 Jul 2025 08:46:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcX-0003gd-GI; Fri, 25 Jul 2025 11:46:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc9-0003PR-Gr for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:45 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKc6-0002W5-7S for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:40 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-ae0c4945c76so316873766b.3 for ; Fri, 25 Jul 2025 08:45:36 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635accc38sm8360266b.114.2025.07.25.08.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:27 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EB1275F8F2; Fri, 25 Jul 2025 16:45:18 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458335; x=1754063135; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vi6txes3Cym2c47zpRf6J2fLu3c8dV2yAjdnOgZrKq4=; b=KGCccPTo2xzJVLLPYjxbP26nAoj/1J6fJ90OqkWjnndGMsGmonWrp68SDFGyxGdD9Q bs8N7RQaP9dmpDGPqpX8/DiakVeVH9tgjtZGxjpqS9SKQv/qFoiIGoGO0un6upYTFujz IrZtqhbOC4u0fwanACq2U1vhpuPZRSy5vj41m5D7vXb6KF7xurBIuCYTYUEz8W4Xadpf hOAv86jnyQda7ruOXGjW0UFHSQto7Evo790YIwWw1DoYYDKFOXZdCfJMr3/OWpD6KN11 GJJfVecIVCyQW9RJjaYOXkcSCS/cSuqNwzZAf7wDIwYoGgfkEyos1gyLralrfI6IsHuj CfEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458335; x=1754063135; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vi6txes3Cym2c47zpRf6J2fLu3c8dV2yAjdnOgZrKq4=; b=EkByOnFIxW4Yfoz7VGwRQ4WuScT2uCp51Fo1MS9sOUKsnybmmIGevHK1W81pcLlysK xGaJ/e+mbnBU45QkkD7cyTbLSlWKvT59sJJ5eQn1tSUoG8rXOQ7t5En7HARJPyHBGTy+ uGbUL9Z9hv3SIzXRnMXmfdriOO+toFTjWfXbrf8SbiNgwcEeTvOd4by9Biikmj8npkQt evAUHcsEQbrjHqtduVJ6/xLYyZyxnyyrNVBo9PwhWtLHQW7no0QDE47CMD5bfXAYZj5z bgwTQbSVOQWl0N1FS6IhwDxFNp9OgyI7KsAqnIq4UllRSy8ox3kE1Ct1LFL7seqQdlxj voKQ== X-Gm-Message-State: AOJu0Ywv59eJEUlLdMiDPEsk+hE+3Nk57m9SrUVXqcbYBMUF6UvgnPgz sogg6jPo3xSRWA/bkhzcvQW+CDtov/H14QMs5z72684HYynzF9fi3rbxJdxLvlQlg7c= X-Gm-Gg: ASbGncvmJo4I7p0QsXuMTSreOip6Xcl+JHw7P8y+YFHvfIY2WPi8AOikgVKn2kI+35/ PhkpJOgmE1cDWy+t6MODBF/0Clf351sejohfHI+KBWAxeJmY76COhnajq1li38lllFSuiwfL6SN Pz1fMDz8buI+/oA2JFDggAYm0zd8ADq78Sj7PzMXHh6olgcDInpTH99Nhfkpb3LAkPUNibiVfRo 8crvSHqXAgYzMT9hi4gkf/A2QTwiTUvODCs2kyOgHEfpmERFIqrVEPsEqvCLggA+fSuGS1W2DVl ++Pxjb50Ms3Pc/x8MGzIpQw3S10lCwWtEmuhctbW/exTtTn+Eka9NqVJ0UHdKVFuUyZkZhKj47G KLlhl1ENAD5kzlarQJJYHRkA= X-Google-Smtp-Source: AGHT+IG8U6FQ6Ft2GyqVqXMTpXIqWg+4xsErLRA+yMKV9WbS8m53Tr1MijT1QnXnpa6NB90o7oRQkw== X-Received: by 2002:a17:907:971e:b0:af4:f3e4:50f8 with SMTP id a640c23a62f3a-af617afbdc2mr300178266b.22.1753458334843; Fri, 25 Jul 2025 08:45:34 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 12/14] tests/docker: add --arch-only to qemu deps for all-test-cross Date: Fri, 25 Jul 2025 16:45:15 +0100 Message-ID: <20250725154517.3523095-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458403272116600 If we want to build this container on non-x86 systems we might not have all the cross-compilers needed for the ROM blobs we don't actually build. Use --arch-only to avoid stalling on these missing bits. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- tests/docker/dockerfiles/debian-all-test-cross.docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index 8ab244e018a..5aa43749ebe 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -15,7 +15,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ apt-get update && \ apt-get install -y eatmydata && \ eatmydata apt-get dist-upgrade -y && \ - apt build-dep -yy qemu + apt build-dep -yy --arch-only qemu =20 # Add extra build tools and as many cross compilers as we can for testing RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458948; cv=none; d=zohomail.com; s=zohoarc; b=bWzUID2CMWphY0UYCQvr+Xd+dNr4OYD+ylORePOMlMQmw+8fnH8SGs4Ci7tLJ7ouWRwKc/8owdIXoXmay9zcHwdZLpdzPy/9TpatNUaSmg9kzEA+q4r2CM3eyjR+CCKZ2byHt2bCGhIBRNA++1IcS3K502X03GqV44HUzeBihj0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458948; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=WrulWaSwIxFGytiImL4H5+DMK7ozTuMqwCSA3RbLeNU=; b=e29ZCRsLzOOVvb5BtxkJ2KkBHXke+tCpsP6/ievCSodklwIszfs9mzQGdraEN018ym8uC4mzCoqyVYLnq7LBpLBp3k12qnyt+4cXazUjGA/I2viKtDJGJ7o/bYw8peBl4KZgnVURZKP8MzuBPNC3a3CB6fNUlXpNi4hgkBaiKZ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458948332507.2459599088347; Fri, 25 Jul 2025 08:55:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKlc-0003hm-SM; Fri, 25 Jul 2025 11:55:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKjj-0001Vg-Ez for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:53:31 -0400 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKjh-0004W7-A3 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:53:30 -0400 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-607ec30df2bso4340668a12.1 for ; Fri, 25 Jul 2025 08:53:28 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500a581d7sm19142a12.24.2025.07.25.08.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:53:24 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0C0005F8F3; Fri, 25 Jul 2025 16:45:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458805; x=1754063605; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WrulWaSwIxFGytiImL4H5+DMK7ozTuMqwCSA3RbLeNU=; b=pzdta49QQ8RobqPB88GlhxHIQFrelR3eSmut/X+O8vJZN0I3ffjYEth6KHSdvo3nzL kXXbtRG+oMqnWRZ0C0xsNZGceYsaivhsjf12ymtGE9utvwinG4nzD9c0sTEM/dqeGef6 es904AWWX38UYbR+eoNoRw94lkaUJwemtBT1LtJtPJeDSNwOhP5wR4BX0KxQAaTHVjMl RzaZpk4A67gDXWQoaAreIwlKD838egiYFNjiNEI+fFtYptfKmvUMLCbsrAwYAKusCVKw i6W8jPyiXQHyC3MFRFlaZYHkRNGWe4a07jy7DE2V1yrM0I0EAQx6Z/ubWPZvRRfntm0s +hUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458805; x=1754063605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WrulWaSwIxFGytiImL4H5+DMK7ozTuMqwCSA3RbLeNU=; b=jyI8jhDBxn6ZOSpkHg9QWTu4aCS9EiadLkXsmDqImpBqogdvGnuGVueYdXvtKpGwae +u+zxGBRijSCjdoNhK6+lZ5F7XZKmWhByselJejhD29vzpuIhP2P/5vs5WMtdwOgXLdJ vZy7Rd2j1cTopyQKdUpfDwAA8+mawS3il9HSnTe5yaLxHYR4airdf4AQ0KpzbQtrLxKL BNDvsexJJVac0QcMBZVF6j1MmecYOyxuLJCi/OKv2/1KodvHR7rL/g5DoRyg4ZBzkYNX CamRuZ47QacGslGNi6RQLQBZpxKmVsggaaYa8IvzfGf0pPj1/Hz1PX5LR0PxX7OivWTf 2ffQ== X-Gm-Message-State: AOJu0YxWM/BgepHKTMRCKjDd+pqUXNpKcTZFZDNMERDdcNYdLfFkPS5p r1Mty9FG8VjCNZs+XurQoJGeUMtrUHnWdEMQeSZ163hliUCbpAkEXebfKdZrbEFsmmE= X-Gm-Gg: ASbGnctJ4fFRfk2BmtH9ugsKe9k9j4I21TcurW9F07Q412KxV/fjp1AnYP2ssg7Z8tz vYRA88wu652njjtktF0RySfgvVfC1JT12J28HliM1wf4YdcNHO+uWhgX9etlowLByDK+/VSyTmi 9DJCkGMfNsIGjj4b8DpXD+70iuntRphHyJ/apkGCFONiJ6FctXU9hDjbS0SMoa1mAjOOLlbKraz VPlsNuySu+XbNgu1PlhdNJ1asmyzMovcGXpXRqzrsKMCMusZJDJEuDKGlw8dgMPYAE7L+ESRIO6 r9uPxftk4/LGADTzoPub9RoxdwM9D8UX4tixOfHtmpOFNTTklhZldvQvpNYpn6i91d213EQcOIB Yn8BmcHrGc5g6RMR+BZw4ZiE= X-Google-Smtp-Source: AGHT+IFF3hgbpssAvateYaMu3GTSDq8Qr551LSd7GjpC5ioMH2Zj0LJ+6Nxct/igeonmgdR4xM2OVA== X-Received: by 2002:a05:6402:848:b0:612:a497:5042 with SMTP id 4fb4d7f45d1cf-614f1f29c6bmr2537149a12.27.1753458805000; Fri, 25 Jul 2025 08:53:25 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Manos Pitsidianakis Subject: [PATCH for 10.1 v2 13/14] tests/docker: handle host-arch selection for all-test-cross Date: Fri, 25 Jul 2025 16:45:16 +0100 Message-ID: <20250725154517.3523095-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458949152116600 When building on non-x86 we get a bunch but not all of the compilers. Handle this in the Dockerfile by probing the arch and expanding the list available. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e --- v2 - expand all arches in a single RUN statement --- .../dockerfiles/debian-all-test-cross.docker | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index 5aa43749ebe..ef69bbc8a51 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -23,7 +23,9 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ bison \ ccache \ clang \ + dpkg-dev \ flex \ + gcc \ git \ libclang-rt-dev \ ninja-build \ @@ -33,16 +35,11 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ python3-venv \ python3-wheel =20 -RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ - apt install -y --no-install-recommends \ - gcc-aarch64-linux-gnu \ +# All the generally available compilers +ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \ gcc-arm-linux-gnueabihf \ libc6-dev-armhf-cross \ - gcc-hppa-linux-gnu \ - libc6-dev-hppa-cross \ - gcc-m68k-linux-gnu \ - libc6-dev-m68k-cross \ gcc-mips-linux-gnu \ libc6-dev-mips-cross \ gcc-mips64-linux-gnuabi64 \ @@ -51,18 +48,25 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ libc6-dev-mips64el-cross \ gcc-mipsel-linux-gnu \ libc6-dev-mipsel-cross \ - gcc-powerpc-linux-gnu \ - libc6-dev-powerpc-cross \ - gcc-powerpc64-linux-gnu \ - libc6-dev-ppc64-cross \ gcc-powerpc64le-linux-gnu \ libc6-dev-ppc64el-cross \ gcc-riscv64-linux-gnu \ libc6-dev-riscv64-cross \ gcc-s390x-linux-gnu \ - libc6-dev-s390x-cross \ - gcc-sparc64-linux-gnu \ - libc6-dev-sparc64-cross && \ + libc6-dev-s390x-cross + +RUN if dpkg-architecture -e amd64; then \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu = libc6-dev-hppa-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu = libc6-dev-m68k-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-powerpc-linux-g= nu libc6-dev-powerpc-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-powerpc64-linux= -gnu libc6-dev-ppc64-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-sparc64-linux-g= nu libc6-dev-sparc64-cross"; \ + fi && \ + echo "compilers: ${AVAILABLE_COMPILERS}" + +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + ${AVAILABLE_COMPILERS} && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' = --show > /packages.txt =20 =20 --=20 2.47.2 From nobody Sat Nov 15 07:40:51 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1753458439; cv=none; d=zohomail.com; s=zohoarc; b=UDbXsVM5fS/eZW0wFGqcfv/9qtYM7Qx5cB26+/WgUJSpGfpmQxkIBiDnw0KGPyay43pnFIM686Yt65kmIFl1OqnNfpL0KpwA7J51CHS+Y2Q9LoX8fu64C3jQunIvOZnC7xumWiH0Wbjw114Avzj9mk+VJDds05DdbpJQQAIPm8I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753458439; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=eRnkauUSUZiBGHEJzQ8OoL56djZh0Rp7k2gsR3adJGs=; b=bx1eN1zdre1/z5Ss5s9PlaCZ1j80YXZ2iTiATfQl15fDAxjhoSYsSN1nmYswxSPeSdQRrkYbgPLAVwwk6knA6F6tvcswfLDh9fqUeWNA4OpzUh5mEWDijzfeqMSprE8dGGGlR8fWqb3D79AvxUAP+kgFUEFa1r9p5UrYCij66s8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1753458439436780.4878633802166; Fri, 25 Jul 2025 08:47:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufKcb-0003lD-VG; Fri, 25 Jul 2025 11:46:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufKc9-0003PQ-G0 for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:45 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufKc6-0002WL-Ay for qemu-devel@nongnu.org; Fri, 25 Jul 2025 11:45:40 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-ae36dc91dc7so365106666b.2 for ; Fri, 25 Jul 2025 08:45:37 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af63585ff72sm10393066b.20.2025.07.25.08.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jul 2025 08:45:28 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 249205F8F6; Fri, 25 Jul 2025 16:45:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753458335; x=1754063135; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eRnkauUSUZiBGHEJzQ8OoL56djZh0Rp7k2gsR3adJGs=; b=o7lSNHgCnJqR/yGNxNUaJz3ZmD3B+30LpBnBWJdCW9wLcJiLgULtAxf/XDzpcoYrgC Zbvmxue94jBVlC6MzJ9qU56/yKJBnEZxmd4nAoQrpLCNfdc5PVj3IovaggnWJX3pd5RU 8tDoqTY0Zqt5dVfVrzXyzfdgY8zm0/UHunZn64jckaHZ1ZPY8pFWq3CgIJ8CkcS/1h7S TFyC0UW+BUDrQe3YqQ8fJjWy7cf1wPBrgKJGzmLttnbRx3bTuUBPj40tFzPDAw2gWaQk Cwm2Q1AYSnE19jeRT7WjeY3fyDpAww9UyLcqUjp+xzHrWcRwVnuvZs4dY3lJvK/pUI7C dvew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753458335; x=1754063135; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eRnkauUSUZiBGHEJzQ8OoL56djZh0Rp7k2gsR3adJGs=; b=fDA6fj9LXekHbLzgMzpRBSvycqvp9at5NlTPKliZSISuQhFR5DHe/6edYc+SbcYBpc aFDbOp3iWEDY7gLvzh6lQvokrXSmR7KOzryuBwZ6LeL1cNgRVQgi1q0Uv6n7mDXagU5D q2w1kgdfEBAYkqDNzg8mDOkL78rrJeP+y3ZzAQ3OBzLIbnGabPWgoSmthyxu+3CdpIKt Sv705nHvnfPBxAbZ9rhu3T7U3/PI5bkpgcrWXAAGYxQemfIk9ZYKxEjs0MIdI70DJ1sF Kc8c0tujuluDlN+gjg7elr/8DnShgDECxjonLnlI70K/+uLUs7ivjKmKvFePLNvl53Mn 4auw== X-Gm-Message-State: AOJu0YyHvQBYpbaX8ohTd7wH1mP2EhM6DXsqJTS9k5tW4yWBsPOMJ8jp GBpNKwtH32rmP4Eron4P/cWxfXp2PnRsPezrryUdnDIqkwzOBcUyUySvgXFmB5avbVw= X-Gm-Gg: ASbGncsGn/rRyemfTy8TTDl9BWOw85NFGB830k7FXvO1t1sgXYaD+XPguooOoMN8E84 4ZvgjuIhOZj5XjZcIWgpJ9CD3rYByNKxs2J7ct6Wcr2dHJhkMj8pm5YRA/wYHLRNg2K3SBTR7Pk DNxYKXzXBg7+BFYvPAhDTI90+qu0D+w34E9fu9EQDhSDnvG4TAAtwaCQ7gGAkSC7lcA4nuWJzqT wu+p+HWtAo7+zmvVlcKwGzwU1Dx/ztaJdUIx6joMj9AozMn/lMctAknkRUxvFmuwHdTVJosiPoz 5SSkWGj8Wqhpv5lVBO5ycH/mdJYeDm/eZd0BVdAb1M+PLla+/9KaVrQ+0kkpD2KBxkvjsdAjD/g /IyySGUv6lR8DT/BTdrMy3i4= X-Google-Smtp-Source: AGHT+IEl/y8NmmCCInVAZnu59MLJJo7FEdlvtI/VlYR3CRfgvntS2fa/kLIkMfIqFgaXMzlYJ5GQhQ== X-Received: by 2002:a17:906:794c:b0:ae3:60fb:1b3b with SMTP id a640c23a62f3a-af61e92250bmr306113366b.58.1753458335324; Fri, 25 Jul 2025 08:45:35 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH for 10.1 v2 14/14] tests/functional: expose sys.argv to unittest.main Date: Fri, 25 Jul 2025 16:45:17 +0100 Message-ID: <20250725154517.3523095-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250725154517.3523095-1-alex.bennee@linaro.org> References: <20250725154517.3523095-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753458441713116600 With this we can call the supported we can take advantage of the argument the module supports: env PYTHONPATH=3D/home/alex/lsrc/qemu.git/python:/home/alex/lsrc/qemu.git= /tests/functional ./pyvenv/bin/python /home/alex/lsrc/qemu.git/tests/functi= onal/test_aarch64_kvm.py --help usage: test_aarch64_kvm.py [-h] [-v] [-q] [--locals] [--durations N] [-f]= [-c] [-b] [-k TESTNAMEPATTERNS] [tests ...] positional arguments: tests a list of any number of test modules, classes and = test methods. options: -h, --help show this help message and exit -v, --verbose Verbose output -q, --quiet Quiet output --locals Show local variables in tracebacks --durations N Show the N slowest test cases (N=3D0 for all) -f, --failfast Stop on first fail or error -c, --catch Catch Ctrl-C and display results so far -b, --buffer Buffer stdout and stderr during tests -k TESTNAMEPATTERNS Only run tests which match the given substring Examples: test_aarch64_kvm.py test_module - run tests from test_mod= ule test_aarch64_kvm.py module.TestClass - run tests from module.T= estClass test_aarch64_kvm.py module.Class.test_method - run specified test meth= od test_aarch64_kvm.py path/to/test_file.py - run tests from test_fil= e.py usage: test_aarch64_kvm.py discover [-h] [-v] [-q] [--locals] [--duration= s N] [-f] [-c] [-b] [-k TESTNAMEPATTERNS] [-s START] [-p PATTERN] [-t TOP] options: -h, --help show this help message and exit -v, --verbose Verbose output -q, --quiet Quiet output --locals Show local variables in tracebacks --durations N Show the N slowest test cases (N=3D0 for all) -f, --failfast Stop on first fail or error -c, --catch Catch Ctrl-C and display results so far -b, --buffer Buffer stdout and stderr during tests -k TESTNAMEPATTERNS Only run tests which match the given substring -s, --start-directory START Directory to start discovery ('.' default) -p, --pattern PATTERN Pattern to match tests ('test*.py' default) -t, --top-level-directory TOP Top level directory of project (defaults to start= directory) For test discovery all test modules must be importable from the top level= directory of the project. Suggested-by: Daniel P. Berrang=C3=A9 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/testcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index 2a78e735f16..5caf7b13fe3 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -249,7 +249,7 @@ def main(): tr =3D pycotap.TAPTestRunner(message_log =3D pycotap.LogMode.LogTo= Error, test_output_log =3D pycotap.LogMode.Log= ToError) res =3D unittest.main(module =3D None, testRunner =3D tr, exit =3D= False, - argv=3D["__dummy__", path]) + argv=3D[sys.argv[0], path] + sys.argv[1:]) for (test, message) in res.result.errors + res.result.failures: =20 if hasattr(test, "log_filename"): --=20 2.47.2