From nobody Tue Dec 16 03:04:41 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=1753602186; cv=none; d=zohomail.com; s=zohoarc; b=cb6MiJ0Jro/L/ikuJMW/iFiNBItfwTcaoqWdUNuvGhtVVkl4BHR7jTUPHKQSmKv+k1pz4txxTrpW5owyhqdP4Q1qcjoVENuDs2lGB4BkeTZVlskwQk7Xe1sxgSQng2cSBTdJiwsfdsjZ+PbAi4hzBWtufyqZKFAOAEM5l2y2614= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753602186; h=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=XNubQwhHjekWcdPAePqyJsttCoxvHncnRgRs+UUfMAk=; b=gz/WWJYTP0Qf1H2czwrutbLmFYIyohJces9dp6V6jjLhLtllerNOoDaWvlrT6EfJAmEFPBtEXo+Z+eaQYwwRDNp0d4QmXoQyA0S7BKaEY3+zBD7/gtTAbNWcj8v1fxQZIn0QwimoT8QkoJAwgG30Pn/pyM263Oz4wpdI0gGBicU= 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 1753602186451398.90140759119015; Sun, 27 Jul 2025 00:43:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ufw1U-0006RE-Cr; Sun, 27 Jul 2025 03:42:20 -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 1ufw1O-0006Hn-HC for qemu-devel@nongnu.org; Sun, 27 Jul 2025 03:42:14 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ufw1L-00014j-5M for qemu-devel@nongnu.org; Sun, 27 Jul 2025 03:42:13 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-236470b2dceso29558945ad.0 for ; Sun, 27 Jul 2025 00:42:09 -0700 (PDT) Received: from localhost.localdomain (syn-098-150-199-049.res.spectrum.com. [98.150.199.49]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23fbe53b546sm29633055ad.177.2025.07.27.00.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jul 2025 00:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1753602128; x=1754206928; 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=XNubQwhHjekWcdPAePqyJsttCoxvHncnRgRs+UUfMAk=; b=k6JsM4eMC1iaoXT/C1fTGJUWLWHvYMLrvmRybUKZmkVBuWffqOXteRWRYXrG4QZ6pb fDY+/734KL7hRZfHfX/fMZCtTlDJHWfe3Cw8qW07LplQBsoku/6tySxau2t8OhgAh5EW wBTIypzS1ymjf3gw75j0o3ngrKB1SccVk1QpN15l9h9HPMS4bLbUIEjHMLMFcC8aRz2f q6mrvIw7hZSoDr4Hfqtok8+hZaAjtZ8YAv32yIjwv0vD9/6mRbFimYAvttq73gIs3ChG wIsfTLoZywqTzLFm8Y1TvqIt53jl+xk1sFUl04vicyuV4uUt1n9b0b9Ifl7PhK43UOjX gEXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753602128; x=1754206928; 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=XNubQwhHjekWcdPAePqyJsttCoxvHncnRgRs+UUfMAk=; b=oKB9U8W7ygrb24N3MtcTeitZRpAlSQP9wLPXS+XXuCc5ZwF3Qs8X1gmBxyKzgXtbzv iD2hmqhHAcvpR5gxW9UKyuiciWnA9Mesbo6G/KTEZunsQN7XG8doCDF3JbQPJbcITASm /Oq9kafLVBrI4JNv1sol+6QExoPmaQZT8avWN9gHxyFHnfBrlYsq8LhWLPqXGHGPFG07 DEWfBC8opf8XpOruujnFW44eHp77GJSJQewRTJIMJq5zCDWtHXLJldocgNPbCQLogvk9 sQ7RAFZ3TzsoR6lQWcyl/H+zDk/1QD/a9Hlb+FFV5aTgRfGzdPVygni0rkhN+GUz9Bz/ 1G5A== X-Gm-Message-State: AOJu0YxK1S66iideHIPgGU3oSpBjlmRYDHA431a36mo4P97Ww47PoW3E sV8lObIYqVxsCRV44G1KkBdBRUjgn37BZj89+OoH8LS7MkGJTIPtyD+uLxTv1HbOgPmCXyPqXRx rTeSP X-Gm-Gg: ASbGncvgqa/SI+i7Axq5Eog+uMkTqwbplC8+KP4YEo59Uflk9FDBk5Wvj/1PNv/PtBN mPblT2Mnfqjyf32VsFGxh7rgsCrbPhDwis6+lGepoEVA1ZoA4x2ExroCWu6F0Ra3WAEFry/8353 RMVPSFoMSYbidOAsPdVvLmo8vti+fxySeiDCdOWy+WARXoMXamIP0CF2IpXgwrWsKHfI39a56ap JLuU6otCb2r4W/Pzm4CPTaSKa+6JMLVYyuhIuTe+Vj27vdIF+Xh3mraoEwYPK903I1+nF4K/1LZ Fhrq8V+2na2JqdJU0MNC17OE+az/oJRod7D3lybn3m9eKenvO2IzlCNQr4QxJL93gh7Mdr2VFfV 9cScyyT3QGYe06F3aN/iPOwJIwGTVQ3l3HCOD37I3NM7DLoM+dlSnlzacqRjwA5qcQAzb+zrsny bGBduEA2TD9Q== X-Google-Smtp-Source: AGHT+IHBB4zlTMZ3rLRelmgvt/+6G9eF+jrUElzNVihq1WOHfeBvgx+4GIro0XahLQmnhrnyfZpsoA== X-Received: by 2002:a17:903:46c6:b0:236:6f5f:cab4 with SMTP id d9443c01a7336-23fb307c150mr108722485ad.5.1753602128605; Sun, 27 Jul 2025 00:42:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Pierrick Bouvier Subject: [PATCH v9 1/6] tests/functional/test_aarch64_device_passthrough: update image Date: Sat, 26 Jul 2025 21:41:57 -1000 Message-ID: <20250727074202.83141-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250727074202.83141-1-richard.henderson@linaro.org> References: <20250727074202.83141-1-richard.henderson@linaro.org> MIME-Version: 1.0 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=2607:f8b0:4864:20::635; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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: 1753602187725116600 Content-Type: text/plain; charset="utf-8" From: Pierrick Bouvier TF-A needs to be patched to enable support for FEAT_TCR2 and FEAT_SCTLR2. This new image contains updated firmware. Signed-off-by: Pierrick Bouvier Signed-off-by: Richard Henderson Message-ID: <20250719035838.2284029-2-pierrick.bouvier@linaro.org> --- .../test_aarch64_device_passthrough.py | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tests/functional/test_aarch64_device_passthrough.py b/tests/fu= nctional/test_aarch64_device_passthrough.py index 1f3f158a9f..17437784bb 100755 --- a/tests/functional/test_aarch64_device_passthrough.py +++ b/tests/functional/test_aarch64_device_passthrough.py @@ -9,7 +9,7 @@ # # SPDX-License-Identifier: GPL-2.0-or-later =20 -import os +from os.path import join =20 from qemu_test import QemuSystemTest, Asset from qemu_test import exec_command, wait_for_console_pattern @@ -77,15 +77,16 @@ =20 class Aarch64DevicePassthrough(QemuSystemTest): =20 - # https://github.com/pbo-linaro/qemu-linux-stack + # https://github.com/pbo-linaro/qemu-linux-stack/tree/device_passthrou= gh + # $ ./build.sh && ./archive_artifacts.sh out.tar.xz # # Linux kernel is compiled with defconfig + # IOMMUFD + VFIO_DEVICE_CDEV + ARM_SMMU_V3_IOMMUFD # https://docs.kernel.org/driver-api/vfio.html#vfio-device-cde ASSET_DEVICE_PASSTHROUGH_STACK =3D Asset( - ('https://fileserver.linaro.org/s/fx5DXxBYme8dw2G/' - 'download/device_passthrough.tar.xz'), - '812750b664d61c2986f2b149939ae28cafbd60d53e9c7e4b16e97143845e196d= ') + ('https://github.com/pbo-linaro/qemu-linux-stack/' + 'releases/download/build/device_passthrough-c3fb84a.tar.xz'), + '15ac2b02bed0c0ea8e3e007de0bcfdaf6fd51c1ba98213f841dc7d01d6f72f04= ') =20 # This tests the device passthrough implementation, by booting a VM # supporting it with two nvme disks attached, and launching a nested VM @@ -96,16 +97,16 @@ def test_aarch64_device_passthrough(self): =20 self.vm.set_console() =20 - stack_path_tar_gz =3D self.ASSET_DEVICE_PASSTHROUGH_STACK.fetch() - self.archive_extract(stack_path_tar_gz, format=3D"tar") + stack_path_tar =3D self.ASSET_DEVICE_PASSTHROUGH_STACK.fetch() + self.archive_extract(stack_path_tar, format=3D"tar") =20 stack =3D self.scratch_file('out') - kernel =3D os.path.join(stack, 'Image.gz') - rootfs_host =3D os.path.join(stack, 'host.ext4') - disk_vfio =3D os.path.join(stack, 'disk_vfio') - disk_iommufd =3D os.path.join(stack, 'disk_iommufd') - guest_cmd =3D os.path.join(stack, 'guest.sh') - nested_guest_cmd =3D os.path.join(stack, 'nested_guest.sh') + kernel =3D join(stack, 'Image.gz') + rootfs_host =3D join(stack, 'host.ext4') + disk_vfio =3D join(stack, 'disk_vfio') + disk_iommufd =3D join(stack, 'disk_iommufd') + guest_cmd =3D join(stack, 'guest.sh') + nested_guest_cmd =3D join(stack, 'nested_guest.sh') # we generate two random disks with open(disk_vfio, "wb") as d: d.write(randbytes(512)) with open(disk_iommufd, "wb") as d: d.write(randbytes(1024)) --=20 2.43.0