From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D0DE606A332 for ; Thu, 3 Dec 2026 09:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=H8v4pVIp Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZ33j-0007vz-2C; Thu, 03 Dec 2026 04:24:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZ33g-0007vL-RM for qemu-devel@nongnu.org; Thu, 03 Dec 2026 04:24:56 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZ33e-0002dH-Ug for qemu-devel@nongnu.org; Thu, 03 Dec 2026 04:24:56 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-491971ac844so12229874f8f.2 for ; Thu, 03 Dec 2026 01:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796289893; x=1796894693; darn=nongnu.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=b99TfIucIVoOJCOSL7K+rhkoAZ32FJRB4mZspj7F5qs=; b=H8v4pVIp2Jg8ALkcB4tncebpObzcLyxLDq4Mf/u4dsDgPfcdlkdjPhaNh4xQNvGUWr zPu343SsWPgjyhq0h7t6gO7psOVaG14wosri9SaBlfUrXFwWOqUoNHYGsJ6PSg6DBx7S dsYZ3huy0wocb0aqgTGDaIeKsJkWksqiXM5n+QsyRQ1KQzVuEvhUKnqL2wv71Wh2F2HI spHeN/h3GjU+/h5rKMfuB7s9YKgMGVS1+k1kAoSp6GMfFifWaMFMYe57+Px8iybjbvFF XyuOZgy8VWOi2VxL//p8E7L9ouU5PpTrSxuKEtb6uNiWqUKScs/K+e80bLB98LGv26zY /Nzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796289893; x=1796894693; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=b99TfIucIVoOJCOSL7K+rhkoAZ32FJRB4mZspj7F5qs=; b=xhIdd4MUtfNnI0CSPteEfsKiD6lcTTO4+GKQ9l2s6u3Z8/UYlPIYRBPDCUF2QiKaXo B1b5V5gk67EYolKhQjP4p7WTt5wIB1ZmBsROkkRnSiLR2uawW61aeMGWSQEDj7C4kFFg gaqeSDLXYNCO4uSL9n6s60LuyhOoh/RoDFFWM9MzGeAnp0LMmywSRADgYXZ8ZszYKD0j mpNYYOBXfX8O1g/nuve/n3aBqUWouEK3hWrc2q6WgIFMdpGUOr1bVFCqA9tRwoSlZ2Jj ivEpsQJdTP9DM+OvDWlikcZQIV+kATGiQIJpIjNbGBuA+DxwFn+ZYYsiZA16KZQ2D9pZ 8VUw== X-Forwarded-Encrypted: i=1; AL+hErELgVp5nL0uxg17Kvg3yNUxW4YjBldELE0gwP4pye9S46tSPXrOovR58OLSvtD8mPq8XOVnQgqz4yX0@nongnu.org X-Gm-Message-State: APuU4Z8yLBIjRgwT6TE49fRr3Ug09X8NSnrLFKUbkH3OpfBV/yI61hpS 7r8ibpkN6DGmDQd+MvU5Br3GDl1QuqCVgnPPKk8DHgm/sVp7K0U48nJKrx6jucrXoGQ= X-Gm-Gg: AZFdTZcRMFJPOY/lGd0hSfDXg9+H+41lMECxGoIkYilW3OyGm80Fb2qWUybKDJZi7nR gNW3dfmi0sopoPaamrcVLQlN3jYW5fRxFFGSHa0pQz9NQSJAhbsaxCX0aWwZTG956mLWasGxTGi oW0Wspc2mll4qhN92r6MDyuEJC+u0tqYWDEgiJJ444jn1Va9SqYmwM3jjZRDBzzOGlqdvnVZHs3 jkvTF6JBGR3E5xE9f+eQkwPO7kkHms5wtgb8QEYEtwRJPWPVH6FPPozfebKyd9vulUktQp3lHna T2oY+B1YAlDNKhnjyLp9Idd2D5JuzIjeQYEWi4F2Yo7MouVtGonsR6JxPGfjcY49kdGoQudjxxl hpB/BG4VkOBrzezoFT6evR3W5M4KtreZQarACKS8uxOLuJjhuzK1ve2hcKC6Zi2BN9Mi+mIgjhN a0H0+T70v+9FFew6ub+vFASihGCUAMQj8yxNWaqKzDMX4gQ52YvIDQu6ma4Uf53n8K/f+9nZD9T RgAstVTDYD9sMYjwa9Grnhxw2/jJK/6q//JxNOrE0iqitQCZGQKzpg7OoM1YfiZCvJ90YLtRxla yGadghZR26FUCM9qTUosAiS+CuuSYxw= X-Received: by 2002:adf:e006:0:10b0:4a6:8012:19a with SMTP id ffacd0b85a97d-4abb18cb896mr58061617f8f.22.1796289892905; Thu, 03 Dec 2026 01:24:52 -0800 (PST) Received: from linaro.org ([2a10:d582:31e:0:a776:ea2a:662c:60dc]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6ae2dd55sm80324850f8f.30.2026.12.03.01.24.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 01:24:52 -0800 (PST) Date: Thu, 3 Dec 2026 09:24:50 +0000 From: Jim MacArthur To: Tao Tang Cc: Peter Maydell , Leif Lindholm , Eric Auger , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Zhao Liu , Pierrick Bouvier , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Mostafa Saleh , Chao Liu , Chen Baozi Subject: Re: [PATCH v6 00/35] hw/arm/smmuv3: Support Secure state for SMMUv3 Message-ID: References: <20261114154623.3599750-1-tangtao1634@phytium.com.cn> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261114154623.3599750-1-tangtao1634@phytium.com.cn> Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=jim.macarthur@linaro.org; helo=mail-wr1-x429.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: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, Nov 14, 2026 at 11:46:23PM +0800, Tao Tang wrote: > Hi all, > > This is v6 of the Secure SMMUv3 series. > > Many thanks to everyone who reviewed the earlier versions. This version contains > 35 commits in total. Most of them are confined to the Arm SMMU model. But a few > commits also touch the PCI device model, and the virt machine model. > > Secure Stage 2 is not implemented. Secure STEs which enable Stage 2 are > rejected with C_BAD_STE. Realm and Root programming interfaces are outside the > scope of this series. > > > Commits layout: > --------------- > The commits are roughly grouped as follows: > > 1. (#30, hw/pci only) Add a PCIDevice "sec-sid" property so boards can mark a > device's SEC_SID (system integration knob). > 2. (#1-2, #31-35) Core data-structure and plumbing refactors. > 3. (#3-8) Introduce SEC_SID through caches, notifiers, and helpers. > 4. (#9-12) Page table walk related updates (e.g. NSCFG/PTE helpers). > 5. (#13-20) EVTQ/CMDQ handling and invalidation paths. > 6. (#21-29) MMIO/register access checks and architectural corner cases. > > > Changes since v5: > ---------------- > - Split the invalidation and register-check patches, separate secure-impl > from migration, and move S2 walker changes into the page-table walk patch. > - Add fixes for Secure S1 VMID tagging (#18) and ATC_INV checks (#20). > - Validate sec-sid in the PCI setter, reject incompatible devices through > the PCI IOMMU check, and refresh SEC_SID on device reuse. > - Wire Secure IRQs on virt and sbsa-ref, and update CMDQV IRQ indexing. > - Document secure-impl and preserve the previous default for older > machine types. > - Drop the temporary [NOT-MERGE] Hafnium bring-up patch. > > > Testing notes: > -------------- > - Testing MMIO accesses > I also tested Secure-bank register reads and writes using Hafnium > firmware as described in [1]. > > - Testing DMA translation > I integrated this series with the latest RFCing QTest memory-attribute > extensions from [2]. The test integration also includes the iommu-testdev DMA > readback fix and the SMMUv3 security-space tests. It is available in [3]. > > All five SMMUv3 test cases passed: > -- Non-secure Stage 1. > -- Non-secure Stage 2. > -- Non-secure nested translation. > -- Secure Stage 1. > -- Secure Stage 2 rejection with C_BAD_STE. > > The first three cases has upstreamed. For the last two cases: > > QTEST_QEMU_BINARY=./build/qemu-system-aarch64 \ > ./build/tests/qtest/iommu-smmuv3-test --tap -k \ > -p /aarch64/iommu-testdev/translation/secure-s1-only > > QTEST_QEMU_BINARY=./build/qemu-system-aarch64 \ > ./build/tests/qtest/iommu-smmuv3-test --tap -k \ > -p /aarch64/iommu-testdev/translation/secure-s2-only-bad-ste > > > The patches also available at [4]. The CI [5] passed with warnings from two jobs, > which also occured in upstream CI. > > Best regards, > Tao Thanks Tao. As far as I can see all patches in this series have been reviewed now. If those with previous comments on V5 could take another look, that would be very useful to us, as this underpins work we're trying to add for Realm and Root support in SMMUv3. Jim