From nobody Sat Nov 15 09:50:14 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=1753354800; cv=none; d=zohomail.com; s=zohoarc; b=XjOMGBl7FcN0ms6NDumiZWwFHiNVpdF8A141JywsNzXzT191xLepGPJzs//ULqmUJqvzMxplf7GljIUefBwe2hOQ8hUhj+JR70tqqfrZOitertx8HWV5THp9HMY0qJhn8sUEkRCFozwjGBrmKTkIl8E8IudlRdXZOAeOPw5nCiM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354800; 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=2j0rreVKxKZW1/bQwPMyAcXvrAutpqYSKulSVnU2qbs=; b=cTzbmCigoo61dqeISZxyCYW+Mum+jKRnTFvApVZRRCOXOrgvv8E9uMDADAm9UnktqrCV5zzndNzUW1Qby3ei4M2kRVgXhIsYRjB4JjGzO9VcGgTOpBHDhaXnBsLLmFnlOHvY9etdwLHiKQk9nSw30kRPZCVDp4hxCI2ePmzpROM= 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 1753354799953638.6615373677542; Thu, 24 Jul 2025 03:59:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetfw-0007If-Tb; Thu, 24 Jul 2025 06:59:48 -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 1uetfv-0007Em-7B for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:47 -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 1uetft-0007xI-DD for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:46 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-607cf70b00aso1743464a12.2 for ; Thu, 24 Jul 2025 03:59:45 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-614cd335f7dsm687680a12.61.2025.07.24.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:40 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 075265F88F; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354783; x=1753959583; 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=2j0rreVKxKZW1/bQwPMyAcXvrAutpqYSKulSVnU2qbs=; b=y8RMqOoz8FwxwDV8nkrHaMgAZvDuSEBerdYNw3eKKe4U83QwWm3xo/iv6p/KF7HMJA K/UeXf94e6feBp/v5QifelSwaCXcKHHhViFV9XtEp5EAv3UkOKIIdwIJw3fKEfV3i8iO v1dcw7VWI5zy5Y2KGqTaZZaiSjeQiK5inTtPvjqsIk4pbjpFxNe7o6+DFWEpgt7oiv89 dji7l1tMoRcCQ+iJ9+KrBhclfBhr7XWT3G0ceRSR0wtFHFFUFUewGfZLevhmiKIaj0rY bpzWj4nzGVjlyrCRfxPGAuv02fyBHThjsThX6Cr+S/O97bhvBdSTBr0S0nO8SJxgyKFe EG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354783; x=1753959583; 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=2j0rreVKxKZW1/bQwPMyAcXvrAutpqYSKulSVnU2qbs=; b=LycK2BDFJke4Il7/SALFY6DfVlxFOfZRpRNZ4MliVt+7Of3ho8IKMkXBUI2i614s9h DgFxg06AkMKzNfua2cb72Gl3jXBjVz19sskKjPm+7DoBUc96Na7uMT++bEQEpAgmpPFN q2q21qKi3PBis8vk/h7XCxsXJM4njIcfyt+3F24gmmiHfDdMxSExOWPBUhfrvVt20oDd D+fQaWYNGkW++dNP+W9supMV+Am7J4ja69Yx1/TxmEl09lcae4xliU13RJoCwaamIIGo McfVCxfJpSZO1brk9GCFUzsdj0l8Hb2x8O4ejQgWKoQ7GJSc9CsR4tdkYvV9w+s+3r3g BOHw== X-Gm-Message-State: AOJu0YzUa5onKdvCoCd0xRuEM0C2YdBBUd4gI4vsmMCW2elzZbGkIReK mcTXqy0PEijtNH/M9q0fHWQwYImjuNdTV63yRmmLWLu3+tlpWUhSjnCtYa3eOJ9/IFc= X-Gm-Gg: ASbGncs+58wYf7PNgAurWsL3XrqRIH+c7UldZaJoF5FrF5vM2mvYTzeck5Q2B9gaOZb SDEV5U8wSaOLq9VRXidUeC3bUc5zTCoGLalQezp9qQomdNtw5TBRKIIy5gAWgm5BbFxaTVfQSNq 8iUa0MjbvfUv96eOFKI1goB/CCfsG50HkHNR1mqXC1REtlqTfBGZr4Yes8Uniq9Xc1bPnIYNOtE Bv3A82yVXHq70MHG/7UaQlKMqSkHKIknW0QNGL5qfYpBgewCCbwkiAmICCumgRKQsQOxmls2vB1 R9AiIyT91/ic6xf5EvzSHkIqza3hqKuIaBphRA5PuY8gaedV816wxBYZUGKbAORmNrPoWos34xG 8T8KbLXMwABy00yFyBdJZp9g= X-Google-Smtp-Source: AGHT+IHcBBiwwQJsfX0ylitwjosvDWDU10CvWCfwM+CfOFK0ZjaRU5KtHE/2uRSMCBQeZJA3ubXndg== X-Received: by 2002:a05:6402:51cc:b0:614:9439:cdd6 with SMTP id 4fb4d7f45d1cf-6149b417f9cmr5139299a12.1.1753354783105; Thu, 24 Jul 2025 03:59:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 01/13] docs/user: clarify user-mode expects the same OS Date: Thu, 24 Jul 2025 11:59:27 +0100 Message-ID: <20250724105939.2393230-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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: 1753354803199116600 While we somewhat cover this later when we talk about supported operating systems make it clear in the front matter. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354935; cv=none; d=zohomail.com; s=zohoarc; b=hQAc3tigTT1cUa50chfq5x55KAsvjKPR7NEHzMDPgMBOsePZ1J3s/4AhBKgeITlyOIB143+p9byIzCLwhbAm049G6LNop34TgJ0+M4tqaoEDJXfKactw9dxl8h3bgj0E9aDS3dSkbAj2rEtfSeGYr+pyEIYv92aK0ysy6gZw16A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354935; 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=Ijkn9pfZaP3ygSP4S1IDLeY5/FVKNxWO7uVgQKZFQBw=; b=E2OETyQ5cwOlNBXSo7k//JS5CnFa3k4uEEazxttDfNX4AirQaKLAJEJBp+84qUKXcjSvvEfv4I+kYoZ9RruL1hWkLr1je+IPZMdfNpsDdsCCMMxpBLC4aaISXKFir74scqCu7N+OB4irw9WQRaZs8KLs5jsjgrkdVD0Z+8RNrxw= 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 175335493495488.85569120452624; Thu, 24 Jul 2025 04:02:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetfx-0007Jc-Fg; Thu, 24 Jul 2025 06:59:49 -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 1uetfu-0007De-MQ for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:46 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfr-0007xA-Su for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:46 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-60c60f7eeaaso1562195a12.0 for ; Thu, 24 Jul 2025 03:59:43 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47f44f1absm95829366b.65.2025.07.24.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:40 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1CF875F89A; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354782; x=1753959582; 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=Ijkn9pfZaP3ygSP4S1IDLeY5/FVKNxWO7uVgQKZFQBw=; b=alcjktwU4hWhGYBnCa7GFK8hPfftxOgqI2pvVRzq6vYS09H9J3NijeSasJEK/RUUqA Cn8DUhU+WpmwWvVVoNPS6LJx/VcIRnFzgYFY0D6mHPl4g99ee1eTexIEMCYcKZ3iWEyI oNH9zHtb9e4cnv303Y3UYdOaApmVHt9P2laJGlbzOoYp78J5Y9aN4UpSNeTRh/ldMicr OTRQi2WjV/JqGyHGpn6nCmX+1gZ3w922js0F/aSKqCp6llssBNRTtRNpIXT5bTfsbbN2 s00H/jU+G9IpiagKfGkv0LSLsjsi8RuuHt8TE063Fu8xa1DemhHS0Q5oKFgiiTyAcXeZ h4Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354782; x=1753959582; 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=Ijkn9pfZaP3ygSP4S1IDLeY5/FVKNxWO7uVgQKZFQBw=; b=TDZ1UUSf2HttkdtnnTc0L/e+8wBFevqrUrc6lBj7kWJzUzoQuX/0locoexLoAJ4TJw 3xUHKSXn4qbDLiJFcZkHmHhNcuzabjlAvOqx3iPNnHB2QjrkEriXj9tpRBEXzqKK0lFf KM6iClGvMbhlsvjnRYHhrP4EBLl71GNuWbuqLc7M0/3Ol65VAUPyikcPVQZvFEe8ymXg 4pXDpHSWpQFpkxW+xDBKuaPo5yPQQCkBoIyL3o6z4x2YpVtaXnA/3D5+MtkmSSl1Ch7j ViqCanXsui1pFhk12CLomkGyriIqku/v5bUhmdMHFiwkpDNyUDq69I+GoNKracpK8V1x bxVA== X-Gm-Message-State: AOJu0Yy0yam0NO3kZsreXZYj26UHaorcRvet+ccLo3SNbfuq7SJ5b7fN dy1prqNTq95GeAYruFcO3vdYBlLvMajfkjV3jbKU7B6KhVjg4sGsCs7sHOBtL6j30t4= X-Gm-Gg: ASbGncuJRRvut9vhWm32pnXxrA2FxURJQTXDPaN7eHdhT6nAldzbjgUqiwSx5QDAJqy Mld8YtfMJt1VeLo7WICtueTbjROnj7pLfAz4qdkxtLEpFdeTW73Q7XyFrYlxwIk1Q8sGq0ddWY4 KWPluFBMHk4js+LN819cWEHdP3aiKc/YsFkdfxeyQFt2sORo8MMAyhX2PSqz47GBUmoAVqzdVPa dPvngQREI7cgBxW3I9BPVrJ1/nljOO1D6d1ZJutIm7/aIoFk0iwHbFauN4ygdXYZ2c6nfOD5cFV UqumUg/rzyk2XP+8HC+a73xDonx+dEE9jwF5FeJrvgq+Zm2oKoHme3UOeztfNZYi2ypRRVn5HQd ffyjF0GO9UhAmr9QH0o98PDP0XEX3TYE6Yg== X-Google-Smtp-Source: AGHT+IGEuRTnqeGpBU7JUIvkB4jwuYb3REEMWYtxG+cc7YuXFN6qU0diwya5c9Eo1GECqLD6NF66UA== X-Received: by 2002:a17:907:97d3:b0:ae3:bb4a:91fc with SMTP id a640c23a62f3a-af2f6b021a7mr598251266b.22.1753354782258; Thu, 24 Jul 2025 03:59:42 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 02/13] docs/system: reword the TAP notes to remove tarball ref Date: Thu, 24 Jul 2025 11:59:28 +0100 Message-ID: <20250724105939.2393230-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::530; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x530.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: 1753354936897116600 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 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354978; cv=none; d=zohomail.com; s=zohoarc; b=fOPzkg8+kCskXNT7TKKg5S7yHlDUFALAg16Qbu2uV1d+DyWYB1fLGCCF2Lp6IhMM36FlshP0kmkFyKWapiD8+Vyed1dcydvtyjKJzoI7MX15vAkEz88Jcehe/8Db7pBUjmLNLlReGso6wEjOKPxvgtGQqDgQgPrk8muWZ3qij6E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354978; 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=PE0ygnCXxcMjKWqLld40Yn+pNBLfsKsnunVdasDUmpw=; b=Iue4f2SPavA/QJbfrB9lyZLp2zwqJ2mjwpVHh/qpe5LkhoOjhxaGLW23+VuAmMxHO4yeZZQcoU4OhOxchg18KxylH6V8j19ofQ3xkEIfpAtUCTcDV+JOMPWIzkg3M+8OIAILsAf6/v+hLNvrGTs4juzTotmNmQHOcoOqvwsOG9A= 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 1753354978335372.8816695106285; Thu, 24 Jul 2025 04:02:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg0-0007Q2-Na; Thu, 24 Jul 2025 06:59: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 1uetfw-0007Hw-Kc for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:48 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetft-0007xO-Jp for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:48 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-ae6f8d3bcd4so157013366b.1 for ; Thu, 24 Jul 2025 03:59:45 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47f44eb00sm92874166b.73.2025.07.24.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:40 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 33CF05F89B; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354784; x=1753959584; 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=PE0ygnCXxcMjKWqLld40Yn+pNBLfsKsnunVdasDUmpw=; b=kPbpRs/v8VmJ2ID7Ph3HotHMRjvpOLF5wVTTI0WnngR2oNIpcbn1oy3EF4CasfN+n+ TXWeMgkFewOu/qsLN5B59IDtbjEPllmolJWEj4SY8kmBs8otb/L5i57ZLpjs/cwGj2ur VIjmKxs2TH2lzlKEYmtObPx07dH4+sa8T+v/f2ztnjrIjcTMPLaPuwxL4bN4ieGHP73H L+tEF6h/Uc3IiD3+nAGPYQOzLy6gvi5YQyVJwIL4o9JSqnvhB+uOoE3OQHsFeolsHTXU PL+2sNPeH1RHZduVBboMDGzyRcJlSqUEn0f9prKWXk7DQaRn9Z9U06FVq2hJjs0hOQpA 1AkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354784; x=1753959584; 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=PE0ygnCXxcMjKWqLld40Yn+pNBLfsKsnunVdasDUmpw=; b=v2VfO30IIUBdQvOWAbmz3eYFvKXQc28YfNxbfcazcS2dllEGdWD09XkEqPvn7PG+Q6 wgByxzpHGi+j1PhGgTQR/65erVMrOU5xCWCXf5vT1TwdKOzIrA/y1wmZygE5aYqgmu7q xsVUqVWu/BYuTwwtrrVryYK12vQ01YcnlHGRlU/VFKLADYpbSIpWlUkZ0JYX0K4S2WAZ wLkZtkqmmOgBD+G+cmRofcLBmm9ms/SeZzJvJo2FHdkUXuo8BmhWi3MzB+xxRJJAs+1K DbAlS9mL+FB4/svAlPbSkrpAzp1cMiwkcIpihAjs6IhVh5qhU8U8AKIC8PRUEYDwiF0g NCFg== X-Gm-Message-State: AOJu0Yxz9aGTLLdTIv3gZon2R3dgq2OjOQ+V8bjmehfMm5OQOgeDKI1M iB/iVpkjk3RRp0D4lV9OuXIkAmtVHNjQavLltDxIMH14CSGjIZGwtrF1rYncTREs+5Q= X-Gm-Gg: ASbGncvVWQ3q69Et825ul8ptoyH7Wi4sVhVXUMkqaov48X6doaRcSWa5OPhfbPuP8OZ hnUSuhhUNdOHBLhv3mPt/UHlf7JoibPnCgyRRQYMwYyyYjWGJw8nLTs1A1PtBhGTqFaT6YWlSn7 V9rIkYGHUVSb8g5TWI7PvSLQhmiOb6ytonJcU/RYW6oCv7jv9hktgFNhbdpF0CzEHedyi3347ep mHr3wRXGOdgABGyv4bjNDqyYO+vM+JFr4PmwH3hBo9BluxfxxG12UuWal2Ocx5k8g3dMCIEM3YB WfNvLYrwlhIUfGOhGkEBAjgor8ucdvN2DFJyZNcQpajSnROSLAtaKY5N08Oj3a5gFzEUKWWclwH SW20VuYk0H7mlKY9CCoOjlzI= X-Google-Smtp-Source: AGHT+IEpe9vt926DfsbFEtvLt4SOFalPvWmbD3v+bJie3ICf4S6I+UGntGrvnIMVEwfsWxEybn28gg== X-Received: by 2002:a17:907:3e1d:b0:ad5:74cd:1824 with SMTP id a640c23a62f3a-af2f865bea7mr619287066b.38.1753354783930; Thu, 24 Jul 2025 03:59:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 03/13] docs/user: clean up headings Date: Thu, 24 Jul 2025 11:59:29 +0100 Message-ID: <20250724105939.2393230-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::632; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x632.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: 1753354979564116600 This was a slightly duff format for rst, make it use proper headings. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson --- 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 09:50:14 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=1753354856; cv=none; d=zohomail.com; s=zohoarc; b=mhQp+RXO6IjJ02HEJkn2V71/k4F22szgW1wPdimYVk/Nhsv0WgiT9gHRlhFKuIdY8J6RVG5hl1MRyNl44FK3SzJVB+kxkAZAc12VTr6mGp8C6p/4yYExh26VP18z4nBeQhMSy5XDt6/s1T1sDldOdFEcpxFDGXjLtiQ/gqE5Exc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354856; 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=7iTbOkoML9iQCshUrP18Abi3U+8iyM74A5UM1y7IVCA=; b=iZqhkWzR+vTKoCqfNaq2j2wKtjOlyo7P3kF0ZJ0uCnaUvtw4NRP7XZcnt/4lFspOqmAZseqQl8VHGaw7tEdMi2KR5Ll14gcmj7A6gIg2p0vgnulxVL6kTr+DBBy7Ww6GdRs4IWGroVwRYCfXo/WP6vbn/sZRNgWwnihbwTU+Ebo= 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 1753354856599983.4470199463951; Thu, 24 Jul 2025 04:00:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetfz-0007Li-ML; Thu, 24 Jul 2025 06:59:51 -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 1uetfw-0007GY-4o for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:48 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfu-0007xp-Hv for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:47 -0400 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-ae401ebcbc4so140149966b.1 for ; Thu, 24 Jul 2025 03:59:46 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47f44dba8sm93964766b.71.2025.07.24.03.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:40 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4AB535F8B5; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354785; x=1753959585; 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=7iTbOkoML9iQCshUrP18Abi3U+8iyM74A5UM1y7IVCA=; b=uY4ILHzJttxc+T5bEmRlz8RPwXK2sUC5RMzDUz1LqMQ5EDX1mf2ba/CFmgAMI0qPoW fnd4874oIkZuuIPWQwWLNDIOQq4fzkMYTDHpwmB/Ca0375ZeJa3KQXTM5+HefMzAO9xd iaX77K5QIuo0k50DEUFx5KMowpdMOXvvKTXKtNNcPl1dfd0ZayDiQYP7fBbmQMBFvepG apwJwSPkhk4MvsLS49JSq2N5f594VHnG70KqVLfroc2QhSVWkJraiW8ZHf/5Z73tKTgg FBVJFQw9S1GyHzgS/rrpM/l2mH5AAA12LBWCKGPStZhR+dEm5lOS3dOjU8jui6qZb3fJ 7owA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354785; x=1753959585; 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=7iTbOkoML9iQCshUrP18Abi3U+8iyM74A5UM1y7IVCA=; b=nEnsVvRTKnVwFP5Pi+Tcb3/OZ41Jd9cNqz6sMPVYhrdwmURYeQbdIPWfmstUucEcCl TF6e+0KOTx2+9DFebBm5m/3BEvTM6dC4U4r2NCYlFCxYrQfahhiCkp+pIZIivyyA/EUH 0Ma8akUR1QVsu2BsLWIGu7JvprsrElbciFOG6Sb3adr8oWN76Ht80+abjaUl+4kfi4KI qno8fC6hhhaMmmlThR6Adf7RVrgb4BIweZFpkLwpsQzHY3CbQ+ZypXskgDqXmr1Argwl +M+u9ypL5x3NFcXcaWK50DjcUKyHbGeiah8s43+170CZLJgj8ZeNYJNuMj8LeROayD/G BiNw== X-Gm-Message-State: AOJu0YwUXZJvC6XwV/Gxvw5xkv1s1bZXP88/W9u9Ns+SZXBlYeHBm3Nd G4+/m2aTpnzdba3tul4+ZyzRum6AupPBcp2Mjob6fItp0IgvvK/51BtWAPqpJzvRmYg= X-Gm-Gg: ASbGncsz4jQhUWcs992wD5U1HYyuit00r0UUcDYthq+hT1e6FfO8da0rflBnmtfCAO2 ISlNcYn5yFnzu/vRXAHur0UCLALxF0U1HTsm6OuWN6jwt8eUhuShp8a5+jzSzfG/5omNJosIDls vZNoFQ6kGQe/bh9amezw1DuO+ZWuGWe+mIxz/RCzrtEwHuqQsbQebUbZdulyzHguSieSdFcj8eB +DDX2IZFiRAVQGi2M+WJTk/uQtO/qaFE/K5TFT1dZdMMoy/3Rg9mZrQfXnMZZl0FG6XhTVJHZ2D HE1aJFB9ciV/MkcgwB8U01Qon/mi4ymqsH786F/W3kWGi9umW0y7DtzPp3yspYxloVstDygD1A/ 1rnroKS7sZ0m4jzf2Lwephac= X-Google-Smtp-Source: AGHT+IEndWxu5GGgdiiwOXzIzp6BmevD9l+niY3p+ASoR9rLtOsy6dM4DelBCD6y6XB1HqNjHq1VyA== X-Received: by 2002:a17:907:738a:b0:aed:745:a139 with SMTP id a640c23a62f3a-af2f88628b2mr470457866b.33.1753354784744; Thu, 24 Jul 2025 03:59:44 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 04/13] docs/user: slightly reword section on system calls Date: Thu, 24 Jul 2025 11:59:30 +0100 Message-ID: <20250724105939.2393230-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.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: 1753354857812116600 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. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354958; cv=none; d=zohomail.com; s=zohoarc; b=PPb1wNH9VdA/PQtB0I7nL/Olxn5CLJruB0LKnt79pbO0bK/b+4nVLdWns6kZb9Te3/khhUVl1ittQYAlZ0CbFA6SA5PRLGbFmNVStUGUiwuAum1Jb6I4YWLdgr0yj/K3+7QNl3JtK/Fb4g4EEcvSF5ztyghQq7SbXWeP3YzrDso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354958; 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=yUHaaEX9ciB/Ilkp0Zt8jXKaLwdGaCvdaueBn699s6I=; b=Q7wDglCovxHpXfpyAlBhHWaW/eIOVAOMkXKJZsB0XnOypar9tuAKlrOsPTAcnt7TILOpp6GAUG1NijjQ+SOcd6c1Ux8m5dJnyfqamWTp4R1q8rqP7tDgX4PhhWvjoAJcAgC+vceo6t4hY0Eug4STVLqIEedfsk3hFeq+yIamB/0= 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 1753354958145459.6748795513489; Thu, 24 Jul 2025 04:02:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg5-0007Z8-N5; Thu, 24 Jul 2025 06:59:58 -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 1uetfy-0007LH-0w for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:50 -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 1uetfw-0007yB-9l for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:49 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ae36e88a5daso157906866b.1 for ; Thu, 24 Jul 2025 03:59:47 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47cc6e75esm98716366b.48.2025.07.24.03.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5E7C45F8BD; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354786; x=1753959586; 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=yUHaaEX9ciB/Ilkp0Zt8jXKaLwdGaCvdaueBn699s6I=; b=Of52W3+W86WkG8EfWZD1LeMzOOPQAnqOcynZyw5Xa9pbawS4guBwilIDFuKnJdMVfC Y/3g6ktiuDDhIR4r8OaZZFO6ev5jK+2j7Ic3Rjwpxq7ayHQhU0PjeyaAdJIjwR8PvanV L+OB/hOY/B7DTIflthVAXLCysRY7eaSuk7DRNpDD/VWIuxz7UHV7fcMk3+0l+VZWF8/d /WwYQqpmcA+gLp3da12IpCpMv8+whbg4PCo0euHw5ucBVX93hQSocfrIe0rANHBd8bCy Al84MdXCE6haF5gzp+eyF0ptBab+wqBWVOBlr/Vb9gLW7A24cE3X98SRBNJxYmcn3XkC tnpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354786; x=1753959586; 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=yUHaaEX9ciB/Ilkp0Zt8jXKaLwdGaCvdaueBn699s6I=; b=bEOfbjr/4PQm6u2OWy8DX0f0lv4zmbviK8SkBr3NR5bEFAzF55so9j/aZ1Jf0cu26m ygN62+6XVMRpZourWirdKrpCusxzMqezBD9UGkaPvSVnO7yE8cOmvpKnsIugCzYq6rrX 7EBo3LLaw/7FBm7a/b6fBWUD/wNDmFAnh3mfwAT0odW2dxXYrgIafjhX6WKp9ARoCj9A vKE6LCWu12JRQ/AFCJ6yBdXUTQbxngzTDuSLJABm4RHwjH08acbisE2BJvPP0P3jF10D Rqk0qsBLpb3ILsBNgQY0rjmEeNGscKEe8WPug77jgI7rY9+iMrrHYgswkikrIUfLHmw+ oVSg== X-Gm-Message-State: AOJu0Yz3xmnspiELmC2dtmk528pQKhQfv7yjC0n2oZaRRl+oJKWA22j6 6MxKv5uKVhiFIn2yjcB5aqdKCzaIv4pbCEAZONIKe9Uf/4U+rKBJNkRsOTvmyAY/BTQ= X-Gm-Gg: ASbGncuRjyw7kW6VEKH3EefVmTUaJB9HmONvQswpDtRxExAI0GiKvX+Ha8EGx/RAWo9 oOCkvc3i1q/fF8Y1pZWMo1egBaBMYqkAewunFbyQLV2l1viuAFqwhm4fBAusDJUjuA/79RU36gt mvlTAwCcLweUQk6xrspwDo4TKCLQ1Slq6uGopXLKjqmEjvsOVqIaWCgIz/T62hmKm6mhGIUEqYy 3sjs9gJ1d4b4su+4CChH1Z97h7jJt0y+Faif6aQGjW73Dbgy/z92/FVS+1/Iwoix5YmeOJi0RZ3 51Yy9VKY/vP62x4QzxSwwzfo0aEjctDEWmx2o5e6uYRp7a+W6RGFBTFfGJzLcZ8xSOAajaxc4bV um916E0mnN+tmu+fLsciMxbU= X-Google-Smtp-Source: AGHT+IGX67i7criljbaqAz8ksx1tlf1HH3SLFpMUEr1DPkdwapaDNpzHIDf6NfyFO6qcdqEHfaudJg== X-Received: by 2002:a17:906:f585:b0:ae9:bf1c:50a4 with SMTP id a640c23a62f3a-af2f866213bmr645352466b.36.1753354786448; Thu, 24 Jul 2025 03:59:46 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 05/13] docs/user: expand section on threading Date: Thu, 24 Jul 2025 11:59:31 +0100 Message-ID: <20250724105939.2393230-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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: 1753354959202116600 Potentially too many weasel words when describing atomic and memory order issues. Signed-off-by: Alex Benn=C3=A9e --- docs/user/main.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/user/main.rst b/docs/user/main.rst index 05de904225c..449acd4a324 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -46,9 +46,14 @@ 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 are limit the flags accepted to those it uses. Specifically +this means flags affecting namespaces (e.g. container runtimes) are +not supported. QEMU guest 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 09:50:14 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=1753354982; cv=none; d=zohomail.com; s=zohoarc; b=gyWann4JfDqMKpKAeCIq1+M9Kx4GAxzpC2qm2A50/hfuf0LV3ct9CxV0UcCBFOItAkJ3Nnzy4QV3yCtKQcPaHUmQp21jONKMYk2sAgWrSHKUv4RG2cJ22ne4OJMlbY1/YgT5JKUILFKTUghD//aa8+15b+VDzf73iIzXFyFZgSQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354982; 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=kBRZ04wX0MzyglrriRi9JfcL05p9dBe8tgATnNn/jvk=; b=WhzsvC+OTJ5fLMY4tb6xD8rkHxBp6ZMXYEC/atzebfZNBVg/KPcw4KK8I1BvPMz7wGXq4HoOlztD9VXN0U0WzmJETOOiE7mRmE8KRNenijDSGryU7ltphe9z1iPMnU/AkVJUo8FkxCbmfTmHRjpdvRenFrWbvmXk0ux+fS5xcAE= 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 1753354982449823.2610270758273; Thu, 24 Jul 2025 04:03:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg1-0007S0-8b; Thu, 24 Jul 2025 06:59: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 1uetfx-0007Km-HJ for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:49 -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 1uetfv-0007xw-In for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:49 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-aec46b50f33so135079166b.3 for ; Thu, 24 Jul 2025 03:59:47 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47cc6e841sm96783466b.52.2025.07.24.03.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 753635F8C8; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354786; x=1753959586; 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=kBRZ04wX0MzyglrriRi9JfcL05p9dBe8tgATnNn/jvk=; b=bWZ+ePKJ7OnoycxUjuY9mUdu0WKir8VAeo47v+EXl8APugFRQ1FTTuQ9kDZSwttGfZ EMGkmHaSYBk0mTY/MP/5v2k/MgREn90nYE57J9K9uPc/biqYZOwO0t4HXfaalkesJWiU +oO4D4fDZXGx57Jzv694sr8tq9j50gB517pYJjGm2K4OVe171ZXoRonqboAQEFhOVphH gfLk/frI8S6m5ZXO4K65NmgDC0AK9Fugh4eqSQL16V8HIn4sFyVEtdZtfmsuPEmMI9cK A9yV04vU54qlIFVJAUWMlYYmTmUSN6cH3q1O2sW5PPDueaFGkDO67hZwn36kS//1/Pqp /pSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354786; x=1753959586; 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=kBRZ04wX0MzyglrriRi9JfcL05p9dBe8tgATnNn/jvk=; b=qfw54Hr18/2RuaTgGzawmN+YKAWfCUivGa+us3EX1fa9NV0BhK4RwhQEVqOLqYm2WQ kT09cSJbexPETA0HRyDEOMtcRXHr5zJkfvQN8JiyRTh1zB6SHa7OjvVYyui9HaMpltVa jAVngRUmDtyDJFi4CA6z8cXXWJf5s8Ix6Ne6SX8vacgy4VjcZjJLoZDdgZl2RKp60i4c ltQsWTaYewHdAuK7CEfLLTlBG+cXOR0jsCNnfVDB6fX/IBdM4cb2A1Z2bezEGbP+S9EK ZmpGyipMqQJ0emo7fR8ppLE1GyEsvFPpM6eRg61Gkeo5tuZzOZ6djnkIKWYb9Xy+4e0g pxyw== X-Gm-Message-State: AOJu0Yw/FEudI7q3Z1Lroj9M/WaafCOlWtKQnnZyqEZuMk+6NU05Usrv VyENXy2W9gRme2Z/xOZ/B7DvmZKdBZ91VvJh65fUc33C9/ixy2+qYiO9zsXCvNjI7O0= X-Gm-Gg: ASbGncsWDU4iC68j7Vq1d6JgLOxh0yLh3RfiT7rY7tobVyEgriAFWQ1epv5zmkjP8zc if/FNnzAuFtWFZBDqoI+r7GzSFB6EjnlIyapv0OYs8nALR+3nVpwmOp3xx0NmHya/QmzOxh0vxa +78Hhgd6rG8qOAm7SDAW/te6SnTZdryCGI+pZdDcqNoyIdhZgMcwsrtqHN6x6DKMDHJxVA6gEs6 IA7j14BHW2syiWbULkANGRBSSdE4f7IdEanWTPG3F+u7jmFHGAPULJa0hRJgN9FCncNxFdvSC1U om0e6sLIcibeYBiuFDhnlZCPZkarEnG7QwWb7TiYnosgXzlI8HcsPyjxab1iTJHjEYPcANIuD9+ sJ0t6GWqU+tZotb5bk41en0g= X-Google-Smtp-Source: AGHT+IGqxbHC6uIJXmpyz6M8zxfyL+GuF0lDTGbv2ideeluG8Qaqj9/yIpaiply8YrlEBS6gnc/lZQ== X-Received: by 2002:a17:907:7209:b0:ae6:c561:764a with SMTP id a640c23a62f3a-af2f66c20a2mr630420466b.2.1753354785620; Thu, 24 Jul 2025 03:59:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth , Mark Burton Subject: [PATCH for 10.1 06/13] tests/functional: add hypervisor test for aarch64 Date: Thu, 24 Jul 2025 11:59:32 +0100 Message-ID: <20250724105939.2393230-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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: 1753354983583116600 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. Signed-off-by: Alex Benn=C3=A9e Cc: Philippe Mathieu-Daud=C3=A9 Cc: Mark Burton --- tests/functional/meson.build | 1 + tests/functional/test_aarch64_kvm.py | 83 ++++++++++++++++++++++++++++ 2 files changed, 84 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..a42d82872af --- /dev/null +++ b/tests/functional/test_aarch64_kvm.py @@ -0,0 +1,83 @@ +#!/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.machine.machine import VMLaunchFailure + +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") + + try: + self.vm.launch() + except VMLaunchFailure as excp: + self.log.info("unhandled launch failure: %s", excp.output) + raise excp + + 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) + + + def test_aarch64_nvhe_selftest(self): + + self._launch_guest("nvhe") + + 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_vhe_selftest(self): + + self._launch_guest("vhe") + + 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) + + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.47.2 From nobody Sat Nov 15 09:50:14 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=1753354801; cv=none; d=zohomail.com; s=zohoarc; b=HlaiaNWzMSH6uHtijvvVlxDiRZiSXdRgIZSHPjdFFiVn7J7cH1mvRKdQ2VCsPR/73Tl3HGPE9db6izSIG88uG3yTfa99Dp3eTO6wH6KGVLKGzfaxGvovnN+SnZQJ4tqh6msjz0FKw/psCaXgef13XnsjpybMxxUJpby5rVbWkBQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354801; 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=Z8ifgoqJl46kaAOZCsjI2tusnIxeOlRnTj/nT2cjUH4=; b=QUoUHZgxA9zSXmaUYCq6cMbYHjUCH94uMs8rvBUFN5Q0WXx5nlNVLl8WclD9yXUPJCjSTM4cj80vn1jG7xcC7A1JKuQBnNrJNVXDxlyFZlrMtyVoeBA/yeUFI1ie1QIPRa+P62CsW/ArtoVjbH2thhbL8fzyMmw/M1q42uHrwkI= 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 175335480109462.59992865277832; Thu, 24 Jul 2025 04:00:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg0-0007PT-FV; Thu, 24 Jul 2025 06:59: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 1uetfz-0007MT-Ip for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:51 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfx-0007ys-Uj for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:51 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-607ec30df2bso1742511a12.1 for ; Thu, 24 Jul 2025 03:59:49 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-614cd0d1ba0sm705678a12.11.2025.07.24.03.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 89C475F8D5; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354788; x=1753959588; 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=Z8ifgoqJl46kaAOZCsjI2tusnIxeOlRnTj/nT2cjUH4=; b=QvtBqUB2CpHKxcrHlotXX/H63K73Wwz/Zr+EeC1/PWfpLO4CYWRcXXk6PymxEpisln I4jZqi4mQewp5xW7i7pQCQuGCV9I3bX4/efyK3OHsIKATQ5CVab4vvl9CB4WKz9rkQa1 F0KEpGvgrvipLTgeYTieAuCWAVznsHM8LJcropWl/QciyTgZhe8BiQ7xsKWhx4FFpJ8r dr8r97DoSrzmqpFH0wTJnW+DpnQIB2r6yNXwHSn7pCrbXnJcy7mgRlcsr/NnH0KXRUzC N3/0B8Djw4eL6krEhntcTNMTkMRNF6PyN6LcG2PNeXUckQ66HOMoqnt3Fg0J/rIF+x8F uWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354788; x=1753959588; 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=Z8ifgoqJl46kaAOZCsjI2tusnIxeOlRnTj/nT2cjUH4=; b=J/QJwbh21QEGB/ahuTDU5s6Rcd49oFuU4uRVgLsnaRI49fMO6O6Qb5HfmKmGrf2Isg 7tuczuMo3PDEs5IryCg6Rnr6yzo7+CDV0Dkfcqw+yMyK0R9Bd+mX8dJtZ36UwO823FDy lm4YrfH/bQrvn6OABuOSBMyIS9t9umG9Yfmu7guUFlbg8NEAJNBgkLT4rJhGGQEvbR8c 351IDzQAdsv4yPw/H/ejGaDi7s8fmKiLN0No9cv0rtYbI/5XH7IWVggCw5lfYuHtNhS9 b6PlQWIwiiSfcRuY97D5WvHg9yK/0n5St69NElwB11BFNZcQ6UTa1o0KMH/OZM/uH2Vv 3b/g== X-Gm-Message-State: AOJu0Yzw5/CaUt6OvF1x73QHJ1/azGnTxJ/Du1p2QeZZzNxGm2PFoqjv nH0GHgchV0as+aJ88yuDiGfNFj5lmAdMPyg8v+rNVxVyrFlGX2d5Uj51RZvdCepAgIE= X-Gm-Gg: ASbGnctWt439VN0fig4R09kofS8C0wElw9oJCeARCmt7PHlNKwOBZNErl2kIRc9Y1MM 0Wg9Hn+xW2KtJSr/qoyvs6EkuHimF16gBK5iUwi+qMVCY14wkM35s1VuZgwtJ9JbC8mP3CG5bbQ AZ3ZwlKYCYLOczUsEeTY2vSmTOl7lTb5/TBRZLIbhjJT2dzvfezNPq+fpJAyTCToXVCrU66syhz StjAMgnKFLscjfAAiMcrYyH+sTZ7uALCJpxg1KhfaGl5j+TAB4NqCtucFB2XDB0zy9KkjAE1viK sZKFxsbTXU0vubsJ6PMlJ4Dr+yZJxYwav0Ry9p1x/0rq7TlASEG63B0//LsZuMAlVuCTQgNB1nJ A1q1jImVWZu7torbbWGhg1TQ= X-Google-Smtp-Source: AGHT+IFmrn5B6diiqWjwoT+AtJQCk+el2qrPXLFe/JrsuNqtsh5V4FdudtodexqKU3vhY7wu5cBJqg== X-Received: by 2002:a05:6402:2712:b0:612:b552:5a36 with SMTP id 4fb4d7f45d1cf-6149b43324bmr5903606a12.8.1753354788072; Thu, 24 Jul 2025 03:59:48 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 07/13] tests/tcg: skip libsyscall.so on softmmu tests Date: Thu, 24 Jul 2025 11:59:33 +0100 Message-ID: <20250724105939.2393230-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::52c; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52c.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: 1753354803201116600 It isn't testing anything and just expanding the runtime of testing. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354848; cv=none; d=zohomail.com; s=zohoarc; b=H56NuhDrSvGjndnjoeLeywGHkwGitwIlEF5dV9T9nsVt52eUVThV4MKAwAME2P6ila6pk1fzJ0Rf47ZZqYwe5ZajF7y8sYmo2uJTAG8l+c04vFTxKoAvxhRkgjXSJYlDIJVYsZOmZ2fCwKLViGAQklx0mB0WDTuXkSm0QNycIj4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354848; 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=RaXIy0TZF7Lx3BTxPvhSWMcsUAYvvaGRMj44TBqIZqk=; b=m402NPTE0Yma6HrkKvzwvyB5EQ7o7K+LtXU7xFbBr3wi8+km0TXWEpqF0sEVhsmSwSyNMrncA9RgvyxsNl1lS1ISPq56zZZk0WV8J5IF4rvWl9Zn8IWZ16Mi/tlgBQeNDDiW1O14GEFrjA+j1BDOraHTy4SfcykcqHA47MROz9Y= 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 1753354848842936.6482511605044; Thu, 24 Jul 2025 04:00:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg2-0007SZ-8L; Thu, 24 Jul 2025 06:59: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 1uetfy-0007ME-OI for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:51 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfx-0007yU-1g for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:50 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-ae6fa02d8feso127277266b.0 for ; Thu, 24 Jul 2025 03:59:48 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47c58bba3sm97872766b.5.2025.07.24.03.59.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 9BCCD5F8E1; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354787; x=1753959587; 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=RaXIy0TZF7Lx3BTxPvhSWMcsUAYvvaGRMj44TBqIZqk=; b=r3jWisgxjaFMLVX5uBjaAoAKWNlq8N4yb0FHvAws334RtAAiEQIOHC8b5rszlFesdf Jo+BL1nU1OfRKKoFuX/qkFZTbNVr1HNuuE5zEgEriB+9nYn0p8/CcHm7w7UFMQxQC6XA SBhQTx7RMSd1JvqUAFpAW1+DuXjTjQsjSABxcyRXGwW2o9euS+/lbmdaI2+aShIkJYCj QPwysBU3oCdWQpd/yfsnNSQ7voPx33L75TOcDA3doGavTtupk53bV+mkxicQOxlypubk dgL0JqrRI21d+zQD4INK6zfTLy0zcvzykwBl0XCLdWFd/lFCnyhbCYutxX627DClJDjP 4rdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354787; x=1753959587; 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=RaXIy0TZF7Lx3BTxPvhSWMcsUAYvvaGRMj44TBqIZqk=; b=FvpZSRvgX5C5Wv6k4h2EoK7ldUOyIJOUSvHXwn/3qrBg14NNvzxfhH7BANbOpfpBY4 SbHj4gZaIPc0oTW1C2cc6SpYxKP22ZKSgGcJudDhw/Ew/nBG8tx0tOoxU0ACDH+GIWnb /UUhuQ3oWboyGDCx8ku312PJb7IT17SxLWOzTauoNH+p9zUPbANq7wSs0kazkj02RXHv AjN94NIVS737dcLJTc9K0mghPvmYxCzh5U19FAxNwttKQV+WYVkGjUfGOAbbYrwrY/mj 2GFcgCXL3q/BGnQkByz+SpTrUWTvcr0tH+ulboAhOHl7xJWq20VNEwrnSizJpZ1OAPpm jMnQ== X-Gm-Message-State: AOJu0YxPeQDYB8UEhj75Ar7YpVE+6GjpJZulMbMmhGU0srzVzRPY9Jkz YxGpPlYfylOFIGU+imPR2iRf18SjtqM6FPOEHXuQ5/4s8EwMqZFe4dcwpN7d3Z70ZkfrntQbXEw FP1yy X-Gm-Gg: ASbGncvNFgQiIw9QJ0EUMfuc1ItuEjQlYPRNU+bJP5vX1PSzPCsMziDIlY0ulSjuAeB LzJmZMGDm12SQnC4YuGCOwL8ui9ofiXxf1QGHQy+YQOGtampDuvcEfuvYHIEY+5siewW4NPG8bC wuHVzT14lSstQNwEGXsb+IAp2Rmjdy826SZw/D6VCBZsbxR1lA5RoFYCl2Qe1dJ8MLG4zn2owOP qjsfXj2YVb6R30faxX8I++JorjPALQeAZ6ONGXveNIcpUy1Rl/bd2Rhh5lGpDMEwIR1TwWFXGRv uLs3l5EXuMk5s4knCTd+xiBs4oPMzHYKH1DZUXXqNTyDTM1t1PCRTvYKEzdVTOhgnNnN286DVwf 7DOAASLF4qf04Cdmz+oFfPcg= X-Google-Smtp-Source: AGHT+IHEL/KzwMmfwkKAQYbG52krYzWMVnXqh5z+AKsRTYQ+pRID5BrQvyv65xd+Ac2qUurttMdNxA== X-Received: by 2002:a17:906:6a23:b0:ae0:a813:1bc0 with SMTP id a640c23a62f3a-af2f9270a5amr598668366b.53.1753354787202; Thu, 24 Jul 2025 03:59:47 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 08/13] tests/tcg: remove ADDITIONAL_PLUGINS_TESTS Date: Thu, 24 Jul 2025 11:59:34 +0100 Message-ID: <20250724105939.2393230-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::62e; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62e.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: 1753354849721116600 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) Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354883; cv=none; d=zohomail.com; s=zohoarc; b=SFIy/A9PtdP8cJJrwzOAR9UzchC9lYsar+YIDNOCvwb1Uv/UNFzq532P4oNPpymC/m8QxRDbUVNjVW78LLUA+g5qnyhgmPIRo+lJW7VtRVq4dLjYAvlvbz4rd5G9hnKp4iwWQ7tb+Z7Id+5HEKQ1PL5UP7cXMMqkHNisiu8LXhA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354883; 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=dWlT3FmdPmH54t5v80OARO557JNa+kkNhBDoMAfKoW0=; b=SA+EqBW1pmTA6oS6H+V171H772nOPPiehx/wrX9XZVd97Zwb0JKq0cww6IbzxSNxwdKMae3DU8InW37A47gPGQaXv7cFBA4OMVfkHbl1l4tLFhyLXEHp6nbCXDa+lfL3e8aoAG52eVoEHLsoDLGAKtv4Zap6ej+ym5f8vvJehRQ= 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 1753354883393632.3418217930122; Thu, 24 Jul 2025 04:01:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg6-0007b3-Ux; Thu, 24 Jul 2025 07:00:00 -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 1uetg0-0007Qz-Uu for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:52 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfz-0007zL-8w for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:52 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-60707b740a6so1344072a12.0 for ; Thu, 24 Jul 2025 03:59:50 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-614cd3362d6sm694045a12.60.2025.07.24.03.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B32835F8E7; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354790; x=1753959590; 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=dWlT3FmdPmH54t5v80OARO557JNa+kkNhBDoMAfKoW0=; b=qb8VRkJg0YkSQYb0t8mR6VRaloBNBIAClBzOvSRPpW2AvKGmh8332DRJQPKWTGa0ha 0Wf/N3HJOSEUrs3wsk8/k9/lQ0K640oP2o6tTlSx7OWkq1FSx6fm64BKfQFpZsZILMuA lgS3ReWpYlJsmvPu8BpdMsMf+sKRE0tRGdl0BBI7xeWnbw4lNnA0Ffqt5tEXfop4b2kU ukNfyN3vpfbqH0oPbapMUkYSzxZPZLYJuiuw0RUbqD+EwQwY9nPj+J/Puqhgif29wgZq UuBSIIqFx5ch5/Aghy2x/PGxi/AEDSOuxQs0b0jr3lUfDf5hm/3c8PaKCPQ0WCk2xstF pVDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354790; x=1753959590; 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=dWlT3FmdPmH54t5v80OARO557JNa+kkNhBDoMAfKoW0=; b=S0xmWZgJW+bu8i0oPnCpjZYzAAT1ztUOSUKzStbbCOThthEOyAJWohEbmX+qgp0veZ Tw+RzsaslkuyY0pPj578/Oqf1JtMkqcqf957NB5Xc8qycC5H9V61qu2Lm+IGArkNdP5l ohVLWTP9KI6enaz2TcTYMfIFa//wz4IVm/8SaNmUBGsPA4AMscfnp1W9TLn6NP1jeRT0 umwoqFjFNvtD7iogfeAjnHvo0uBDAu5Pyv8PYDxGfFcABpWe58vhiuakFJJhX/jcIqKa ACCviAlMTYqblyN29qMmTE/FEpTSfxHIvvLe61JNURkk7AESZ2nz2ii8vFpqkFItoWZN wVQQ== X-Gm-Message-State: AOJu0YyKCnwkpxb8qG2rxc65mZRomSfRJKqmgyWzJe56iPeAG08KdlJX PRKVtzy8NDpCqUDClovCsb6cXUUfd34b2dfIVqC9Kk8Mw/MftxXt63j58tIgTI2qYn4= X-Gm-Gg: ASbGncvyI5Ee1u+uydgxg27wqjICPrMg2vs7GH6h/Z6zJa0loiAeSBA3T5XYvPt6Kkj 2byoYqf7R3Uw0QrmoQ8zyvRcTPedCWdseWBGFe7o2gGXg330dt9DuAaUnuF7GYS5jwIC/rzpOrP czKKB21yp//fuVpgJj8orKyk9ZxYo1jrxXeOM5gmNW4zu18WovFNNT+ztbYSSo97rtU6Jwhj3CR vW4jRSyzQbKgILUGnuuSJNAwv/rheCpMsdMLNs/jITZhyN1WEpFsGYLqda6YmZYof5bBa609jM+ XIjUQQXBlwnx2J/11411HCX7ynFcetDJymXcO96mBfS8ZlgsWS8DLop0YF9dHIjcGq235huag2Y zIdvw7sbRYSY7q9A37UwcIu0= X-Google-Smtp-Source: AGHT+IEUgoSpQUb8WqVztc6pvO2IIdMGYsXgeFVBfbK4tASHfHJfX+AJFeri/gOiAqzJEfv8DCMy7w== X-Received: by 2002:a05:6402:42cf:b0:60c:3d54:4d17 with SMTP id 4fb4d7f45d1cf-6149b5b229fmr5184055a12.21.1753354789610; Thu, 24 Jul 2025 03:59:49 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 09/13] tests/tcg: don't include multiarch tests if not supported Date: Thu, 24 Jul 2025 11:59:35 +0100 Message-ID: <20250724105939.2393230-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::52e; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52e.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: 1753354884204116600 We are about to change the way the plugin runs are done and having this included by default will complicate things. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354886; cv=none; d=zohomail.com; s=zohoarc; b=Lh12yCqezn1WIl/xz5PDvuL4+E3gtmmk9MQiffjr7UXnUVDEvUVHStfWKBXOjsj+PShGa8f5L0ailM/NOR7wE5GdktaODZvLp9ejKrQLfHGgx464JEblwiq7iqycSONy3GtfAVnhaMPRbDvsn8hKhQ89VVDA/mlfcOZqNRnBJvc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354886; 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=QaPXysIAXigDqqT+O5iDUgf8CktyyPNEMi6/vXX+IfU=; b=WOqRFp/EPk46bJqH/077grf3zBHJLxyTtPcC+SQT4eZnEHSD1P+Jz9/QF1jxp9Mz79v+yDeY+Y9cLhw4ej64NBuv++oiawaEmhIju1ojGwXcuAnq5m8lHFFcnab29ftWpN9mJRvL++4RqTuUgzJQhA0yCKu72PhvKCb+e8ybvyQ= 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 1753354884577468.76061790182166; Thu, 24 Jul 2025 04:01:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetgO-0007qV-3o; Thu, 24 Jul 2025 07:00:17 -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 1uetg0-0007Ny-71 for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:52 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetfy-0007z3-J3 for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:51 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-ae3be3eabd8so199422666b.1 for ; Thu, 24 Jul 2025 03:59:50 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47cc6e6f0sm97187366b.46.2025.07.24.03.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CAA3D5F8ED; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354789; x=1753959589; 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=QaPXysIAXigDqqT+O5iDUgf8CktyyPNEMi6/vXX+IfU=; b=JGXtrwnhZuGCZG5eQr7ZxPP7GP8Sujv33y8bjM+qA9EiWwQ8Y+QzhbnMp51aaCQ1NW U8yLZ9a5K9YN3KGPRdNPAunxOa5aSKDEIa6/gZP+DlCppFg86ZAxVgJ3BD0omnrEZ0Ql 3DHhmAQuvPtPMK5+vuizsoPEJDGat3NWDu3499NvbSHIgk5p+rlm3mCLTcQrDtU4hY5A EluXGKaEyMNvhDm5kEN2S8edHXiXFy6Qc3cWycLEO4A1gqECeiWhdC2cHAu33px/5iCC XcuhwNaj7tEZRGtUnOgNQ/KQngCEyZAmoVVXwnL+UsLL0a0+5uv0LFun4g8Cud1N9cEj hT+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354789; x=1753959589; 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=QaPXysIAXigDqqT+O5iDUgf8CktyyPNEMi6/vXX+IfU=; b=Kwr1H8QNcjN+Bq6dqffNbSD5KGqQjynZgr7SmHmwZJj3L/jBxU22tOKor6QwCPBFFy ql/nETG0tRqjE7kiq1kYQtPB8bkl50NgXdsOqo1ebgdMnIqLUqvC+oY9braYDD7umwGf gAaf8PyR5X1cD0l0HR7Po5i691e0/gJ6gwIdTHDeHU4XfRxoz7kn6sPjV/lgc4lVaSFs VDKaBOlPXiIgOmNH5foJB2KFiI4bF2H+nFeCwYdvhpjYk/5nVqTlB2VmGqLF3AMLuVxl lS+vLscmxoFD1S+muwNjmvC7jq4ECLm1iqaujQiQ+AmEqEwYAfSQ9WUHxbhWjeKrC8q3 F0Pw== X-Gm-Message-State: AOJu0YweNG58EONdMgMG5RAGVAFZ6Wj5blhJsrL6xSCgLKYVdBEQgo5Q iQ76h1ECKrN006T0nNJ1//J9vkJgB/PauqRNcjmFLbxaCuCZThGqNS1DRTeWNsm0fvs= X-Gm-Gg: ASbGncse0xHTacXZfc0C0I8+S6wrlJaIEPzWjoQdSR3G/Nxa0c+HnCNmCCEnrDu2uGy 1BlyHtdFCdf01hOkI1reD6Tj5TAMxN9LwW4Zg/hMZe8BcVklJ7CsM1EdHKZ6mfrxocPJ3ZloPHP TqFzBhineiG/vklVkzxcdsS5nqGCZBPtKBNZRn6dEFMuO61eVsB4MmzYMEOM3mDSUg7aDa4DHs5 qWKDPRGF8RuNX1LecJ6AslsodTVSNJE53vzfjdy7L43IhwHDBn/GZVFhUESsyuy/q1VwG6xmowj EOCR9J8yIVvOaC0OLtPtbo6bZ6c02RVQGhCzZmI2Qm0HUNi0RsuvQilMczOkFHR4pAoyT856Stp 6cxqQQ0AdAhElfIE1Z2fR31c= X-Google-Smtp-Source: AGHT+IG/XK6uZFCFCYRVot/2VtzVvfVRLhvo6e6FzwQ7vNDZHUtOVsDhy8wjP5J7KkwdU8+Q/6FE0w== X-Received: by 2002:a17:906:478a:b0:ae0:7e95:fb with SMTP id a640c23a62f3a-af4c1e2633dmr200210166b.5.1753354788845; Thu, 24 Jul 2025 03:59:48 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 10/13] configure: expose PYTHON to test/tcg/config-host.mak Date: Thu, 24 Jul 2025 11:59:36 +0100 Message-ID: <20250724105939.2393230-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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: 1753354888578116600 This will be useful for making $shell calls to something more flexible than the shell builtins. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354854; cv=none; d=zohomail.com; s=zohoarc; b=CvS7ImUywSGkTROZG2QchfQoPsf/jWM7jBMMeQSUn4aJKeagxblA4+jX2hzJSomY+HmsVO6ZH6ycl+vAAv0fH3mwrbeVfNeL3MStmGjvc3LEpl32sifxQyvMTuhoyaou34ZN9jDjp9KkJ0buri/L4QhivlGgpSEyeV40CyKUGTg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354854; 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=R6EYeOydwHeWT+0KjgI8rE6kC6uYaOoJ0ACHOIOUReQ=; b=RbR45wuUsJH188ehUF3ds2N2V+DeNghIlO88L3wr1k5L0Rr2htvRRfH0p7EilO/6atx4oQi9BYzwvWNkx6GAj2E+sQiX37alcePIyDFbyptT/6xTxJUrCrZa9USkJ2+uB6ldIVEl61jcQtT2Bj+GsLdrY8cnvDLMPPbI5yd+URI= 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 1753354854587810.6000325274431; Thu, 24 Jul 2025 04:00:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetgO-0007q4-45; Thu, 24 Jul 2025 07:00:17 -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 1uetg1-0007Ss-T8 for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:54 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetg0-0007zX-28 for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:53 -0400 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-ae3ec622d2fso132980866b.1 for ; Thu, 24 Jul 2025 03:59:51 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47cd64da8sm96387966b.60.2025.07.24.03.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E22755F8F1; Thu, 24 Jul 2025 11:59:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354790; x=1753959590; 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=R6EYeOydwHeWT+0KjgI8rE6kC6uYaOoJ0ACHOIOUReQ=; b=xfYutSfh5LQ9HPJ3Yk2H0cthMUhSGMa1QadrXxCsGU6/eJlTBch8hCkn87r67bw2/4 OOypcnHm5Whn/Ksk2B9RiaksedsuCD5GEHane+3DsatCXHKmtoKTjKWLpzyE41t1nPP3 i7IfzYiHiMy7JIaEYNza0iy0hCWisz9/H/pg+AA1T8s18qeyczN7Xes4CTKX2gAosH64 JvCKFaEXqfdFylyft3O2NMqfoGdqeW48Y+/EeBmGsFxfa+6KY/yU3Dgm/RUcU1EA714V aMHJMfXN0telrBR35+PiqxQfMtCRakxgNJBm5cUeXSeN3cFw2sC381BkLratnO93boFx 92nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354790; x=1753959590; 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=R6EYeOydwHeWT+0KjgI8rE6kC6uYaOoJ0ACHOIOUReQ=; b=LRYiZeCWqn8IX6fPdo3JsaaFMssbqoogS/9evoFE16eF6PsCDnE7L0vOMP4S1ekw/T XsXJ7oyqsOSnLC36ZKUTFDhKpQ9++F3qzr8gb5LBu9/LWPb5hDusOJMOlpQDEVa3RBY0 Iwiq3rTOHBhL6cM9r7OVEIJjI/7lLKQuYUva2z5hGSOtsEG5E2/bQYJHC6FhzLu8VkUO K83NqjZVAWSujyIEWMMD+YVbBIpWD/bpDHWJZmxXVgL8o5Wz6ZxJQ0/+lU1tS1Ot/b76 XohQ1B1UiP6xW5dHeVfRvgczcFj336hEuzkk3wvsK40h+JrxN/c0i7GI8WG1ZpwRS33L 2dcQ== X-Gm-Message-State: AOJu0Yy7oftruBqeEPRcI72Gp1K2HWuq6p6Wyfnn9SUDHOVR+tVxoyVc IiquWUh7GE9pxBBlJMaXscNVtVFa+rE0yQPajLbm0y5LQ5m9uQsp73BnaR91I6Z6Jgc= X-Gm-Gg: ASbGncvBnnXquR+4jwjsuV6hvTrQP1TWxOrLoM3JzigxFsSLe9887G5ri2OobUxsPKR 1fLrZNwDRYPfwGB7eMngCc+k/m97hLhBeU+VLnKiR01cdTuTiHgUye4NupGcmoT+W2KlZUES31r NkNaNjJ1qroPaF7Sb6mP6rFDlEc/WUdUq36tvBYqoGvssLMzCOG7+yp8uw4Y21lABtpw6iK/tEO dZ7yZWHKmHM8iOlYo3vsJnuSasJMXNb+sKuYFHaZNmvw5rdsY3avXLuMuRETDzm6HAD2wP/Fjol nuRO4S8fa0F3BZGkW11VBr+v5rXqjeG7uNDQPlnYVE0P3pS7RDxciWnRHq565BKU38b7FOv/Ojj pH1+j9cSYvphwKlBbOICAFHw= X-Google-Smtp-Source: AGHT+IElkCmawROGosVEaY32z/FVCCKsjMcwMbxGZthmyJmTkhWRruBW6yCcbdpNZetD4wJv010WQw== X-Received: by 2002:a17:907:9612:b0:ae6:a8c1:c633 with SMTP id a640c23a62f3a-af2f895a512mr602231766b.34.1753354790317; Thu, 24 Jul 2025 03:59:50 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 11/13] tests/tcg: reduce the number of plugin tests combinations Date: Thu, 24 Jul 2025 11:59:37 +0100 Message-ID: <20250724105939.2393230-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::636; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x636.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: 1753354856070116600 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. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354880; cv=none; d=zohomail.com; s=zohoarc; b=dHR+aSNV/PHgZAYAW4vV3BZf258tjjBVeGAR7ApQjUkdj4zJjpv2ZZwLYjnuUjBjl60uBg0k344xxJ9wOueaSMDMEZoFXfInkViVkoxAeSm+WloKkc+yffUZt+gvgoDsDUyNRKXsvhq/CgzZQ6ekwqxSChixm+UI3V1bakVUi4I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354880; 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=rwK6z7gwuYm5iLJbqUdg/uNr1mj7hUY0ANK848LLph8=; b=V6mG56mrPDd8pIBZntwCyNkLB+ZIWihKnKD8wtl8HWhnDe4qhowOmP45PDSjUJxQEihEqGgvXjp1rDo0CYc8rytJWFpfDh5raWuuUBDnT7w4B0ZEdYQaIb/cY0h0Rhex2xmA/+XS2Zt8RHDFwYrKSxKtZi9RT0LJbohFlVMs53Y= 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 1753354876126262.9079255863853; Thu, 24 Jul 2025 04:01:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetg8-0007bQ-1o; Thu, 24 Jul 2025 07:00:00 -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 1uetg2-0007TL-BU for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:54 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uetg0-0007zm-KC for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:53 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-6148e399effso1443286a12.2 for ; Thu, 24 Jul 2025 03:59:52 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af47f85eba9sm96118766b.97.2025.07.24.03.59.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0429E5F8F2; Thu, 24 Jul 2025 11:59:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354791; x=1753959591; 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=rwK6z7gwuYm5iLJbqUdg/uNr1mj7hUY0ANK848LLph8=; b=F+rPH7angDvLin8aYJCbBQ2c8LVxs/XOi034J2gKSz8z/dcgx2CMm9UGgVAnLWpoxh FIdNCAMUUXDLzzpT3+Yhb1L0+L0z77/Z9rC1zsK+GZ2hYdcc+HY6i3DJJWS1nkawJSds 21s+JKH/3tVwIxCSXD8Bik5t2kuDtzYXgzFMG8jW4vBpfi8mcNF6QZ+8o8Ne945NSaiD e+Nk0qWiD9W+YhWEC/TkuxbLhTWwY5uA9NSSS7STKHKEA6YzWLI//WnbeHs9zl6QyZlf jfzGWVbUjSsHapxiGkrrLEbEg0ygXKO4B9hzWUrwSZ63I9ingU91tOq5tDG46/rjTss0 JtOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354791; x=1753959591; 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=rwK6z7gwuYm5iLJbqUdg/uNr1mj7hUY0ANK848LLph8=; b=bcNPwdgvtLyRmxbr/s7F+ji18w8EnMXE2rJ2WuCAe6NljdgLfxu3b3aEFloi/kBCvY 7rAIGxo+vKTbD8EL1a3/xFItYnqWYGUJz6XxnXIQ5gSqqk+UYQUax0SxXTbabEUWa+oG rxnepv82PfgivR4O6aArIXU+Hrm/5Tl5uwTmf9W4zOPxY2gmE7AiA4MTYsvQTdJ5XL7h QbsjkjzBCtYxHoVWVnmseMhClj0O7Bx+F/TXedNJC0+87KTIC8AT0bwEtPNOQmGXrm6O yliNKULKaS9C0aX6jVhkMyr37SdOdEmMk826FKnxkCLfbE0Pi9ht50vDSUoEXKH2nxNt vD6A== X-Gm-Message-State: AOJu0YwnVZn/nXIPT02afAjzrM1PnZabu7qHvnT76evLSISNE4l3sYiD yi3FQKT9uQDxCCvVnOZDuPK/A9R3cKHWHzCM3xdSO4tbChZCsCVuxvttmCg3GMTmeLw= X-Gm-Gg: ASbGncsz6aWLsQ9KWUEPyNBR5iEdcvINAHnqf0xBeHP/B8aB4Xot0pkEV9Q//oB71PS cxvpe5og0mkRirtAFVNHCo6tEVTGh7loNrAttzgqkfJuoItA+Mhd6zpKNDy198w7CujaVc1cWZu +l4t/eXbHJG+VsV8Q9dbK8Cm82UD49Lwc8Igl8BP32VSNPrmL9spgmp4OjLZlz6Fd13wvwPzF0m SJGn+6I24GEJzaImOdlIQpqMb6us0Wt/YcH9h1vYHtWUyp5IYEECiBcIL0Q5tO/AiydRKPPWxAR 8ceJOXTftBVNbEnR4shD/qMAj3Ouu0nI0Uco6DoEPwwS/arkycXkc0KgXwAG0x6hC98BLpPVaU2 yUZwCayrDrpofmWbbu0DJi2Y= X-Google-Smtp-Source: AGHT+IF6Im6qd8yiIZ2R3tC1v8p8yFyfaAWr6D3g/JhTxskIJ+QWHqIJXuJFeSZ1skvzR07+4lIGBw== X-Received: by 2002:a17:907:3d12:b0:af2:80c9:7220 with SMTP id a640c23a62f3a-af2f8859ec6mr705453966b.36.1753354791160; Thu, 24 Jul 2025 03:59:51 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 12/13] tests/docker: add --arch-only to qemu deps for all-test-cross Date: Thu, 24 Jul 2025 11:59:38 +0100 Message-ID: <20250724105939.2393230-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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::530; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x530.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: 1753354884166116600 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. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- 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 09:50:14 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=1753354856; cv=none; d=zohomail.com; s=zohoarc; b=lvbvGUlL2Qb1rXDfL7KPuqwOrDN9m9sI/6LBhZRt3a83lG0Bnw1sqgtP2f++o8tLolXqTbDYKJVd91R0FS3pRPhUcEJwMdK6uSaXWAElz6R1Zb52AnuRKI2ptLRX5CsrlYEGtQIC5dpW0H7PrMS2KXz877Vhq1DMWnpR6ikJxIE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753354856; 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=iGQBWOlnSO+u36nuiqLHxBfdpHNix5/UwaTMVfh1iWw=; b=liOisOMqp9ASZpKMqvqYAe0NwcooecC/kxHblAihK0sFLuKfmYot0eowjPUcWzs3f4n3+qgjNAeiPZrPVgcyQF1HT0hEs5g7r/oSzzM/Ngrlf29/SHTqSoeOLjMj0kCXYnSuY05gKi8/pC7xc08ANqkZfqur71YvaPUUGMTZm9Y= 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 1753354856601803.1694570870897; Thu, 24 Jul 2025 04:00:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uetgX-0008Fu-0Q; Thu, 24 Jul 2025 07:00:25 -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 1uetg4-0007Yn-QL for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:57 -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 1uetg2-00080A-3s for qemu-devel@nongnu.org; Thu, 24 Jul 2025 06:59:55 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ae360b6249fso138741766b.1 for ; Thu, 24 Jul 2025 03:59:53 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-614cd2fd3c7sm707506a12.33.2025.07.24.03.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jul 2025 03:59:51 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1AE965F8F3; Thu, 24 Jul 2025 11:59:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753354792; x=1753959592; 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=iGQBWOlnSO+u36nuiqLHxBfdpHNix5/UwaTMVfh1iWw=; b=ip8YSaHfbybaVrAFaFsvkfHO5lb5Qqnqw83WfLBSZ1tMKtDWwjwxqqGdWXnaZNneAj gYVnrY73ZSH1biLy5iA+uxNeao3nYdxM2Wu/xZCxG0625EgL+KxwOLOeRUFCLdf+5K38 sKmGrvo61IvkKjsdoDXtfWfFHI6tTAHetTDVmkJ2VzEAPJuxliYJl1IVij6xi1a4RbYE HdZv6Fb3rzzoCwQtMfeY8hA50QbtWhUHMAd75bcK4wsgVVWbY6QWEO1vANNOA/oQXt0Q ALG/PuzPL/niLV5GrSduEkQsWlq/2mXGjdhf7sP7b9HHkReHoGWuFipkjLGSlJxCmyPL ogEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753354792; x=1753959592; 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=iGQBWOlnSO+u36nuiqLHxBfdpHNix5/UwaTMVfh1iWw=; b=n+EHXf20g5j11/bWEGzKT7i9+ghz6/cgepm6T31Zpx/PQz1QAT1oRqJrZb9Ad9LKe/ tvqg4ki3U8ufwAvnO5A6B5yF54R+E+V413f7l3mvTUBbBa0NIc/oGzOJKSXYZ0jojS6S kbY3olHJhdRqYkeiklaF6WhDRE6GAOysIQuJBGkeBTOEpoG4DVLh/v0k/D6c1gEN/+Lu Rs8ACBNifpqP8Iqu26LocZk5knx0f9Q5f8nFC79ZTzmE9rvH0QgICBD0fcFbULFtH9+F lIjBUjkAK9LCKcMcU7H/3YxLnJhEe34vVH4fWqqPtgRuvShzqRVccd5gNYeVSJpLhz1M UiHA== X-Gm-Message-State: AOJu0YwGVsG8ZU1LU86ovLqDSwfuCI5WOQv3DDOptWwZFoEsM4u5IgdB f3qam+PwAcBGbjGhHPRTUAjrPCp5+YViX0jbzQ7m578j37wXVAuNF6fRjPECn7KEvV8= X-Gm-Gg: ASbGncvUp2RvKEqYukzm9gMCQJJQtzDqfnAOgvd62xfXMZQVCZs6DK6ww7FWoN6ysiq cSyool/9QkrY5OkCO7XoBcvG7h/rIadwWcZ7rnnXqy4fdjBvaUPLbN8W5DLzGK9yREFX1ZMYIRI YExm6sh3ZBdnFhKgoL/bw1L4mR5oGukSZpndrS4VqHNoqtt2krffnyRoloYvl+c7hoNHXeiLkSi Of0inkPM9NdQ5Od005Hduqra0PliSCG7DvOqN3yLb+GB51N1blPteGCildlq4zpfBYVDlpeqsOZ zDfRePsBnGcDRfD4rsh+imvTX0k414oDj8LlPUm8zbUKoGn0bvwRPdevk5JpGxyePIOzPNqlE5A EK+wrWpwiJ6t9x9BZb61YjmTU/qN9P89LDQ== X-Google-Smtp-Source: AGHT+IF3vw9GpvYsQpQsRJRhA7PWw5t+3YoDXI3ejx2rocRESGQDIe3yd/0baeWO+vf0uBI274oKDQ== X-Received: by 2002:a17:906:d542:b0:ad8:9c97:c2e5 with SMTP id a640c23a62f3a-af2f30e1192mr647170166b.0.1753354792400; Thu, 24 Jul 2025 03:59:52 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PATCH for 10.1 13/13] tests/docker: handle host-arch selection for all-test-cross Date: Thu, 24 Jul 2025 11:59:39 +0100 Message-ID: <20250724105939.2393230-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250724105939.2393230-1-alex.bennee@linaro.org> References: <20250724105939.2393230-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: 1753354857744116600 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. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Manos Pitsidianakis --- .../dockerfiles/debian-all-test-cross.docker | 31 ++++++++++--------- 1 file changed, 17 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..16a83241270 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,24 @@ 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"${AV= AILABLE_COMPILERS} gcc-hppa-linux-gnu libc6-dev-hppa-cross"; fi +RUN if dpkg-architecture -e amd64; then export AVAILABLE_COMPILERS=3D"${AV= AILABLE_COMPILERS} gcc-m68k-linux-gnu libc6-dev-m68k-cross"; fi +RUN if dpkg-architecture -e amd64; then export AVAILABLE_COMPILERS=3D"${AV= AILABLE_COMPILERS} gcc-powerpc-linux-gnu libc6-dev-powerpc-cross"; fi +RUN if dpkg-architecture -e amd64; then export AVAILABLE_COMPILERS=3D"${AV= AILABLE_COMPILERS} gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross"; fi +RUN if dpkg-architecture -e amd64; then export AVAILABLE_COMPILERS=3D"${AV= AILABLE_COMPILERS} gcc-sparc64-linux-gnu libc6-dev-sparc64-cross"; fi + +RUN 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