From nobody Sat Nov 15 07:39:23 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=1753605226; cv=none; d=zohomail.com; s=zohoarc; b=PNdroUtExjf7cC8zTWzrs3SVR20EbwlEp/SbscfXRpxR8zl5EWFYPi74Mhtak517ABjXCJSkXhvNjOhSGyIEc2ae1r6NberkwPO8FSMeeXXnnfkdeF2KOsKWm8xcU8F82GVOSFmzNqF5vMR6zzb7OdgxX/+8tgofkylisIioyC0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605226; 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=7iCEyg3QtmaVOQTKiwCx605AuN4cfCmZflK0AhNrDjw=; b=RXdTDVbr+k/2V6Kr8xp8YxbqDZwQuuBCYS6/g+0rMeyiUVJ7rRK6dMu1R0jtH7ND9gku7YXpWRS36ftJ2F9h2zdvIcvA9SUsuQqCGfGmfzyPdZ1JeIw6ArWsvhxhD9NtfhOxqsZc4oQlNt9hhviasxl52aUB/WAiohOWCIDtTIA= 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 1753605226001760.514941950089; Sun, 27 Jul 2025 01:33:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwoa-0001Hi-JT; Sun, 27 Jul 2025 04:33:04 -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 1ufwoY-00016V-Cz for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:02 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwoW-0000An-Rs for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:02 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-6097d144923so7568862a12.1 for ; Sun, 27 Jul 2025 01:32:59 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500aedabfsm1775300a12.60.2025.07.27.01.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:54 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 30FD95F876; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605176; x=1754209976; 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=7iCEyg3QtmaVOQTKiwCx605AuN4cfCmZflK0AhNrDjw=; b=DI48LvQxVwkMTcD5ak9+P8YyqPhUQPYhQVefInAlsDeo2FBj1aQMCKF8rIUYdDxVNs 4ZJybKfucZ+5dQ5E/9wXhpaxTYTWKaYEZoNiiqTnr/eIVNKVprFfFohdxeq27w6oQSVF BMIYa2+vJO7YlGSWea9czBlsRycT3NO1Q/o2WSlH64j/EQ01YhK5DkFQcmd/LKQFxYBJ e0Jb3hNxQB0b7A9JYLUCACWYUFvfPi/2dYAV5z6LWSkub1aU+PVZoCc+7XLMegQOrkhn plVy1M5IJafAialOz3z69cGcBZaF1d+VbPehYu00vJAhpHyXLtm27L3IU+PGDdg5TpmO +qHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605176; x=1754209976; 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=7iCEyg3QtmaVOQTKiwCx605AuN4cfCmZflK0AhNrDjw=; b=CSQMprw8MMU/TuuVog2uBJpjknnxXjLNhxCE4FK/TA/bQo0DvyHffC4wgH4LY9IXth 1K2d8bwGXWTAh+9d5dMy+wJ9IOrTMUDAvvieykRuzeKbIersQCBZDWuBFXaHTD15zn07 SmmU3vF1UBgEQH9qAPRMAq750rZUmEceolE2eNkLpNfQpx8CqTabm5dUq3Vi1uHbt6hg XtjK3WvsXa0IuhA9Ea8xesXwggtAVyleTfTNgXaakHtzcpl3wLSsY6VTzHbn/R0/S82O EfhTyTod8jz9p2ERtliy9XnzxLzHerq219Rgr5vB0+iTCOohrJQfhJPaJiwH1RBiCRRN 3EqQ== X-Gm-Message-State: AOJu0Yx8w17xJbvHRLnSdR9ad1xsB8MIbvRUOyUMh0WKE3k/M1DKGs/d lvC42bz6BKtVIZVnTJ63xD5qqWcjRQr/1N7bKKU/gTZos6vIpkbAvr+avRqy5v3VnQE= X-Gm-Gg: ASbGncuw88VtipAM6kYB1O4FMuYWP7xezg/LcAbNZP0d0+xkYfOVonxtHPuFh1t2xHh IgZHn9iI3ZUW9RzaakrSYfOYP6Y5hNDHIGTiY36pr2T6EUhwcRadqnI0EeUUGf7gSGjQ/jYXtL0 3pocC6niAJ22HsAo2j4GoqNSMUWA+T/denw1c/cqrKfHPXLzIwNrHYus91fN8lRb8A/FxVTVmva bw9P2Fw/SOtEKZMJXw6IY15rKd5MxK/5bcjsGmh5z3bR5eHhtoUEhyYaSXdiCpN/mvnVPDBXEcl FZUnNGmtZ8yfmxYSqytIpg+FFKSIxt4SEUGlfEuVfDivqsIaU9KO2ziCpzzg0gDWqNhqNTHgtc7 OdbsnqAdUUHXqMZcD+9s+Tyw= X-Google-Smtp-Source: AGHT+IHaLqRHbk/3yNycK0qL3RcGkc505tSdIVezGRkMyzLs110VUOoB6j8Rtv2qQo1elBJhqpssQw== X-Received: by 2002:a05:6402:31a1:b0:60c:5853:5b54 with SMTP id 4fb4d7f45d1cf-614d1c06a2fmr8936646a12.14.1753605175923; Sun, 27 Jul 2025 01:32:55 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis Subject: [PULL 01/14] docs/user: clarify user-mode expects the same OS Date: Sun, 27 Jul 2025 09:32:40 +0100 Message-ID: <20250727083254.3826585-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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::52a; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52a.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: 1753605227761116600 While we somewhat cover this later when we talk about supported operating systems make it clear in the front matter. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-2-alex.bennee@linaro.org> diff --git a/docs/user/index.rst b/docs/user/index.rst index 782d27cda27..2307580cb97 100644 --- a/docs/user/index.rst +++ b/docs/user/index.rst @@ -5,8 +5,9 @@ User Mode Emulation ------------------- =20 This section of the manual is the overall guide for users using QEMU -for user-mode emulation. In this mode, QEMU can launch -processes compiled for one CPU on another CPU. +for user-mode emulation. In this mode, QEMU can launch programs +compiled for one CPU architecture on the same Operating System (OS) +but running on a different CPU architecture. =20 .. toctree:: :maxdepth: 2 --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605358; cv=none; d=zohomail.com; s=zohoarc; b=AkBO8y4kkH6PRRS+NyZ4OSAQ4v4FQXHKntwYVbwiDO7CoPaaoWO0TObD99E57jtAb8coZ6pf1YuNj2zkieURjbj5UeifCQLWjvOZzbI4MPWjRNNS3s0jYV2JxynPTHq3NBTLBCxB7vnZA1uYIpfL63BJNFwTGMOxANwIywP6eXg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605358; 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=YwfzgUA5DnLjY6SQjt9FXqBLKfUf1HAmMnkrm1jg7bQ=; b=LdMfw4HFdsBlXViC1cAjgJZaYjlCHUmEP+NFQoR+GsD9f8JmSnPz2OYyNOvcyY9yUzehxuHbE4CNsWTxDJsqAN7CIM+cZhgPeU5aMsLa7C+fy9H1Mrgm2465GFEaSApzy4peyrKXyeimGVujE89sab34tBkylJyV6xwWBbXTHA4= 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 1753605358447180.46353993743014; Sun, 27 Jul 2025 01:35:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwop-0001qH-2o; Sun, 27 Jul 2025 04:33:19 -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 1ufwoZ-0001G7-Qj for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:04 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwoW-0000B1-Rp for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:03 -0400 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-ae0dd7ac1f5so675881166b.2 for ; Sun, 27 Jul 2025 01:32:59 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635aa42cfsm257450166b.103.2025.07.27.01.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:55 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 43CED5F878; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605179; x=1754209979; 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=YwfzgUA5DnLjY6SQjt9FXqBLKfUf1HAmMnkrm1jg7bQ=; b=unJJWfIkoFPnNJeHau2lVifdx6mBsmZPfXDpoAMlAd/S6pW9bN1gzI4XEJB/VLLOUX 9Dqanulz6ooAbO6DSh9nTDk2Efwxo+eTXIPR8e8UbRYec5n0AhM3BrAhLeHcPDx3kpQu C+jli6MUCUGPz0pe1ID27RAW4TeK1tzFuptku9IQjeUgYYN1ezCOxFRIb5VZXMacnCOX 9qz5thlZ2HAHb/5lXllnqwZVgk7LaMN+Ym1SMNXdAngTrAu9XnXuBEwDyw1Ch3f9Eujy Jftmz8SCOBsp0kUgRuxAUeokBF34SsLVfdl3glEeBglxl38qAzUtxuwJ1yRw7FLW0vk7 8SoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605179; x=1754209979; 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=YwfzgUA5DnLjY6SQjt9FXqBLKfUf1HAmMnkrm1jg7bQ=; b=j6kWmEyLo0vTqZRGzYuU7YXPuiQKtFxFAClyq/dI+0qIQnJb7ppmUC5+ofI0L/fSQQ bsfBNJ/sJe8dgzVnavgPujENFi6hZAPxODewjjvHPL1V1ke+n9fPWPNeuvHqg/kkzCyW Dv3fmHtaVkRvS4gavXRDNfeTUMEDAObGDIeDGLMfglHzNpEISa3h+nPWf0mcHTsR86hl Ml3PR1bYicAHVU+bnTpAkEin+Zt4mK6FVUkoJQa0zmAS6Vy/Wqp9gz+f5xEkaEMCnQ9t SC7S2E55zXWkq0hl5hW3VfgwRQzT8szzy6QlUp0BiMLmtZXN9T0FAHiIX6koKbElkBB9 8F/g== X-Gm-Message-State: AOJu0YyXKxu/AHylwoQhyTwu7oB4mA26hmBJydrkJ3kcLa7e5bSaJCU/ G3p7z02McDbxwGcfB9OTTYeYJ7/P7QTIWcrsGIzj7knCNBt6Sj2aeFKTgdgiicewNypLsLbEQGx 1kBrL X-Gm-Gg: ASbGncsfFY7VYyErYUwCdrPfLpjk2bEnmBa3U1SFDLCIsmugvy6ktDaIOrFWe9noEFf pVFApo6lfYvCN53ziT04Cew3X89T7ddl1iw1nFVJQEwk4UUCAuAL8gRk1WLORSLhZ+lVk8gZxPr K+4LxSs5UbpasWz5mdZf0lz+TsgCfFi+Zb103TRQCz0nc3jqYGTlN7nlDePBw/n57/4JarqT3hU 2wEqKwqyBdrMaTkFKLW5NGQl+dEnnBlU31Lz/ZXOG6mvL6zHgM4IPhokgAGq11sAnE7yVPffYlQ WAq+W+Cqn1pn3GZ8hshtqCtohPH6aEMyxRih3lCvYupKwC9QGGOlP3uNOoQoXZiUYyJIswzCIeB xHXN0u09Aw44fU4B65hKfeDM= X-Google-Smtp-Source: AGHT+IGwBEz0mwJQ/BrW7++YmEaeawbhQYEP3P3iqkHvco1wv2eZrnIYEjJSexF5QCIlGEjX6LTStg== X-Received: by 2002:a17:907:3e23:b0:ae7:cb7:9005 with SMTP id a640c23a62f3a-af618f0346dmr747917066b.35.1753605177712; Sun, 27 Jul 2025 01:32:57 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis Subject: [PULL 02/14] docs/system: reword the TAP notes to remove tarball ref Date: Sun, 27 Jul 2025 09:32:41 +0100 Message-ID: <20250727083254.3826585-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753605358969116600 We don't ship the tarball and users should generally look to the distribution specific packaging. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/560 Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-3-alex.bennee@linaro.org> diff --git a/docs/system/devices/net.rst b/docs/system/devices/net.rst index 4d787c3aeb0..7d76fe88c45 100644 --- a/docs/system/devices/net.rst +++ b/docs/system/devices/net.rst @@ -21,11 +21,17 @@ configure it as if it was a real ethernet card. Linux host ^^^^^^^^^^ =20 -As an example, you can download the ``linux-test-xxx.tar.gz`` archive -and copy the script ``qemu-ifup`` in ``/etc`` and configure properly -``sudo`` so that the command ``ifconfig`` contained in ``qemu-ifup`` can -be executed as root. You must verify that your host kernel supports the -TAP network interfaces: the device ``/dev/net/tun`` must be present. +A distribution will generally provide specific helper scripts when it +packages QEMU. By default these are found at ``/etc/qemu-ifup`` and +``/etc/qemu-ifdown`` and are called appropriately when QEMU wants to +change the network state. + +If QEMU is being run as a non-privileged user you may need properly +configure ``sudo`` so that network commands in the scripts can be +executed as root. + +You must verify that your host kernel supports the TAP network +interfaces: the device ``/dev/net/tun`` must be present. =20 See :ref:`sec_005finvocation` to have examples of command lines using the TAP network interfaces. --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605226; cv=none; d=zohomail.com; s=zohoarc; b=hbKwoyWfqk3M/yfDoXamm26Oi5n+NqhW6XcDxTJQ8q05QYlt8jjyCTucfQREb+sWdbsquDI7SHVoWh2/fHk2HUGjM3Ps9eT64mxt0k74yiJC3qplvVY0r0m4HrljuHkYKpu2HVHJpH30QZz+Q8eoSJa9k1WZ9HrU/k/OF0f7AQI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605226; 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=bMM/DF0PH1Ae514zCcDeAafowmFTAthBMPUUfVVGAHU=; b=JukZUV3GdX6OWryIq4insBT0o7d2mBpRch6uFyO9VznWvbvW4JSyVl30s+VQH9YunZV5cKvICx9jxONWU2g95JxVWcLOxdz/Be2LGG2TD6tI2esJXkCZtBMZ/FO4i0OuXpEskJs8fFsCSuRajAKovy0NOVz07O/1UbOk8XfzP18= 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 1753605226403611.3963886541534; Sun, 27 Jul 2025 01:33:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwol-0001hx-KT; Sun, 27 Jul 2025 04:33:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufwoY-00016Z-H5 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:02 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwoW-0000B2-Rp for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:02 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-ae3b336e936so687898066b.3 for ; Sun, 27 Jul 2025 01:32:59 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635a65fffsm252102566b.76.2025.07.27.01.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:55 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 584A55F89B; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605179; x=1754209979; 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=bMM/DF0PH1Ae514zCcDeAafowmFTAthBMPUUfVVGAHU=; b=XiAb6s0ReSnugIKeg7sJvIE2+/XUhQBMxIGwfCERf0tHSDRXrQyi8nAiOYIYDVGROG bs8MK+FWxSqz7U6n9XymTRXurMvwBH4YkLZTdzOqGaKD6WcJwRQvc6e2+h/yyO4FcSXX WF1ew3IWyWZKdPKyGQbBjV3sqligKWGvzSo9m0/z4ufv5HvNnTRN/E6BPuOSweM0+D8Y fc/LHLzPHkf7ZrKkwCaMX4aOT6t14quDiSjAShlK1RX5g5nRgVBEOq2ImOhmFixIcLiC 0VAgDfqNavMEM4aT0icFVkv9CJ63zAd7u99i9UvV9yTPIFuNTVqL8RhhfbBzPIoDrlAo 2ilw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605179; x=1754209979; 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=bMM/DF0PH1Ae514zCcDeAafowmFTAthBMPUUfVVGAHU=; b=cKKTdNBEqI6Y83TQFGQojbEcjP2q8Aiq6wy4DS/scxdlLSf1MxgLO0rmqKhBVfg6fM lWcIH7TBbSAXwHQknMv3zeKn3ouPqkjpnEsCjRw+0blUMNHQJZH09qoP54363WcEffAU GJqbIFIA5Eo6ijD8hnAJunat2cEkXIujyq4vy7crHSQCCRHkGqdg7pEknuslv2hIUBs4 PrxCz2O5uLoSKPE3vq4P6kSwMzf2r6cyWjXWLokSTa5JU/gD/8o0szi+g1R93IzjF3si i3eycNF0g2dG7Jf8W+mlcryamFNnXTgStZJ7aJg+CQKzPcNzqSIAGT69M2K6mMVGJzFC 0d9w== X-Gm-Message-State: AOJu0YzOctyf72JAGGNpF4fPhPQNu9flPxQlcLBTuGIjjNCG5vcdKiDD gE4cbWE1CcokYP2E6QG/5KVBgxxaoNvm7MQMGy6hm6Z7a5nz+lPeOfCGFrpxX8qOZLI= X-Gm-Gg: ASbGnct6u4zlwD7jP+TLxmQTIRUFIYsK8wgQHiIlY8Hvv2xrOQSoEf3U0SYKV0kRKhL 8IBxmsS0is/FWw1pKPaqyE1rshweLPxQnOaFTQQ9BHTQdBMu6tKt5HS07NQwxH7koWkmL4l091S 8PDyJEghiB3+ZMQjYQzuNZ+h9yghTHeBMDDQfpw0lCoeK4M9vF9skx3cpnpGBvbbIYl6Ex4QM3h A1w3vFbAeZ/2ihCB/NT9JKREX7S4KOTtOl9dlokYQVKiNotO2M12MscUVTiDJCGtUqDRu3468Fs adOygquofO+atiBiH4okiYXaArkY4zwPmcsjo5AVrotx82u3PtvYNvyBHixlwWq8x70PALO7gA/ SeEK6jYR/LlHjM7Osufg/1p1PLBoYD6G5fw== X-Google-Smtp-Source: AGHT+IEWllw90zIrqfthL0JiLe3iYpPNqi7Tztdxc0P4bjJKAiDkwl6FQhO0k/RflAnRhau8k0aUUQ== X-Received: by 2002:a17:907:3e1d:b0:ade:4593:d7cd with SMTP id a640c23a62f3a-af61c8a6743mr892580266b.13.1753605178660; Sun, 27 Jul 2025 01:32:58 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Richard Henderson Subject: [PULL 03/14] docs/user: clean up headings Date: Sun, 27 Jul 2025 09:32:42 +0100 Message-ID: <20250727083254.3826585-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1753605227838116600 This was a slightly duff format for rst, make it use proper headings. Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-4-alex.bennee@linaro.org> diff --git a/docs/user/main.rst b/docs/user/main.rst index 9a1c60448c5..b8ff203c212 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -17,28 +17,34 @@ Features =20 QEMU user space emulation has the following notable features: =20 -**System call translation:** - QEMU includes a generic system call translator. This means that the - parameters of the system calls can be converted to fix endianness and - 32/64-bit mismatches between hosts and targets. IOCTLs can be - converted too. - -**POSIX signal handling:** - QEMU can redirect to the running program all signals coming from the - host (such as ``SIGALRM``), as well as synthesize signals from - virtual CPU exceptions (for example ``SIGFPE`` when the program - executes a division by zero). - - QEMU relies on the host kernel to emulate most signal system calls, - for example to emulate the signal mask. On Linux, QEMU supports both - normal and real-time signals. - -**Threading:** - On Linux, QEMU can emulate the ``clone`` syscall and create a real - host thread (with a separate virtual CPU) for each emulated thread. - Note that not all targets currently emulate atomic operations - correctly. x86 and Arm use a global lock in order to preserve their - semantics. +System call translation +~~~~~~~~~~~~~~~~~~~~~~~ + +QEMU includes a generic system call translator. This means that the +parameters of the system calls can be converted to fix endianness +and 32/64-bit mismatches between hosts and targets. IOCTLs can be +converted too. + +POSIX signal handling +~~~~~~~~~~~~~~~~~~~~~ + +QEMU can redirect to the running program all signals coming from the +host (such as ``SIGALRM``), as well as synthesize signals from +virtual CPU exceptions (for example ``SIGFPE`` when the program +executes a division by zero). + +QEMU relies on the host kernel to emulate most signal system calls, +for example to emulate the signal mask. On Linux, QEMU supports both +normal and real-time signals. + +Threading +~~~~~~~~~ + +On Linux, QEMU can emulate the ``clone`` syscall and create a real +host thread (with a separate virtual CPU) for each emulated thread. +Note that not all targets currently emulate atomic operations +correctly. x86 and Arm use a global lock in order to preserve their +semantics. =20 QEMU was conceived so that ultimately it can emulate itself. Although it is not very useful, it is an important test to show the power of the --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605365; cv=none; d=zohomail.com; s=zohoarc; b=kcHVPFe1rZ3dgy+vNpDh/TouoUW1HoQfcgdYnPx8iOuU67pBp+bNeMeMeyh2olRG3on95UK7cxCUP/ga2ybZtQzdsMg1JTrfUDsJRAadBCa4/v8qP7RbOp9DE9xr2E3Sghb6XwC0uWnUfWvkYqTIyDJZvoNjttvrm2cBQ4V5Q4k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605365; 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=p2m3SQZYfWKv+UrChBy8PfS+Pzpe60G8PEJwAKSc7FQ=; b=dQr90vYeXV7PJA9mArOaTUoVutHYgLFQ+mzh9CNgPpI2JMCeqEHOJvk0q3DuVZ5jTFIjzImzdvaOJrjPqbzPj3xFrDlPzjX5ZGxqrxFZW/qXIN1821bd4DNH8kxmUVY17CBeQJLWuG2PwhgjtcuaOBMXlvajIIQC6oZ7aFqc0d0= 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 1753605365466916.700575062414; Sun, 27 Jul 2025 01:36:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwp4-000241-8C; Sun, 27 Jul 2025 04:33:35 -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 1ufwod-0001Ts-Q1 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:08 -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 1ufwob-0000CG-Sz for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:07 -0400 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-6153a19dddfso97098a12.1 for ; Sun, 27 Jul 2025 01:33:05 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500a5723bsm1911048a12.16.2025.07.27.01.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 6E0F35F8B5; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605184; x=1754209984; 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=p2m3SQZYfWKv+UrChBy8PfS+Pzpe60G8PEJwAKSc7FQ=; b=oftDTxRmYvaQqMd+wuchp6BITllrCy8nlGXCcd7gU5N9nN1Jfbryuq2+wQyl+V1HUf zMuaRS3XtwW/3QwFiigsl08kNwxQVjr3w9kgzj1KBgUBaQrPdKqMdwu297aci+g6YhQ8 LhT47xlvvcaYHRTw3DM+LnlQxJr56QAcTv3JdfsEs8t98KHKRjhyhdThYpD0JqeuwHY1 57be3dGt9yINBFHPynHuVrr0RkVlrW7V2EzSFcq97btNP/hm7vIrkFvtW7S4ZuEgjrtp uhzK4IwOjofyQkkDibiVNdfv6xpzCUQmRO6N8AO1SzEHyuZBnTTTlee3WSKVjeSNnkW7 DEIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605184; x=1754209984; 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=p2m3SQZYfWKv+UrChBy8PfS+Pzpe60G8PEJwAKSc7FQ=; b=AfLwaBihxsde67JSctHtOmwrrreRSVVL5wGJ0Q5grx3MqEjsetew1BFEHJz05I3uGA vrtuQHSocAj5Rk1/qpAtB3jct3uuzFucJCfyqtwXNSi/PaQTHrGWUsu6IBKdP33LNuJR l7XPbP5xly5xfiy1IOmbinK6cke2lpcNuq45TLny8q9zQf111+LVdCn/sWQy/13TylIi lyqcFgHvBv0NsJVf7u4b3LFIn8vQpGFTEOtudI8URz+boqSZSSwdqmm0zBvtTI82dCML un08xyL4piP02apAg+vkK6SWQgJHss04vL6TDTbyCH3luUHDKuhH7umIjfjraOEpSh3z hCOQ== X-Gm-Message-State: AOJu0YwsXfYnE2jV/v2rLCGVQM3neddcudPpUb9YlWp6sdqRc6JxqZRB Ny/wshk+lP1zamt9lMg/x2UwmvmyIf+ofLTJej1WznBE3HFkqMZzoV14xK6L3ZsplghBkxwjsWu uFPRp X-Gm-Gg: ASbGncv/5VtI6xLQT/7LW60ABPqRBZD+Tn5Xj7jUfITgLnuQzy4Wuy+ZwFPKsXorxIF aXQAoVB6hXexzvnRT8Ja+nn6on/t6zO+xYRCUds+FdoF2TZWZlu6WWjygeI42rx+f+HLvpIT8DL cJ5mns6fC5LST1pDCjmvpShAfE094hm08jUYwKqXrzeEZoYao3yWCbYiOhvV18VRLDYVz0gaR2X 2wKzzOibTRx7NyldXKxH42+6g+8NE6r+eKd/wNDZaOBrIq6WcqITVAH63H3vh2PI0i4WkN3Ha3G HHlWgNdECPnp/lbf7vzhSHPmdJIKT4hkB91JNpqo+eDna7kpzUSLMspMhtAaUkKZ8u9RZF+nQZ+ +Y+QnGmK9mdJWnQ5niL6LUlY= X-Google-Smtp-Source: AGHT+IGrYLbRqVCUsiNGrR5sdZ5thkb+19q6ayql8x2Qjm9c7UhyRAfWKJnNYePIlsp7JFsI2AAaww== X-Received: by 2002:a05:6402:51c7:b0:614:d585:35b3 with SMTP id 4fb4d7f45d1cf-614f1bd3616mr6746684a12.1.1753605184133; Sun, 27 Jul 2025 01:33:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis Subject: [PULL 04/14] docs/user: slightly reword section on system calls Date: Sun, 27 Jul 2025 09:32:43 +0100 Message-ID: <20250727083254.3826585-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605366915116600 Expand the description slightly and quote ioctl(). I did ponder mentioning something about why DRM ioctls are often missing but I see we have the I915 ones so I guess its just no one has done them. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-5-alex.bennee@linaro.org> diff --git a/docs/user/main.rst b/docs/user/main.rst index b8ff203c212..05de904225c 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -20,10 +20,14 @@ QEMU user space emulation has the following notable fea= tures: System call translation ~~~~~~~~~~~~~~~~~~~~~~~ =20 -QEMU includes a generic system call translator. This means that the -parameters of the system calls can be converted to fix endianness -and 32/64-bit mismatches between hosts and targets. IOCTLs can be -converted too. +System calls are the principle interface between user-space and the +kernel. Generally the same system calls exist on all versions of the +kernel so QEMU includes a generic system call translator. The +translator takes care of adjusting endianess, 32/64 bit parameter size +and then calling the equivalent host system call. + +QEMU can also adjust device specific ``ioctl()`` calls in a similar +fashion. =20 POSIX signal handling ~~~~~~~~~~~~~~~~~~~~~ --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605233; cv=none; d=zohomail.com; s=zohoarc; b=RyNGqegg+d1mnlX+qrc29u0YpgH99VTEMzaGnI2MPB6CKw+Ep6jule7CqEtQx4xXcVVBR3JLoELSgKJsHDhgM39p63kctdMlv+F06nM5BlqLik3In8cX6NwekxY8ZfrTTIhxs2qM6HiIPu/ubnj/FNgSuCVxqHSmQWulsVFj39M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605233; 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=7OlA+ob74f5T4fFIB6Rp3n1iUC1Mv/XkkIeKTnYYocg=; b=cHF1SkEvL8DAd2Y5ozNXQqFmIVGBAcqceERxnSd9moenSc+S0BWBigP18ppAD5tJnqiVdWxOcbWw1AXDZvXORKENClV82abmzP01ejcZnjlKulSObYT2BrV4doGUjK6Kh8DLTzi0HCdvSDLYnWONqvv2XrwmIuMPP63L7qEZFyI= 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 1753605233668423.47855480309613; Sun, 27 Jul 2025 01:33:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwok-0001cj-9E; Sun, 27 Jul 2025 04:33:15 -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 1ufwoc-0001SR-CQ for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:08 -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 1ufwoa-0000Bv-Df for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:05 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-ae9c2754a00so681632566b.2 for ; Sun, 27 Jul 2025 01:33:03 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635aa3ff1sm256753066b.101.2025.07.27.01.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 83BB85F8BD; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605183; x=1754209983; 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=7OlA+ob74f5T4fFIB6Rp3n1iUC1Mv/XkkIeKTnYYocg=; b=q/34DsYM4FBc/KY00YKyvtriGva7e2YXj2j0vww2Arzv7jKUY+VSm9C+2y1PeVZq9a jeAW799MVASCMCdGoaCs2/SETj878nNkQ37TAc029Qc5hg1904utY0tvptO2gQargHTm rqFI5c3nJkeOfbFkhqMJP2+Lun52t5zMOsaXrxVLYswFpN11m8KzGcXlDyr+F57gmvRQ rSLICVX35uqeAGIzn8EVTOlRSfsTZrENf03rh9bKafa8D3rJH3uYYqDsBwPGW9m0rqJR u9yU/40XKFEolCFkO35WNtZa8In+I7lBUHv/UrjPhEL5/hz5QAYRwOWimBisdC2n2djd hBPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605183; x=1754209983; 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=7OlA+ob74f5T4fFIB6Rp3n1iUC1Mv/XkkIeKTnYYocg=; b=pv91OONGYyo2GwPiktqOafa7J8OYqpnTGAJ9maon3CWbrV6aNGj/0eDaYJtuq6YKF+ r0EDc96SajPe8yZtaoZ1nt10zR7APk5GWW4Ei3yYFtoq+3R/MeCQGBq5//jkCJCundpu m+kpP7HrQAShxomo/Rd2dS0t3Tb174WAN0kLuNQXcKYhy/eLaRNhmeXfecIDWRoofYnv GZqd5zX53iqfPBAk3tNPJ0P/qvyNuZ3h7tGuzK/kK6oLD6PJ4VJDh1b2QQl/PRMFPkxN 51H684yUWoa7RqduTZyVXNVm+sC5nh2eJ+CI6ii53VNNyn0rq3JfdWrPlCU7cJ7yFaZ1 OaQw== X-Gm-Message-State: AOJu0YwZyIZzOPTHXaw3rL61D1J724jm0mC37SWS3BYMDTQ6dc+LEzdr 4ycHJhuDA2yXALYAINYQLhuQN6OfwvrSrO+bgQSw3kQKPU0oWyN+//OLPNLCbMKRTSTEKxHluMi z8w0S X-Gm-Gg: ASbGncviJtIIvb2hyhv3mzNeu/6116WBpgkA0Pz/3Z/HPAk0duDayCwo4Uv2FDeWT1E Gmtv95V/c2M5yeO746+FJIaWrYfnQLnWbZwElls41IPXlD8ghUL1IHvh3v8WKeHdIdo/ogyub0G hXWH5XNx9cw6v2D5zS21pDWqk69yOLG0qB/a3/jwn7FCAj2GX0j+EL5RPrCUWzWbqXFXx5J7RmG ciGnNsspjefrvIjW1OLbA70KBuVLPgYj6QDGH3xn9PuDGc0jmUBrx3KaehvK+62NzHoTUdGFEzO 0+Odu+RqbasyATEAuvThDYw96FdGBjTnG6JZPbyqbPhUBNKEeAEZrCZFcpH8+NNxVwzozlbh1DV J0ehV7r0TDLHJ+qUoFw/S/bc= X-Google-Smtp-Source: AGHT+IGOaCe4525XSZuTRKtS5UCWfxefw3vcJ56x7IIcJZPvUzf1uBax1vxGLqgwqxufmjMrZbiftw== X-Received: by 2002:a17:907:7242:b0:ae0:e18b:e92f with SMTP id a640c23a62f3a-af617704758mr842378066b.23.1753605182825; Sun, 27 Jul 2025 01:33:02 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Richard Henderson Subject: [PULL 05/14] docs/user: expand section on threading Date: Sun, 27 Jul 2025 09:32:44 +0100 Message-ID: <20250727083254.3826585-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605235810116600 Potentially too many weasel words when describing atomic and memory order issues. Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-6-alex.bennee@linaro.org> diff --git a/docs/user/main.rst b/docs/user/main.rst index 05de904225c..347bdfabf8c 100644 --- a/docs/user/main.rst +++ b/docs/user/main.rst @@ -46,9 +46,15 @@ Threading =20 On Linux, QEMU can emulate the ``clone`` syscall and create a real host thread (with a separate virtual CPU) for each emulated thread. -Note that not all targets currently emulate atomic operations -correctly. x86 and Arm use a global lock in order to preserve their -semantics. +However as QEMU relies on the system libc to call ``clone`` on its +behalf we limit the flags accepted to those it uses. Specifically this +means flags affecting namespaces (e.g. container runtimes) are not +supported. QEMU user-mode processes can still be run inside containers +though. + +While QEMU does its best to emulate atomic operations properly +differences between the host and guest memory models can cause issues +for software that makes assumptions about the memory model. =20 QEMU was conceived so that ultimately it can emulate itself. Although it is not very useful, it is an important test to show the power of the --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605227; cv=none; d=zohomail.com; s=zohoarc; b=fxtsycIdYbhUHwb0ZoqsZbAD9arNXpDX2eyJykl6+MOGy691n7Iuh99PUARt1bsd7Am/xEj04e8CCGfkQQT6jZKrteIveZtFKbkR/yVshaMRQcciKWha9h/rq+hk4jt1D/9UPo7db8yRvaTJ09C8jzl0tOE1vGtidGwaSfErQtI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605227; 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=lv063VARif1A14hlZGWwamkKdjeXZOTuTRh5eNUvFJw=; b=kNcoLjNpT+VSJLfT6vdVCNxPgp2IbOouyFdsO/Kju7FA4RDAOLqeqPXJo/QkkqicEnjdisoCpBWbIuMDeB3tcvw+IVyn3HlLo+SydS/T+0QR5HYkdwscnMOyCpZs73QFwbn0n5eFM12FWPEo8i0GNIFNcah662hWmoSnRc0gFBU= 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 1753605227192826.2011648792874; Sun, 27 Jul 2025 01:33:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwoy-000220-RX; Sun, 27 Jul 2025 04:33:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufwob-0001Rz-S8 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:05 -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 1ufwoZ-0000Bn-KP for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:05 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-ae3b336e936so687901866b.3 for ; Sun, 27 Jul 2025 01:33:03 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af63585ff65sm258509366b.29.2025.07.27.01.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 9BD155F8C8; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605182; x=1754209982; 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=lv063VARif1A14hlZGWwamkKdjeXZOTuTRh5eNUvFJw=; b=XjTaHTsdCRteU+CaNJgvkVAVVwI6s6TJLTz9OSP4WvBXCS1JPaM1N2ad3sw+c2gdq7 s/XaFGKhIiJAiqi6V1iGGTMyhsr7fKCg46WJuIxSvomg4TBMRUAjp6PQ33/VGEwHKrmj vYfYw3jM+8xDaYw0lUqF17QMgnP2QN7mRP1feOvXBXXQgR8zlg2XRElMx5dUMqUofp5U hXH77uxI+o8l5GRXPeinDRBXUn0XcFA8xALqEygMuj7L4ft/A3PWg/mJZIrwDgG4hmeP +nVZi4mEMaK40Jmcnb8DZlmIwCILhn7wOaQK+jTaFT4xMnqjiPKcNGyPtrLBzg+m1J7X dqQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605182; x=1754209982; 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=lv063VARif1A14hlZGWwamkKdjeXZOTuTRh5eNUvFJw=; b=uEtMGqqv61c1x2RJeoher7GodmLaILxlmdpEG3+JPdADtF1ocN+XClH9BUqgZDO2k2 H9i7rgX3oCNApytGtW3uC0Js2LCCCerAaa/HfmpgRLBIcuG3QXoAcw/MM/StbVX37JCL EVJ1IMqru8eBzcW1GHDUrmw1zDJQ/NhxreMRpvH+KbQyN9yxwWCFGeBYh6uxKR6a3upH 4zrSWcKKDRdocj4th0PvasWBxCOSbyQ5cUchtVX+3Hb3SosTZoPspbpXmOqjojRhfgT8 88BwkyiHNiHPFEt38swBNiSsms6mpcYmtGZKCITXgiiM71cNwJEg72Qb2G58MfC5V24j 73Nw== X-Gm-Message-State: AOJu0Yzna5tJqpqFen7A4opwjglPpXxvhB5k1wbQhJ5qzCo3fIjuKwYU W9oNR+FODtoiOKWyTuZmcMm9ftgmDYHNxqPlSecdYzIyps99d2xPV1EzkLstyhi07po= X-Gm-Gg: ASbGncuK33IdWznDEjbz2+CYNrS8LLhwjA/EEUK5qcRQrpmLmChXf3wzl351m4Z+sEJ dJ/xh+I4uy1c4KHnyLNviDL9djXhrEgBqtdJlnNlnVVh7qYhR8ckfrLY2pWJ0XscMHuYKaacyDg FtDJo7hehnCKS+4FP2WSg9yPhqimq7JxCQj4cwU3V+FVwj8Evxc3TWV6QfcdvbdzerGFbwrwiaQ Yb/Ul6AIHFrWvIbzdrau9BLJlfZXE0lmMjTRm1/n5RsHkqODqbRy3Z8QyMtwp4h8QVJoLXpKJFA pVY0sZ6IF+OlktYSjkSFydWQWXBJXqwvHFx/vcm0ylVUfSOdVMrrucEOXXGoD2GwuLUjiex/hpD Bx9+lTCzAbD+tE02E9l84OWM= X-Google-Smtp-Source: AGHT+IGxwAY+z91br875WvTPBwHh/2qGfoqppPt/cSDxLH11p4dOg/aH4XxCj1U2sqh8hhydHHwImA== X-Received: by 2002:a17:906:d552:b0:ae1:f1e0:8730 with SMTP id a640c23a62f3a-af61ec115d1mr994925266b.57.1753605182030; Sun, 27 Jul 2025 01:33:02 -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?= , Manos Pitsidianakis Subject: [PULL 06/14] tests/functional: add hypervisor test for aarch64 Date: Sun, 27 Jul 2025 09:32:45 +0100 Message-ID: <20250727083254.3826585-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605227861116600 This is a simple test case that runs an image with kvmtool and kvm-unit-tests which can validate virtualisation works. This is useful for exercising TCG but can also be applied to any nested virt setup which is why it doesn't specify an accelerator. Tested-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Manos Pitsidianakis Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-7-alex.bennee@linaro.org> diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 8bebcd4d94e..ecf965adc6c 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -89,6 +89,7 @@ tests_aarch64_system_thorough =3D [ 'aarch64_device_passthrough', 'aarch64_hotplug_pci', 'aarch64_imx8mp_evk', + 'aarch64_kvm', 'aarch64_raspi3', 'aarch64_raspi4', 'aarch64_replay', diff --git a/tests/functional/test_aarch64_kvm.py b/tests/functional/test_a= arch64_kvm.py new file mode 100755 index 00000000000..9fb9286139f --- /dev/null +++ b/tests/functional/test_aarch64_kvm.py @@ -0,0 +1,71 @@ +#!/usr/bin/env python3 +# +# Functional test that runs subsets of kvm-unit-tests on Aarch64. +# These can run on TCG and any accelerator supporting nested +# virtualisation. +# +# Copyright (c) 2025 Linaro +# +# Author: +# Alex Benn=C3=A9e +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from qemu_test import exec_command_and_wait_for_pattern as ec_and_wait +from qemu_test.linuxkernel import LinuxKernelTest + + +class Aarch64VirtKVMTests(LinuxKernelTest): + + ASSET_KVM_TEST_KERNEL =3D Asset( + 'https://fileserver.linaro.org/s/HmjaxXXYHYSqbes/' + 'download?path=3D%2F&files=3D' + 'image-with-kvm-tool-and-unit-tests.gz', + '34de4aaea90db5da42729e7d28b77f392c37a2f4da859f889a5234aaf0970696') + + # make it easier to detect successful return to shell + PS1 =3D 'RES=3D[$?] # ' + OK_CMD =3D 'RES=3D[0] # ' + + # base of tests + KUT_BASE =3D "/usr/share/kvm-unit-tests/" + + def _launch_guest(self, kvm_mode=3D"nvhe"): + + self.set_machine('virt') + kernel_path =3D self.ASSET_KVM_TEST_KERNEL.fetch() + + self.vm.set_console() + kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + + f"console=3DttyAMA0 kvm-arm.mode=3D{kvm_mod= e}") + + self.vm.add_args("-cpu", "cortex-a72") + self.vm.add_args("-machine", "virt,gic-version=3D3,virtualization= =3Don", + '-kernel', kernel_path, + '-append', kernel_command_line) + self.vm.add_args("-smp", "2", "-m", "320") + + self.vm.launch() + + self.wait_for_console_pattern('buildroot login:') + ec_and_wait(self, 'root', '#') + ec_and_wait(self, f"export PS1=3D'{self.PS1}'", self.OK_CMD) + + # this is just a smoketest, we don't run all the tests in the image + def _smoketest_kvm(self): + ec_and_wait(self, f"{self.KUT_BASE}/selftest-setup", self.OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-smp", self.OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-vectors-kernel", self= .OK_CMD) + ec_and_wait(self, f"{self.KUT_BASE}/selftest-vectors-user", self.O= K_CMD) + + def test_aarch64_nvhe_selftest(self): + self._launch_guest("nvhe") + self._smoketest_kvm() + + def test_aarch64_vhe_selftest(self): + self._launch_guest("vhe") + self._smoketest_kvm() + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605247; cv=none; d=zohomail.com; s=zohoarc; b=Ai6NSExm8NEMdmBv0QmfwOat1+FsOM/NVnrur01swPfwfOD/gYI9SCFvVSHjwdxmowoPjY9m0SYdWErXH/odnld5CHXRZb0P4FNKlUKIyCBRftVau6huJjns9XO2zI1VCteUKp/bpa+hmHrdELtcPy3ljyJmMoSECgCfqxPicVc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605247; 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=zNJ2MvKRs9uDkdQcc6X7MIK2k+T8sian3QFrXVTACAY=; b=c3JYbTCz2W4TYJMV35NDgbJGZzVyLvJDybKDW1uSqkAruQ7RAitJKA7maq1VVA6qL/zUQ7as08pA7LHRfQA2tP94XprNQg054j4gBUIEeXjuLe6MsUEu53REmwRY+j7hws/QuQ7pxvvpoSlpNvK+RKjclvXpLVHNWGAXFUMMbGo= 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 1753605247775354.72955214546073; Sun, 27 Jul 2025 01:34:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpF-0002Ef-4f; Sun, 27 Jul 2025 04:33:45 -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 1ufwob-0001RK-H2 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:05 -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 1ufwoY-0000B9-Oj for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:05 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-60c5b8ee2d9so7110343a12.2 for ; Sun, 27 Jul 2025 01:33:01 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635b42704sm256345966b.144.2025.07.27.01.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B48065F8D5; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605180; x=1754209980; 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=zNJ2MvKRs9uDkdQcc6X7MIK2k+T8sian3QFrXVTACAY=; b=j2ALle9JD68F+V78QllnazFXM9Y5ARh2H2/I/wLE2GSYxatX0trB1MokPCi9O18u4X Pza0WZBreLy2s1at09i+bymW9SMVdKWAtIY4slfbft+vNTyQ7IdSWzMAVhbMI6TmG5++ KiR0Cz+R2B1F0kj/vI6SHFStq9/5BPGrX0Uun7BNZE8EIZRV5bv15EgwCFJIQ9mMeSBW wCsZV4K0TcIGtb260kz68MyUvN5urfLMQOfvtI4H0dYJx0bCmOavJSWkIMtFmGq3jkZq PCb3mehEvFeDEcKRmOHqupLHsj2vm8BeZ0uztdNZSvyEJVb+A2UG0sbm8Kv09sFBcjm4 SBLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605180; x=1754209980; 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=zNJ2MvKRs9uDkdQcc6X7MIK2k+T8sian3QFrXVTACAY=; b=NDx2U5/8pZ+JedL/zMfVf8t/g2ab7NUtx3kcEdEpaECb+vws8bcbKQU6+TQazf4xfa DGQjVDLehNWbhF2ny7JDvFt6qulJOnBrwxAxFlp9xxc/Fz3feNagpLct6jKmiKgNCcgJ cRxNq2lbXDvmO35I6mKbZf+SVouJ9CiYEAIekk3kjU0AWn81ES3EILUkzCmHp4bB1SEk yQcF6tP8v6bmVQcu+R2Yv3ahglJU9m7bS/yEocG0AKaoLGi7HeW6DhbjxpNCjpbo3r2m DcyX9V2oHipm3Enz1f5oMJGqU3xc1nsB8a7tw2EhsyxwEHxV+Ha1pY7jukpQj6m5ee9D lb5g== X-Gm-Message-State: AOJu0YwIwA2D8J6COgt1Mm+0LSYDwSiK1PWjY7gk9CIs/wMZEC5Rd2ll yzxpuASCsHb6g5X0I5PJ7Mz7IjiqkVHhIw+YQFtC1tXRAfeEJce99WZYn/C3OrdJpWRrkcDso5m LNBHo X-Gm-Gg: ASbGncuRMVia8Ym1w1/vCLM47gh2bMImHOcjfY9O+1E1q7myXzXU+KqlryWb7QeBGBw itFI+iI4/ZCyRH5dInFpzSe0x7JOcz8EWtxJfIe96Uelaqhnw+ZLmC0B4p6MvPTKgoK/MsuQtma P5X3gbjUZjElA3M6OGviHrTQd6HB3/106CaskwfwO+FcAG96TuGMsGWJBbbVKlwfI6iHL3o3K8f 8D58yuFrC14QkF4igR2oNnFIUF1r4b3VWabHzRElVSZqXY8AtTuaS6R14urSF3TxZRLZwqID07T kxsGedeu9JsT+JsakAFngHdN6yVgriRmwcU0QJwNo8o7AMOCtxpScctC4HvEcMvDuejJYI7XyfB +pvGPVWpx+NXDOpFS0iD6hYY= X-Google-Smtp-Source: AGHT+IGLww1PThDFy3FXvnfotiX+XjiYB7VOllY5cVZid/9umnUtupl58ew48u88kyb1T0fhKva9Bw== X-Received: by 2002:a17:907:7283:b0:ae0:a483:7b29 with SMTP id a640c23a62f3a-af619c0d81emr946716066b.49.1753605180328; Sun, 27 Jul 2025 01:33:00 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 07/14] tests/tcg: skip libsyscall.so on softmmu tests Date: Sun, 27 Jul 2025 09:32:46 +0100 Message-ID: <20250727083254.3826585-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605249925116600 It isn't testing anything and just expanding the runtime of testing. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-8-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index af68f11664f..3d96182a7b9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -155,6 +155,12 @@ VPATH+=3D$(PLUGIN_LIB) # For example, libpatch.so only needs to run against the arch-specific pat= ch # target test, so we explicitly run it in the arch-specific Makefile. DISABLE_PLUGINS=3Dlibpatch.so + +# Likewise don't bother with the syscall plugin for softmmu +ifneq ($(filter %-softmmu, $(TARGET)),) +DISABLE_PLUGINS +=3D libsyscall.so +endif + PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ $(patsubst %.c, lib%.so, $(notdir $(wildcard $(PLUGIN_SRC)/*.c)))) =20 --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605226; cv=none; d=zohomail.com; s=zohoarc; b=l9fMo4VAF7hxFoCC+n5iLyIq0Zm92puZjUh2g+QYbwHajiYz73iVWbCKJ5hex/6CvK0x4lDdzXvnNmkXCEEIN3JIT34nRlu8VEXYC5D1XjmI2l3xgvSeebotUms3RctuoSMt4Kl8XVNj0w3Fmefe3SQb26imJa0QSqFtpXvUme0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605226; 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=RoLK9AJv4pJieo+fXA2Uyn932HEwol/SYLf8iQNNeQM=; b=oIdzqOlvgpbfJoTKFF232sbCwsftKUbh5AqVu5QMKn2e6p2Mhwgz3hMhTRuXzjdUuYV9pkMJrKDCFA1sc/I/udaq0D8/HGUQHQWeFJQhp+oyAUN2DPGz9goFSTEyb/xYxX34a1mioxEzuhMJlxb6FvXuSu1dFCMsj0xTbIvCEhg= 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 1753605225893915.3916085734212; Sun, 27 Jul 2025 01:33:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwoe-0001SY-9t; Sun, 27 Jul 2025 04:33:08 -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 1ufwoa-0001Ij-Hg for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:04 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwoY-0000BJ-T5 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:04 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-615398dc162so140665a12.3 for ; Sun, 27 Jul 2025 01:33:02 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500aef3bdsm1925090a12.68.2025.07.27.01.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:32:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CBA165F8E1; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605181; x=1754209981; 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=RoLK9AJv4pJieo+fXA2Uyn932HEwol/SYLf8iQNNeQM=; b=mQSHXgoNiHhjBOkn/qC8Pgj0idqdIJ2sq/ve4P8nrMSr1orvzBRptlse29INe8g+1m quwsfsRkoSb6zEXiL//lilRbCgzQESZP1EPVNvmvRRvTQqvb0mjNkPEvM75cfJgQTeEX Mx0eSW9sv6+MuQp7aw5DPlp9QGbpK+TDlR7uWfTWsAX0vbXEpczjKymxsEW9JHiho+V+ rMy+8o79XWaRG/tEZkQgkvfRQLFdNbjIP7xE8qG0o0gniqcDfgaJQrtYuMpJWCbJ9Ahb c+51kqqRvsRbC56ohLmXQxGujyIptaUqa5RGZQr3kVDKeUEvBTMkec4DxsRuYhBOyygX MMsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605181; x=1754209981; 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=RoLK9AJv4pJieo+fXA2Uyn932HEwol/SYLf8iQNNeQM=; b=TBja2dWgTSmS3yF12MVRh0bHbfLkw/JMCdDrLpSe3+9oTMwZoZ7e7LAzvny63xupr8 GdTA1ZtZxsdzz9m/Qfv4yxwoEpz9TnXDF67iSwnowjPfLdNGC2owtX+IhWr7suNhc6ws DauSWMt5eks4uM4FCaae82VCcQPkKQ0UuVBc8daEhsA7bxcpbB+3/gu6hHbvhsaM18p9 GZq0QIGxxdZ6YRBTJlUGMofV8TqPMejV2Up+6rPiXGi/T//bqyO/tW+UBBW9IqkWBHFp vwY6/BwWTJjphf/WICYAtHG2l1NuSss7MkzC5WhdeLPC+UgA0xgFY+Kt26R6KHErMLa9 UqZg== X-Gm-Message-State: AOJu0Yz1lSTJZ/u2E7bWUhmQP31h5eSokZW4zTDHM1FQe/5AtRDV8ZRD tNk3t3FdmPK0GkKawKiz/Z9R+FHWjILXcmyzXId9LTByS7s2ijZusepcd2KbjrtymKk= X-Gm-Gg: ASbGncvYd+VfNkHTGSgfC3uN4GBX/tam1tKD5aNVp/KrjL3cPbuUX1l3Gnzl9GfnozH HdzPu9+3IC8iURC09UpsbEXfRh+qGeiAOjqhGLl5sBiAbr4vZTlC89JimZP+nF2zhczjafK2CW1 0Gft4S6eYGEhN8eZktLzQ8vpHP6lDF/+4aQjG30v0KTZKhrFmdvOs9MoSI2yXJCgbbLDz6/xh3g zaBBv9lczz1x0OlTpbU9FijdpeAHmk0WCoAn+19NkSOkddI+dnf+huaFAckSZ31WdqwXvRGX/FG vbN+UjbYny3LzyWfyeLfwcfMPd2ojXyEySkFyyFHdyrTAYY95ew+wYb4mgaSTMrSKb+LKPEeJaS 112AnEjAbAnrD5DPwpW9Isrw= X-Google-Smtp-Source: AGHT+IHZLo34YarrSG9T7mk1gGQgWxCO27tJZqvQH87q0kYKSmeKXxLVjireKlcHl5lM/fVjTNvfqg== X-Received: by 2002:a50:8e13:0:b0:612:3d0c:a728 with SMTP id 4fb4d7f45d1cf-614f1d6a985mr5539460a12.12.1753605181114; Sun, 27 Jul 2025 01:33:01 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 08/14] tests/tcg: remove ADDITIONAL_PLUGINS_TESTS Date: Sun, 27 Jul 2025 09:32:47 +0100 Message-ID: <20250727083254.3826585-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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::533; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x533.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: 1753605227792116600 We never actually used this is the end. Remove it to enable re-factoring. Fixes: 7cefff22d54 (tests/tcg: add mechanism to run specific tests with plu= gins) Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-9-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 3d96182a7b9..97ebe8f9bc9 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -169,11 +169,10 @@ PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ # only expand MULTIARCH_TESTS which are common on most of our targets # to avoid an exponential explosion as new tests are added. We also # add some special helpers the run-plugin- rules can use below. -# In more, extra tests can be added using ADDITIONAL_PLUGINS_TESTS variabl= e. =20 ifneq ($(MULTIARCH_TESTS),) $(foreach p,$(PLUGINS), \ - $(foreach t,$(MULTIARCH_TESTS) $(ADDITIONAL_PLUGINS_TESTS),\ + $(foreach t,$(MULTIARCH_TESTS),\ $(eval run-plugin-$(t)-with-$(p): $t $p) \ $(eval RUN_TESTS+=3Drun-plugin-$(t)-with-$(p)))) endif # MULTIARCH_TESTS --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605376; cv=none; d=zohomail.com; s=zohoarc; b=X6P2mZ0E6oc/MuLitp/86vhg2D1/8La0OSzWIqt+NhhoP6s7uYTZWM/EhuYilTGioooH2+/Y6xQ3a+kZ5/z6m89zsVQMOFHZ8CtV5exV0BnYYW2Z0erSoRQdJG9s6XTDnS1MwrvCU+ONScVfyMxT7XRhXDOYyghBGLuynRaErvM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605376; 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=g7A/yYw4LUBPp0+haSiFGu0g5ThK058QpMamZZA8gaY=; b=i5uM+SwbViAkEM+54i2nbUwBwW4x425QAken7HB32G0OGasKgw+lGAPyewrjbfp1zcCmA0+Po5pGjl7My4xhEJ9wM6Fp5IiSdeQSGKgP/DOXcAS0P7CQ5dg9SJSEIGVz9iFgo5TRFJVNNs6vrOiabIKSbXBiv/4T9Z6R9ubzqoQ= 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 1753605376488691.2776242321921; Sun, 27 Jul 2025 01:36:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpE-0002CK-NF; Sun, 27 Jul 2025 04:33:45 -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 1ufwon-0001lo-9g for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:17 -0400 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwod-0000Cq-JE for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:09 -0400 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-ae401ebcbc4so551405266b.1 for ; Sun, 27 Jul 2025 01:33:06 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635b4a57dsm257809766b.147.2025.07.27.01.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:02 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E22165F8E7; Sun, 27 Jul 2025 09:32:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605186; x=1754209986; 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=g7A/yYw4LUBPp0+haSiFGu0g5ThK058QpMamZZA8gaY=; b=TVeJ11hJPQJG/P3ER1BxqU6xb7MXqPE0tNcavGyQLiLCqx8ZjhCHZiRw42CI3mBgxe K9Fjr8exP4b5oBuaQTjgwBmfYY51FCWrRGqD2V5mTsEDOQ0xG3H7DNhPqiC8jY2DS7yk 6MN2vggRWTonuSMfvWFUhh4hEB7T6mCLOKexq4RyUTWpQGhLgGp/eUrsjpl25bNaBQZK OD2AXHjr5hsBDzJP7IIAiA26zuNS7vk8TLMv57q5M9vo3YKQIEIDdsUNgJh7bmdEHwvB JFynUIrFnQUCIUy1A/xAlDySBIHVSD0dJqV/KX+hNrdBtqtxPgoMZ/tz3kYsStRu6WHu 7OUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605186; x=1754209986; 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=g7A/yYw4LUBPp0+haSiFGu0g5ThK058QpMamZZA8gaY=; b=uXTLVycpd8C8wuBZttoVols712nul8FFnQhaeCBjuSd3EAHEGmd5nZ01AxsyWMRhfR +kB14gLX+/6hVm+6Bxa9a6hdf9I7e0RkFFkuEa6NTPoRW2A9LrjFo7mXFwSeyIFxpMJN rNYUUzG1fgDiqrOJmEt1GOlOeUMdn9wDNMrL32lEnugk6ceddJcpu/FUjr2WnV8ARdrm +bH2L4+zdhyGgzi4DY/iFzHRCTc9LQVXuQzrCPA+o4MaZHA1r0fEtEdT+MwNdUeBxy1v KOfb5lhhv+FndgbDmQLGyAFrPADLzo9DD31QoYG9BQf/2jXen9hDzXXSkW3CZV3uhuIq MB9A== X-Gm-Message-State: AOJu0YwHqUmL/dw8kd1cb9XSnQ+RY0/f2f+KiIesgxiQf6K4Wi8ptQtG eCWOe9HQyoiVBoCl7BZYqQyKRjTsuIz/GP/3nhNbY+y0dOrZsj+HSqsRE8wVGODK9dA= X-Gm-Gg: ASbGnctQzXKecFt0+cOPVwOpTZXrNRZ8dOeMxcTski9QGYHevNCHJcRQ8WsuTvDnQW0 4mBMuGSB6ki9idyvQXpA01HJWntMSqf0NDxu6Lv7XWlQLpjgkTLwo6CloxsnPqkYPi+3ak+5D5k wifqy0wZ9iJfXnQPXZA6lTjF3sZSkJFIxQHpoSu1Aj77BMtmnofxXbsNrLcYn3EDNXCBbHxBajr BV1VOuK8fLN/7W2TB4zn4aSe+Y6WXdR/d5vmZkfQKpxoCLB32SC0/3lKAQ3uge/EnP3yKyMsIWo /utDJIOw7fOhrtaQIH3wVa63F5wbTGwjqFoaUMvyslPikqQjLVoSHs5jnLHblhX3nZzMtcpWEAm zPvujkR2T1XNzDRvocC2J4SY= X-Google-Smtp-Source: AGHT+IFNXLqoHmxHsHhCCf+TZUjf/jfIU12w/eK0Ykrf4HveCHiVSgsbr5LI/txymUFy2V+F0fD7jg== X-Received: by 2002:a17:907:3f12:b0:ad5:2e5b:d16b with SMTP id a640c23a62f3a-af617d0b1eamr986998766b.27.1753605185655; Sun, 27 Jul 2025 01:33:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 09/14] tests/tcg: don't include multiarch tests if not supported Date: Sun, 27 Jul 2025 09:32:48 +0100 Message-ID: <20250727083254.3826585-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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::62c; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62c.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: 1753605377189116600 We are about to change the way the plugin runs are done and having this included by default will complicate things. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-10-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index 97ebe8f9bc9..a12b15637ea 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -127,8 +127,14 @@ else # build options for bare programs are usually pretty different. They # are expected to provide their own build recipes. EXTRA_CFLAGS +=3D -ffreestanding -fno-stack-protector + +# We skip the multiarch tests if the target hasn't provided a boot.S +MULTIARCH_SOFTMMU_TARGETS =3D i386 alpha aarch64 arm loongarch64 s390x x86= _64 + +ifneq ($(filter $(TARGET_NAME),$(MULTIARCH_SOFTMMU_TARGETS)),) -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target +endif -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target =20 endif diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg= /multiarch/system/Makefile.softmmu-target index 07be001102b..5acf2700812 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -6,6 +6,11 @@ # architecture to add to the test dependencies and deal with the # complications of building. # +# To support the multiarch guests the target arch needs to provide a +# boot.S that jumps to main and provides a __sys_outc functions. +# Remember to update MULTIARCH_SOFTMMU_TARGETS in the tcg test +# Makefile.target when this is done. +# =20 MULTIARCH_SRC=3D$(SRC_PATH)/tests/tcg/multiarch MULTIARCH_SYSTEM_SRC=3D$(MULTIARCH_SRC)/system --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605311; cv=none; d=zohomail.com; s=zohoarc; b=lTHnWZlnUaYflqalTb/x0d/sOKu5vIYWW+mCNq318QuKGbAHFOBoiDepPrliEvdkRQxYT9kRaEgnxx/+/4C/2aCE0yGP6mpbiWXmVvCDqPVfFJAHN0rVGtVhYdUh5hI8gdch030b08tjC1ouaNf71b8izxx2scGg7+WnUlku5gM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605311; 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=XrjnOg4Zy/ZXUzrZG6k/71L6/AzH7nZt/YAib9zjkv8=; b=My88TvafX3gSDNBC1bfndtYHZUPj4jMC+e0oVFagITQWF7uTThpdvO6a/BrzWksf3nrDtsBIOFmlUvvKOxRdocqf50y+737kExHJF1N3pKQxUKoaGwf5FznSNU+8n7kZdJdWm1itGZBsoB5tnVEg+s0pbmQqZV6i+pItA83ElmQ= 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 1753605311397518.3428818716989; Sun, 27 Jul 2025 01:35:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpO-0002iA-KF; Sun, 27 Jul 2025 04:33:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufwod-0001Tt-Q4 for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:08 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwoc-0000CX-9q for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:07 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-6148e399effso5756528a12.2 for ; Sun, 27 Jul 2025 01:33:05 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500aef3bdsm1925117a12.68.2025.07.27.01.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:02 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 023825F8ED; Sun, 27 Jul 2025 09:32:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605185; x=1754209985; 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=XrjnOg4Zy/ZXUzrZG6k/71L6/AzH7nZt/YAib9zjkv8=; b=qXVvcNjERc3VA5cgK6TMS6mE7yRdgUVrSIDTi68IQG4Kgv02zOMZBidlbZ1JxjtMrw eIkERhx7LbFBFX7nkRBN1EEeiyg/eswSyruzPdNt3TfXqTA8mUZ8wLPkVKWP8iZG/riJ Izjxh3fFJCVm1Hlr4bsTrH+89MwSR5rvvgLQsmsdh8pSBDC1l6t5ycYv9fXCa+NUshB+ JlALGpathFAQiPZ58eiYxn6ZKM9jPRyOkv++qBZo8QzTw8ewh+aMS1aMbhhHpvpHoBsZ aK78JEvbhXMxIifqNDdvvGVUkguCGFhy6M/XjY9G8CnK/DRaacWeSo8TpeHSnMy/wK6s pG2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605185; x=1754209985; 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=XrjnOg4Zy/ZXUzrZG6k/71L6/AzH7nZt/YAib9zjkv8=; b=J43bu+wu+qhqRsdGW1fb2zfi5WdNvR3ipkuMtwgM+1HF+evf8of47zJOGBVH0KbhND Rgrle2NYVib5cozdfngICQSOxBjpH0MFuVyCpL2B8g6fQft/dKeU/U/MGpa/GVH9dZQo 6316i6piTd2l4d/bVINF19JQrQLl8628rJlUF9V1Rtn1R2IJEF2shJEAojEaGTCtklRr r+USjFhw3fq4vuD3BJFkuaz3tdvRlomYl+Nn8FFbFRq7Y7BeeyXTb7cev57cfKPgZ4Hx 5hEseroIlXLTIwHb+vnUmYmglJOHOyDvHXW+yZ7dLEkXxJwUNUHg+s3N8IQbzseg0rkY JBBA== X-Gm-Message-State: AOJu0Yy9zHowvj7js578vOXg00JQRB//arHLu1JZ6WKKbt6R7L1n5Zgz nHvN/uBFbDBNjWKVLunE5B5rGqzgjumxtdsZAQhzQMjGC+XXLtln6fkW7TozxCIea8E= X-Gm-Gg: ASbGncsLpv939FgLGYbZzqVvRr1qJE+vJaeuwN7jiQd8Z/1QIuIOhzDHB0cViusSghC nHhCuEqT/0zyiWtnejQHXPfnLn0slFZgJQdWSi/gtzSPUkhwRdeskFYiEBkGrc4MLmSdrXZ1lWs +8sdl8qqqZgsyKgTDjl7dYjPA2pkDwys680kK6aTLQ0m9FxT1+4aFLaebY4sk8QHEm9hRsUnc1s Z+pMOUCO1GHQ0Ka1+reIr8TNF1JXfidz9DOUt6/OL02HHKLSwjWEx9rOmsSSbTQK/cbCBxiQ9qz G5rJRepAHXuqq1KVeN6kJ/bCo5mLZrlfr+tWqsjwVJNQ8WbL8Nop/ZW2V8bjqRIy0ZJ86iD3GGE woqJl4oe2zoDgdYJZ2u4RQmI= X-Google-Smtp-Source: AGHT+IGZ6hJ+kuQTM0zb7kZ9imp9Oqq82C4/7DGrajzU6tmXF3OK22BXdMz92y8H3EgtBPdl3zu7dg== X-Received: by 2002:a05:6402:5107:b0:607:425c:3c23 with SMTP id 4fb4d7f45d1cf-614f1bd63b3mr7385460a12.5.1753605184848; Sun, 27 Jul 2025 01:33:04 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , Paolo Bonzini , Thomas Huth Subject: [PULL 10/14] configure: expose PYTHON to test/tcg/config-host.mak Date: Sun, 27 Jul 2025 09:32:49 +0100 Message-ID: <20250727083254.3826585-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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::52a; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52a.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: 1753605312451116600 This will be useful for making $shell calls to something more flexible than the shell builtins. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-11-alex.bennee@linaro.org> diff --git a/configure b/configure index 95f67c1a827..825057ebf15 100755 --- a/configure +++ b/configure @@ -1800,6 +1800,7 @@ echo "SRC_PATH=3D$source_path" >> tests/tcg/$config_h= ost_mak if test "$plugins" =3D "yes" ; then echo "CONFIG_PLUGIN=3Dy" >> tests/tcg/$config_host_mak fi +echo "PYTHON=3D$python" >> tests/tcg/$config_host_mak =20 tcg_tests_targets=3D for target in $target_list; do --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605359; cv=none; d=zohomail.com; s=zohoarc; b=nDHyEgj5e9MmniCx/dr5PR5BKh9cgb8bmcluOtknfyP5fo7QUerXB+eDGZBgYCtWF7kVyag+TSKK7iy16s4jjt9qkCnihYQEeR7/mz9MnCpwT0iRcLRJRuQycNkanHPUG83RI1X1QvUceK2ViVr/8Fq/OwhLy0OptzOVfsV10e4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605359; 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=EUwWgu3Z3v2IIptfvV06aRS7E7HsMNnjaVsN/QeYzzg=; b=JJ7b0SfXQM9ukgLxp9R6njlsZRhuCo6Cb0NjDAZT3v6iZoNK2QLZERbJgwfysukSv8j+3i1Yj7JUnzjrdrzGWxo9UnAjAeiyLrT7+NghGKG7LMt6xtLjmkPbfAfKyrMjVkgY+edFYi9VOrBymg8NAsW+djm2e8vKycnmmXmZBhA= 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 1753605359029919.8857394016338; Sun, 27 Jul 2025 01:35:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpP-0002iz-3G; Sun, 27 Jul 2025 04:33:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufwon-0001lp-9v for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:17 -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 1ufwoe-0000D4-Ly for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:10 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-612a8e6f675so5698051a12.3 for ; Sun, 27 Jul 2025 01:33:07 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6151dfcf1a9sm1055407a12.7.2025.07.27.01.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:02 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 19B535F8F1; Sun, 27 Jul 2025 09:32:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605186; x=1754209986; 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=EUwWgu3Z3v2IIptfvV06aRS7E7HsMNnjaVsN/QeYzzg=; b=uijxztIcGPaTn0f0KYpwYvJn7MDmAcxSbOMnuVwET65kRpaxeqDlNXOMnsBdq8V44k EIOHgZuCznuovJa6kxaKIpfRRivKzLO/FE6dBJ1zbWNEk+vVdeWNavWUIFcfx8WNKdXK iOuIrKzgsF2OC2i4GXAg1vIlNyzIwexw7xvltTiXFqTKQyKTBhy2YfAOcOV3cmswhjpC wZvnNiB+JS/yngxIM+YLz5ZY5oLTIFvC+FUas3SbdU6zQrotQXpeKKcF5+RDENQ0I5d2 FXvztFe5b7gp7TD5WvsUwvBmLt43gQuMYRB4tk2IXWMuMOx1VUM47iyZtjcpDgP6j/jt 7qlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605186; x=1754209986; 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=EUwWgu3Z3v2IIptfvV06aRS7E7HsMNnjaVsN/QeYzzg=; b=Ol08GokalZ0A9qJLt+BEzItVnfGZydk6SpaiX+Riv2gMJnX5B6xU9fM6WaXtsg1lCI IaRLCbbgoKFzfDoB7pbHJqx4skmPLCGxPFbewootBDm6MVDQFEDChQCgUfe6bIR0VwUG 7UzAFuhrkGSR+AogH7V//NRX7m/7RwvSRQ+fpmlClLzAnWmExC/eh+FJRX/sFCyH3jdC JYBD5VBU339pa4d/49M5Veh4U9GwMdXJ5OJTM3t9xso1x5IiA71HGETnjWPkjsXguhfY Bu1Rm+tS+JQvq2ubIOIifFXFADoLYY5sGGQd7bqNaFln3MxzdLpItulnPu7LmtlFUewQ zj9g== X-Gm-Message-State: AOJu0Yy5poO6Jd0Q/tyx0lfpD+RiEjAG/Pj7zUxPvBawp35Yl2/Y4tSZ JExqJjs8fEtdBqt5YKMMHbqztg7Du8WuxAVAkOw8Fz/Fa24Fl2+EIo9RxkzjjbjVJrwOsRRBrFm wYLM1 X-Gm-Gg: ASbGnctj+j13ptJXjd6aGfzN8kcOVQ2OR+KbZaYeJSOiYvUUKhQHC0Qegfzz5yajh68 aDdzZNU/SOJSyWZWGoRmcWu0iOPw4BWdvdNEJSO3HsmWi8Nv5tGkJl2XgVgRBBAwQg7dUW/ZeL+ n4+5uruwIefnQoPY5NrGGCAPIjS6M/9PcUT3xB6smGR5Qfg29Gpd6sLiBC6bY4zW+3jcq7Dewft IYFWVxpKUm4BBk6jLpWj1s8kq5ZCmLtJU9XY9gyFKeoFFQrWvnkPOxISDLOD1083fjia9Vv9jF4 7/95gIexkIpmaDI8AnPeB8cn2XhrgH246HuWL2VM9rvkQjfP/p2cp/wKE4n3llNHggLUzTxkhtz bc4HCJiW2WLt8Ug1c99nz7llmz89M/sd7bQ== X-Google-Smtp-Source: AGHT+IGuebsd74OBqVR3WhCMuTHMG60QYHCmO4M9KRMadzaXKYJjfM1qQVBkocfSlC+iYHDhQ6+I4w== X-Received: by 2002:a05:6402:1d4b:b0:604:e602:779a with SMTP id 4fb4d7f45d1cf-614f1f0257fmr7989764a12.28.1753605186442; Sun, 27 Jul 2025 01:33:06 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 11/14] tests/tcg: reduce the number of plugin tests combinations Date: Sun, 27 Jul 2025 09:32:50 +0100 Message-ID: <20250727083254.3826585-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605360985116600 As our set of multiarch tests has grown the practice of running every plugin with every test is becoming unsustainable. If we switch to ensuring every test gets run with at least one plugin we can speed things up. Some plugins do need to be run with specific tests (for example the memory instrumentation test). We can handle this by manually adding them to EXTRA_RUNS. We also need to wrap rules in a CONFIG_PLUGIN test so we don't enable the runs when plugins are not enabled. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-12-alex.bennee@linaro.org> diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index a12b15637ea..18afd5be194 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -173,14 +173,25 @@ PLUGINS=3D$(filter-out $(DISABLE_PLUGINS), \ # We need to ensure expand the run-plugin-TEST-with-PLUGIN # pre-requistes manually here as we can't use stems to handle it. We # only expand MULTIARCH_TESTS which are common on most of our targets -# to avoid an exponential explosion as new tests are added. We also -# add some special helpers the run-plugin- rules can use below. +# and rotate the plugins so we don't grow too out of control as new +# tests are added. Plugins that need to run with a specific test +# should ensure they add their combination to EXTRA_RUNS. =20 ifneq ($(MULTIARCH_TESTS),) -$(foreach p,$(PLUGINS), \ - $(foreach t,$(MULTIARCH_TESTS),\ - $(eval run-plugin-$(t)-with-$(p): $t $p) \ - $(eval RUN_TESTS+=3Drun-plugin-$(t)-with-$(p)))) + +NUM_PLUGINS :=3D $(words $(PLUGINS)) +NUM_TESTS :=3D $(words $(MULTIARCH_TESTS)) + +define mod_plus_one + $(shell $(PYTHON) -c "print( ($(1) % $(2)) + 1 )") +endef + +$(foreach _idx, $(shell seq 1 $(NUM_TESTS)), \ + $(eval _test :=3D $(word $(_idx), $(MULTIARCH_TESTS))) \ + $(eval _plugin :=3D $(word $(call mod_plus_one, $(_idx), $(NUM_PLUGINS)),= $(PLUGINS))) \ + $(eval run-plugin-$(_test)-with-$(_plugin): $(_test) $(_plugin)) \ + $(eval RUN_TESTS+=3Drun-plugin-$(_test)-with-$(_plugin))) + endif # MULTIARCH_TESTS endif # CONFIG_PLUGIN =20 diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Make= file.target index bfdf7197a7b..38345ff8805 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -189,6 +189,10 @@ run-plugin-semiconsole-with-%: TESTS +=3D semihosting semiconsole endif =20 +test-plugin-mem-access: CFLAGS+=3D-pthread -O0 +test-plugin-mem-access: LDFLAGS+=3D-pthread -O0 + +ifeq ($(CONFIG_PLUGIN),y) # Test plugin memory access instrumentation run-plugin-test-plugin-mem-access-with-libmem.so: \ PLUGIN_ARGS=3D$(COMMA)print-accesses=3Dtrue @@ -197,8 +201,8 @@ run-plugin-test-plugin-mem-access-with-libmem.so: \ $(SRC_PATH)/tests/tcg/multiarch/check-plugin-output.sh \ $(QEMU) $< =20 -test-plugin-mem-access: CFLAGS+=3D-pthread -O0 -test-plugin-mem-access: LDFLAGS+=3D-pthread -O0 +EXTRA_RUNS +=3D run-plugin-test-plugin-mem-access-with-libmem.so +endif =20 # Update TESTS TESTS +=3D $(MULTIARCH_TESTS) diff --git a/tests/tcg/multiarch/system/Makefile.softmmu-target b/tests/tcg= /multiarch/system/Makefile.softmmu-target index 5acf2700812..4171b4e6aa0 100644 --- a/tests/tcg/multiarch/system/Makefile.softmmu-target +++ b/tests/tcg/multiarch/system/Makefile.softmmu-target @@ -71,8 +71,11 @@ endif MULTIARCH_RUNS +=3D run-gdbstub-memory run-gdbstub-interrupt \ run-gdbstub-untimely-packet run-gdbstub-registers =20 +ifeq ($(CONFIG_PLUGIN),y) # Test plugin memory access instrumentation -run-plugin-memory-with-libmem.so: \ - PLUGIN_ARGS=3D$(COMMA)region-summary=3Dtrue -run-plugin-memory-with-libmem.so: \ - CHECK_PLUGIN_OUTPUT_COMMAND=3D$(MULTIARCH_SYSTEM_SRC)/validate-memory-cou= nts.py $@.out +run-plugin-memory-with-libmem.so: memory libmem.so +run-plugin-memory-with-libmem.so: PLUGIN_ARGS=3D$(COMMA)region-summary=3Dt= rue +run-plugin-memory-with-libmem.so: CHECK_PLUGIN_OUTPUT_COMMAND=3D$(MULTIARC= H_SYSTEM_SRC)/validate-memory-counts.py $@.out + +EXTRA_RUNS +=3D run-plugin-memory-with-libmem.so +endif --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605358; cv=none; d=zohomail.com; s=zohoarc; b=U+DexnGlHqW6LKUw3CvJkTdEZW68MKaexbCgvOhbAdRMXhgoxMPhuZIj8B2cNq+aA8AwnawcJ09OjLsnzBJIqAfzYc9/TgS7bkhUstmdCV5MJWN86nlR5X8ahr/MTHtO246IY5Ct2IHssCRVQGY1d9yuhG0ajim6+qclP6G8vRA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605358; 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=a8cNDP0uMMXLsCPUuS+qFgEBBy2TpFu7q/ONUBOGyD0=; b=jbpCAkLdnVr6Ph3/stpOtz0tE5RoEBqYK0RX7+GGyvcUTB8dhI2rasuDm0N593rNqsEwNMiPy+h2/zW/IUGIhlJSmFHHjMgExNlu9pi8Rl5koavBkg21W2epOp0anZQBFV3TWvuzHKP42Oin90bsk4HzwOj4hzGAwxPtrPEcLHM= 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 1753605358965132.0337446657419; Sun, 27 Jul 2025 01:35:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpV-0003Ln-UA; Sun, 27 Jul 2025 04:34:02 -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 1ufwoo-0001qS-KB for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:18 -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 1ufwol-0000DG-5h for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:18 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-ae9be1697easo818515366b.1 for ; Sun, 27 Jul 2025 01:33:08 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-af635b0317csm248700166b.138.2025.07.27.01.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:02 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 2BB9D5F8F2; Sun, 27 Jul 2025 09:32:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605187; x=1754209987; 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=a8cNDP0uMMXLsCPUuS+qFgEBBy2TpFu7q/ONUBOGyD0=; b=ZAwjV/V3XP7S4fuqJoF1tgIZ6zc1wu3COAnT33t5+Xwv+9rr1reP3kg6q3yAwyp1sl hDpKpWxIwf3mLwzGBmCGdLeECf49EwP3Ks6NPXTuzJaiEEwEw5utA2qrgvZMZ4yqzdkR Y0V0E34TVfq/TWSWySeKPSdxzd0wk9Mpgn1ewHdW4wJJe4+91HCtJBVV9Vwbt3Ha0UNe xi77l18GurGVDtnstdZGl7AfzLIRLCP8czYu3YYQNuLOSQ+fIrgFpE9BjX97KyGV7QLO B0Bu/sR25+k8MNoxHYuMY6V1WZ+gSiQyrrtUj2M3LUU2RTgjZMG9hnj9mKUqm7DmmraV 77rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605187; x=1754209987; 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=a8cNDP0uMMXLsCPUuS+qFgEBBy2TpFu7q/ONUBOGyD0=; b=MNSVtAYr369kge9jR6dLNCfxoNiqludDdS0wjALNgq8MI7DvHtE0ki8cI/Ryy9gFdM gCkcYOQvDj8vCjSKSUgsR+vU0ssLWGGh2Df1Lf7BiSQvqyQA6z//TtQTZ/pnyk70zSII Pgqn8dnccFXd9NXaLv1sQ+J6EXwTXdPYkRBWdbTNyCMGKPUqzx9dO9Vnat8kSozIqOmF 8jMhL1yMAxtJOneFeO9jYlBpQT9XgraL4s8J09JfPB1DtZ93jpV6ifzTOGT9s8cR+Qu5 9WsXxl0Jivi15Kagd7knWUQJA2+GOha8BrEwpMRhbq8ijPimieWYM+N1/Uh5fTQ3JL1S B4Mw== X-Gm-Message-State: AOJu0YyNQPMekaC2u4KtWCagRwqsZ8+8fv1ObIXL+S+7SCdOIw8E1KCL ZUwx0EsNjAgTuyn2ZjU2ZfH6XcMwriTGRn2lStMwQ4typ6U+4P9fSLS1XBvuEXiS4Sk= X-Gm-Gg: ASbGncvTx2HDOcJ4jSEUP524SEPX74Uk+zi1ZzddZGNQ9T10E8j0wMdlenPt908Obtm 5d8dUnTDVC/7vhnWOtIfBooKg0MtPBcLX9JE3Xu5C/GEuof/6NBbrnXRrn/aJE0w0la99XZp9fM Pws5RvLxsiN8l4sahQOdgaloMzzlNAuryg2598z7FH0/yBUEhSA97CrtnAV1rxibqYKXkcicE7U yGPGthYpru8eJW1en3HPgjej0tyaLylxOHRojN0fwBPQdY6/XgtOTw9lYOZC99r267zfc8OjxZ8 dfUtvJfB/a94FDyAsPbYHaercpVV/gkqRQNVWeopr1jLhp5g/6zc+0KxvzooZLuja2GzUFaCVMr R5ayUFuQAaCS8mM5KokZqG+A= X-Google-Smtp-Source: AGHT+IEVddTEBE48JQk0kxFwpWsZDgjMCrWBKw+6iNCLBAiGzPaTXQuA6xXS37oblJ4TFi6kOXhDwQ== X-Received: by 2002:a17:907:968e:b0:ae2:3544:8121 with SMTP id a640c23a62f3a-af61c8ad26cmr899207966b.9.1753605187216; Sun, 27 Jul 2025 01:33:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth Subject: [PULL 12/14] tests/docker: add --arch-only to qemu deps for all-test-cross Date: Sun, 27 Jul 2025 09:32:51 +0100 Message-ID: <20250727083254.3826585-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605360904116600 If we want to build this container on non-x86 systems we might not have all the cross-compilers needed for the ROM blobs we don't actually build. Use --arch-only to avoid stalling on these missing bits. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-13-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index 8ab244e018a..5aa43749ebe 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -15,7 +15,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ apt-get update && \ apt-get install -y eatmydata && \ eatmydata apt-get dist-upgrade -y && \ - apt build-dep -yy qemu + apt build-dep -yy --arch-only qemu =20 # Add extra build tools and as many cross compilers as we can for testing RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605358; cv=none; d=zohomail.com; s=zohoarc; b=QlQCas36tdMmks7Y+HOyjEnpe64POwcy9Dm9PYVfpDehLPwD3dv3+iFQ++7YDdD0WaDuzmYhnfExmcffEmDleydnHiMSzOGUjFrFJcRbo0IrnviNouYjbWvJtEcn7FySn9Kbj0SvhlgRc7XQB8YVkvkGdHC5kG3NebK8S1Oy/g8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605358; 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=0P+T/rWVfYGmP03p8n51BDfhO6swy1gGfsWg4f3jEHE=; b=QdYtMVuaMH6BZp73tL0aTc/TbVvv5Ed6U8T7cMzc8/9uX6y8JdITwdBJ8Q1XzJk5cxt9NEbM6ZDCVJ5f4xInqD0VdZEJN5c2BouubenB1/4FTFU4Pk+D+p1oPBlDL95Ehgl2lNxcgkMO6ySoy2KasppmJR/qRKNhhEkVnZz0Cf4= 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 1753605358379628.8009214805833; Sun, 27 Jul 2025 01:35:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwpL-0002Tm-8H; Sun, 27 Jul 2025 04:33: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 1ufwop-0001ul-US for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:20 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufwon-0000DS-2p for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:19 -0400 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-61530559887so361515a12.1 for ; Sun, 27 Jul 2025 01:33:09 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-61500aedddfsm1796179a12.67.2025.07.27.01.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 435725F8F3; Sun, 27 Jul 2025 09:32:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605188; x=1754209988; 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=0P+T/rWVfYGmP03p8n51BDfhO6swy1gGfsWg4f3jEHE=; b=KeXAFb38Hx+sFNUs3LtL7AV7iyRf/jq9o3RSbkKKZyh6KSy583YJ2dhl4mkxMDteT/ GR7cmBmehOA3PMNQj6MAFKEmff67z/RpOoAlRSDZgpAkUU3LXcYYaKloSI/hLKZsOlIi vCxktZnCFu8WrkNk2BpnrpMBWmCpOeOgaOuyAKNRJ3Edl1BVb8R4RqyJ5rvav31ncSJS FXTmJx0sEYdXgenZQDGeD/8HCa1v5j0wvRd5lljhc97/7SR42iW45TSlmJQpFyPTaedP VAxrg8uCbx+FJnVIQqMqLZL4t0clWHFNNfNiG2xH7C0AWnlmsS8TSHH+zzEaMsDzp0Dt UOzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605188; x=1754209988; 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=0P+T/rWVfYGmP03p8n51BDfhO6swy1gGfsWg4f3jEHE=; b=NOV6KQ5a5K4MMwXyJwQkSUH0/yrlhw+dz5yDObVEq7lGiB0F5tWtzoZ6jykBpzewEU 1+HApQSKxlFxNvPWqgU4VAMZfNwf/zyTJCvQ6uUk4mKWMw02X+Zr1ZxJqt9veNznMP7/ KBN06frYZKaStKInvGjlhJVsx/UG16/8ckxhqw+zkAavMXxntDrSpBHlGjAV4wyz3iY9 NnGYdXoTzG+rJMpA3yvhxtgjolKKljPOQ+vDayE5sGZKiqPYfQPMQHRoiIToW7Xci8Bm LAMWrgl1kAvmquCPRdl3XzaKlYVAFtWg64vadTPxiplZHqcUZt3pI5WWRQYpRwRA86GC hB4Q== X-Gm-Message-State: AOJu0YxEcVJiPumcdA6Vbt01Nb/8WTGcb8QMmPH9IE+D7j+tisvrcUkh 26YKwKdn/ycxAEgB1QfhozEP4xOTf27RS0Xtl/x7WCNNhXNclvrwmySYPx3OGqvO7RI= X-Gm-Gg: ASbGncsK4MI0HNKP26E73wXUf+6FXyToZKgAjsV3756H0YPGd6xqHERUPp+QP+ksXsU muvdH9Kue4qcMjilkIgTLtyCGZvuUdDXYe7uzhrgBJQTiHcP01felNA7Eex+Weq8oLbRAKlEH9D LnYsczqTLK3llWFGrM+a/6XchQrNyJZlda/4z5kOtPfj2d9SDPvgcy7zTdfx6CIG7NrEMrR2Io0 tRsl74Ug1lx3x2VxhExA0C9QYWyLfoGGqN3R2Oun6AHgomjz+nOblSUDx6YvZWoo9z52XeozSU4 3ead2gjFkMjOaFcott5G0dftjbec6wuQ5Z8Uu6kvwGC/UoyoDHiLxOTWg6rxAsTE9KkXFsUamdO lc4fp7NtCS2oceZBRNY+kFYc= X-Google-Smtp-Source: AGHT+IH6kTk+HPrJ5IvoKo6LfSbVvXx702UwZlnSJzV6kKPU1U1L0MoSk+c18CnJ+LPAfeoV6dR6hA== X-Received: by 2002:a05:6402:354b:b0:607:ea0c:65b2 with SMTP id 4fb4d7f45d1cf-614f1e09062mr6930025a12.31.1753605188006; Sun, 27 Jul 2025 01:33:08 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Manos Pitsidianakis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth Subject: [PULL 13/14] tests/docker: handle host-arch selection for all-test-cross Date: Sun, 27 Jul 2025 09:32:52 +0100 Message-ID: <20250727083254.3826585-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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::533; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x533.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: 1753605358926116600 When building on non-x86 we get a bunch but not all of the compilers. Handle this in the Dockerfile by probing the arch and expanding the list available. Reviewed-by: Manos Pitsidianakis Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-14-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index 5aa43749ebe..ef69bbc8a51 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -23,7 +23,9 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ bison \ ccache \ clang \ + dpkg-dev \ flex \ + gcc \ git \ libclang-rt-dev \ ninja-build \ @@ -33,16 +35,11 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ python3-venv \ python3-wheel =20 -RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ - apt install -y --no-install-recommends \ - gcc-aarch64-linux-gnu \ +# All the generally available compilers +ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \ gcc-arm-linux-gnueabihf \ libc6-dev-armhf-cross \ - gcc-hppa-linux-gnu \ - libc6-dev-hppa-cross \ - gcc-m68k-linux-gnu \ - libc6-dev-m68k-cross \ gcc-mips-linux-gnu \ libc6-dev-mips-cross \ gcc-mips64-linux-gnuabi64 \ @@ -51,18 +48,25 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ libc6-dev-mips64el-cross \ gcc-mipsel-linux-gnu \ libc6-dev-mipsel-cross \ - gcc-powerpc-linux-gnu \ - libc6-dev-powerpc-cross \ - gcc-powerpc64-linux-gnu \ - libc6-dev-ppc64-cross \ gcc-powerpc64le-linux-gnu \ libc6-dev-ppc64el-cross \ gcc-riscv64-linux-gnu \ libc6-dev-riscv64-cross \ gcc-s390x-linux-gnu \ - libc6-dev-s390x-cross \ - gcc-sparc64-linux-gnu \ - libc6-dev-sparc64-cross && \ + libc6-dev-s390x-cross + +RUN if dpkg-architecture -e amd64; then \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu = libc6-dev-hppa-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu = libc6-dev-m68k-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-powerpc-linux-g= nu libc6-dev-powerpc-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-powerpc64-linux= -gnu libc6-dev-ppc64-cross"; \ + export AVAILABLE_COMPILERS=3D"${AVAILABLE_COMPILERS} gcc-sparc64-linux-g= nu libc6-dev-sparc64-cross"; \ + fi && \ + echo "compilers: ${AVAILABLE_COMPILERS}" + +RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ + apt install -y --no-install-recommends \ + ${AVAILABLE_COMPILERS} && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' = --show > /packages.txt =20 =20 --=20 2.47.2 From nobody Sat Nov 15 07:39:23 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=1753605246; cv=none; d=zohomail.com; s=zohoarc; b=CWzaBW6G5NGPwLV+wi9nbL1i5BgVsNY0QwlEgM4wY5q9UQBipYPP/QVOzGXOXFe9vuY7hW9i+VxiDHYtCZq0be5RZqEEUIwcK2GlP4K/NObt9O42du0zcmiQleDT+xDy0wwoi7gpk9Bs1EVWLimf/okjfZb3rwachqBwJrxlOwI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753605246; 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=+aJNsoz12Jzz1cfgiLb5ioOc3GXXwlv67s51A2mnpiA=; b=UI3lRxrytkBtSbWqgN/bbnPiTgnSRG0bJU45u4Wn8Is5SILzkC5GWbFeMymr18Ux33mrojkwL9A23+SRnyP8SDU5c/KBCFqSVvpEs+GhACitc4YC7dqLAHx6X30V7MdCB0VEqWV6RyPwCDKur6tC4FRmEqquYf+lk2o0I3xLxxI= 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 1753605245882295.2674998256389; Sun, 27 Jul 2025 01:34:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufwp9-0002A9-EK; Sun, 27 Jul 2025 04:33:40 -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 1ufwop-0001ra-1k for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:19 -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 1ufwon-0000DY-2O for qemu-devel@nongnu.org; Sun, 27 Jul 2025 04:33:18 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-6150be62be4so1405873a12.0 for ; Sun, 27 Jul 2025 01:33:11 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6153ae1e86fsm64522a12.40.2025.07.27.01.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 01:33:04 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5C2FD5F8F6; Sun, 27 Jul 2025 09:32:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753605189; x=1754209989; 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=+aJNsoz12Jzz1cfgiLb5ioOc3GXXwlv67s51A2mnpiA=; b=wlY/U85x+oI95m1UxJSsrArYvgzpxAzg4pUUjJs7VvliG36NvzmqS7SdG1pBpHTWA+ ABS4aLT96sylNscCJSlDz/8D9ST/mnfytsVxp/7D71kTKl1Vmu78/n0jOlfQWGjZGlPI Lv/9m1rfaevBAGIVHV3biVkLSWP51YKtTWEghAy8hkTWN8MRZ69uBy+GILG0S9cPeARY +5i1hY4oQQKMAgATQkmW/oMcyPRkO6kSpDJ0+DpVe+VgNedZpfRUUAAD31O5ypZobJsU y65WkjcWs0GkPmW712oyKY+lQQk7kHIUZH6rFDiIFip6DVTrJ9nOBDfwGYmX0j3CMF88 mlbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753605189; x=1754209989; 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=+aJNsoz12Jzz1cfgiLb5ioOc3GXXwlv67s51A2mnpiA=; b=D0jQEYzRYQSwigcFN1ZEMa8cmY1PBBC61CCtcFp2FhnilfPgW8JDQLbEXKzua0pfql qug8/EvOPztzB5IFYuqhYPPli/X1fBsEn7Gp3iT+ILVXR/kug5dHd9ZxnLQ39rDvnSX9 JD/XEUF/olRH8EM3u63N7ECXSb2Vb1yMgqpooWgauMF5Z2iFyi8ELZPN/5+fr5XEJ7gs hI8K6CuG9m2006ja1dWn0Rg0F0AWoPhDoJxubIuoWKCnAmSArj+IruF+HtiBQ5jAvP6g EIgpvG+M339OaQtkbfs7O43NPkLh2tdu1de+M14IwXDJaLJbFeVtvsc/CHdyvFgL1fYG yNfQ== X-Gm-Message-State: AOJu0YwQEgpBhCP9mfizDButkZPw3ripPz+oZKM1yJ0WOxSZ6EUFgxWN eTshc8QxrekYLPiBfVBcbuhWkkGlhtEitknZhd+gry98XNcp5bAGT3KAl0ybWsy5QWE= X-Gm-Gg: ASbGnctSLiW0+n2LMLtphF4V8E33dZNZHssI1lnzIq/XNjihrVopmrGoXNhiDE2vK2t gOFuyUXjMkK8t82c3wj+CnyDQ0s/lfycpB8tRkmpbVfvp5mO0YKdwCsNZ6IYXvl/HzlSD5OghDT t6aR54kOHx3XNXGT7aS/stwJYZRsZdwNdPYtMzMLAFUgkFJjmEQARgZ7bW892vX9cVpYl7WIWxS HzupIekT1Kb1X1eQUhTBHddUHgjxVWTTJuMJjdxMjD61F9w5o5bSu6213EwZiy28RUejuw3a3ld dqolf6goLETGuv+u0hO1TePXUf2BHR2eZqRcXAbf9k4PkqfODoLf2IeE313eQdGkt3FhortFpZr 22YIV10npZX2GW6grvq9XJ0U= X-Google-Smtp-Source: AGHT+IFryohGXqcs4rxsENZoQU1TZK/75vwXh8Dzr7PB+FssbNcKAIROrsPghGGWbcZxsAilSvPxrQ== X-Received: by 2002:a05:6402:350e:b0:60c:3f77:3f4a with SMTP id 4fb4d7f45d1cf-614f1d197f6mr7557780a12.4.1753605188823; Sun, 27 Jul 2025 01:33:08 -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?Daniel=20P=2E=20Berrang=C3=A9?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 14/14] tests/functional: expose sys.argv to unittest.main Date: Sun, 27 Jul 2025 09:32:53 +0100 Message-ID: <20250727083254.3826585-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250727083254.3826585-1-alex.bennee@linaro.org> References: <20250727083254.3826585-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: 1753605248036116600 With this we can call the supported we can take advantage of the argument the module supports: env PYTHONPATH=3D/home/alex/lsrc/qemu.git/python:/home/alex/lsrc/qemu.git= /tests/functional ./pyvenv/bin/python /home/alex/lsrc/qemu.git/tests/functi= onal/test_aarch64_kvm.py --help usage: test_aarch64_kvm.py [-h] [-v] [-q] [--locals] [--durations N] [-f]= [-c] [-b] [-k TESTNAMEPATTERNS] [tests ...] positional arguments: tests a list of any number of test modules, classes and = test methods. options: -h, --help show this help message and exit -v, --verbose Verbose output -q, --quiet Quiet output --locals Show local variables in tracebacks --durations N Show the N slowest test cases (N=3D0 for all) -f, --failfast Stop on first fail or error -c, --catch Catch Ctrl-C and display results so far -b, --buffer Buffer stdout and stderr during tests -k TESTNAMEPATTERNS Only run tests which match the given substring Examples: test_aarch64_kvm.py test_module - run tests from test_mod= ule test_aarch64_kvm.py module.TestClass - run tests from module.T= estClass test_aarch64_kvm.py module.Class.test_method - run specified test meth= od test_aarch64_kvm.py path/to/test_file.py - run tests from test_fil= e.py usage: test_aarch64_kvm.py discover [-h] [-v] [-q] [--locals] [--duration= s N] [-f] [-c] [-b] [-k TESTNAMEPATTERNS] [-s START] [-p PATTERN] [-t TOP] options: -h, --help show this help message and exit -v, --verbose Verbose output -q, --quiet Quiet output --locals Show local variables in tracebacks --durations N Show the N slowest test cases (N=3D0 for all) -f, --failfast Stop on first fail or error -c, --catch Catch Ctrl-C and display results so far -b, --buffer Buffer stdout and stderr during tests -k TESTNAMEPATTERNS Only run tests which match the given substring -s, --start-directory START Directory to start discovery ('.' default) -p, --pattern PATTERN Pattern to match tests ('test*.py' default) -t, --top-level-directory TOP Top level directory of project (defaults to start= directory) For test discovery all test modules must be importable from the top level= directory of the project. Suggested-by: Daniel P. Berrang=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-ID: <20250725154517.3523095-15-alex.bennee@linaro.org> diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index 2a78e735f16..5caf7b13fe3 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -249,7 +249,7 @@ def main(): tr =3D pycotap.TAPTestRunner(message_log =3D pycotap.LogMode.LogTo= Error, test_output_log =3D pycotap.LogMode.Log= ToError) res =3D unittest.main(module =3D None, testRunner =3D tr, exit =3D= False, - argv=3D["__dummy__", path]) + argv=3D[sys.argv[0], path] + sys.argv[1:]) for (test, message) in res.result.errors + res.result.failures: =20 if hasattr(test, "log_filename"): --=20 2.47.2