All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim MacArthur <jim.macarthur@linaro.org>
To: Tao Tang <tangtao1634@phytium.com.cn>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Leif Lindholm" <leif.lindholm@oss.qualcomm.com>,
	"Eric Auger" <eric.auger@redhat.com>,
	"Michael S . Tsirkin" <mst@redhat.com>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"Ani Sinha" <anisinha@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
	qemu-devel@nongnu.org, qemu-arm@nongnu.org,
	"Mostafa Saleh" <smostafa@google.com>,
	"Chao Liu" <chao.liu@processmission.com>,
	"Chen Baozi" <chenbaozi@phytium.com.cn>
Subject: Re: [PATCH v6 00/35] hw/arm/smmuv3: Support Secure state for SMMUv3
Date: Thu, 3 Dec 2026 09:24:50 +0000	[thread overview]
Message-ID: <axE1Yrvbwu8xmYQh@linaro.org> (raw)
In-Reply-To: <20261114154623.3599750-1-tangtao1634@phytium.com.cn>

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


  parent reply	other threads:[~2026-12-03  9:25 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 15:46 [PATCH v6 00/35] hw/arm/smmuv3: Support Secure state for SMMUv3 Tao Tang
2026-11-14 16:05 ` [PATCH v6 27/35] hw/arm/smmuv3: Route IRQ and GERROR handling by SEC_SID Tao Tang
2026-12-03 21:06   ` Mostafa Saleh
2026-11-14 16:07 ` [PATCH v6 30/35] hw/pci: Add sec-sid property to PCIDevice Tao Tang
2026-11-14 16:07 ` [PATCH v6 31/35] hw/arm/smmuv3: Select sec-sid from PCI property and validate SECURE_IMPL Tao Tang
2026-11-14 16:07 ` [PATCH v6 34/35] hw/arm/smmuv3: Add the secure-impl property Tao Tang
2026-11-14 16:13 ` [PATCH v6 01/35] hw/arm/smmuv3: Introduce Secure registers Tao Tang
2026-11-14 16:13 ` [PATCH v6 02/35] hw/arm/smmuv3: Introduce banked registers for SMMUv3 state Tao Tang
2026-11-14 16:13 ` [PATCH v6 03/35] hw/arm/smmuv3: Thread SEC_SID through helper APIs Tao Tang
2026-11-14 16:13 ` [PATCH v6 04/35] hw/arm/smmuv3: Track SEC_SID in configs and events Tao Tang
2026-11-14 16:13 ` [PATCH v6 05/35] hw/arm/smmu-common: Add security-aware address space selector Tao Tang
2026-11-14 16:16 ` [PATCH v6 06/35] hw/arm/smmuv3: Plumb transaction attributes into config helpers Tao Tang
2026-12-03 15:47   ` Mostafa Saleh
2026-12-04  8:20     ` Eric Auger
2026-11-14 16:16 ` [PATCH v6 07/35] hw/arm/smmuv3: Reject Secure STEs with stage-2 enabled Tao Tang
2026-12-03 15:47   ` Mostafa Saleh
2026-12-04  8:24     ` Eric Auger
2026-11-14 16:16 ` [PATCH v6 08/35] hw/arm/smmu-common: Key configuration cache on SMMUDevice and SEC_SID Tao Tang
2026-11-14 16:16 ` [PATCH v6 09/35] hw/arm/smmu: Add PTE NS/NSTable helpers Tao Tang
2026-11-14 16:17 ` [PATCH v6 10/35] hw/arm/smmuv3: Store CD NSCFG in TT info Tao Tang
2026-11-14 16:17 ` [PATCH v6 11/35] hw/arm/smmu-common: Implement Secure state handling in ptw Tao Tang
2026-12-04 13:52   ` Eric Auger
2026-11-14 16:17 ` [PATCH v6 12/35] hw/arm/smmuv3: Tag IOTLB cache keys with SEC_SID Tao Tang
2026-12-03 15:48   ` Mostafa Saleh
2026-11-14 16:17 ` [PATCH v6 13/35] hw/arm/smmuv3: Pass sec_sid into cmdq consume path Tao Tang
2026-12-03 15:51   ` Mostafa Saleh
2026-11-14 16:17 ` [PATCH v6 14/35] hw/arm/smmuv3: Make evtq producer use SEC_SID Tao Tang
2026-11-14 16:17 ` [PATCH v6 15/35] hw/arm/smmuv3: Limit IOMMU notifications to Non-secure targets Tao Tang
2026-12-01 10:46   ` Jim MacArthur
2026-12-03 15:52   ` Mostafa Saleh
2026-12-04 14:43   ` Eric Auger
2026-11-14 16:17 ` [PATCH v6 16/35] hw/arm/smmuv3: Scope configuration invalidation by SEC_SID Tao Tang
2026-12-01 12:32   ` Jim MacArthur
2026-12-03 15:53   ` Mostafa Saleh
2026-12-04 15:02     ` Eric Auger
2026-12-04 15:09   ` Eric Auger
2026-11-14 16:17 ` [PATCH v6 17/35] hw/arm/smmuv3: Scope IOTLB " Tao Tang
2026-12-01 13:15   ` Jim MacArthur
2026-12-03 15:55   ` Mostafa Saleh
2026-12-04 17:15     ` Eric Auger
2026-12-04 17:43       ` Eric Auger
2026-11-14 16:17 ` [PATCH v6 18/35] hw/arm/smmuv3: Fix VMID tagging for Secure stage 1 Tao Tang
2026-12-01 13:20   ` Jim MacArthur
2026-12-03 15:56   ` Mostafa Saleh
2026-11-14 16:17 ` [PATCH v6 19/35] hw/arm/smmuv3: Keep accelerated invalidation Non-secure-only Tao Tang
2026-12-01 14:14   ` Jim MacArthur
2026-12-03 15:57   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 20/35] hw/arm/smmuv3: Fix ATC invalidation command checks Tao Tang
2026-12-01 18:30   ` Jim MacArthur
2026-12-03 15:58   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 21/35] hw/arm/smmuv3: Make GERROR_IRQ_CFG registers RES0 without MSI Tao Tang
2026-12-03 15:58   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 22/35] hw/arm/smmuv3: Ignore CR2 writes while the SMMU is enabled Tao Tang
2026-12-03 15:58   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 23/35] hw/arm/smmuv3: Guard stream table register writes Tao Tang
2026-12-03 20:09   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 24/35] hw/arm/smmuv3: Guard command queue " Tao Tang
2026-11-14 16:19 ` [PATCH v6 25/35] hw/arm/smmuv3: Guard event " Tao Tang
2026-11-14 16:19 ` [PATCH v6 26/35] hw/arm/smmuv3: Determine register bank from MMIO offset Tao Tang
2026-12-03 21:05   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 28/35] hw/arm/smmuv3: Implement SMMU_S_INIT register Tao Tang
2026-12-03 21:07   ` Mostafa Saleh
2026-11-14 16:19 ` [PATCH v6 29/35] hw/arm/smmuv3: Harden security checks in MMIO handlers Tao Tang
2026-12-03 21:08   ` Mostafa Saleh
2026-11-14 16:20 ` [PATCH v6 32/35] hw/arm/smmuv3: Reject IOMMU notifiers for non-NS devices Tao Tang
2026-12-03 21:09   ` Mostafa Saleh
2026-11-14 16:20 ` [PATCH v6 33/35] hw/arm/smmuv3: Initialize the Secure register bank Tao Tang
2026-12-03 21:10   ` Mostafa Saleh
2026-11-14 16:20 ` [PATCH v6 35/35] hw/arm/smmuv3: Migrate " Tao Tang
2026-12-03  9:24 ` Jim MacArthur [this message]
2026-12-03  9:37   ` [PATCH v6 00/35] hw/arm/smmuv3: Support Secure state for SMMUv3 Eric Auger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axE1Yrvbwu8xmYQh@linaro.org \
    --to=jim.macarthur@linaro.org \
    --cc=anisinha@redhat.com \
    --cc=chao.liu@processmission.com \
    --cc=chenbaozi@phytium.com.cn \
    --cc=eric.auger@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=leif.lindholm@oss.qualcomm.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@oss.qualcomm.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=smostafa@google.com \
    --cc=tangtao1634@phytium.com.cn \
    --cc=zhao1.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.