From: Nicolin Chen <nicolinc@nvidia.com>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>, <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Johan Hovold <johan@kernel.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Mark Rutland <mark.rutland@arm.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Pranjal Shrivastava <praan@google.com>,
Mostafa Saleh <smostafa@google.com>,
<linux-kernel@vger.kernel.org>, <iommu@lists.linux.dev>,
<driver-core@lists.linux.dev>, Sonang Patel <sonangp@nvidia.com>,
"Ankit Agrawal" <ankita@nvidia.com>,
<shameerali.kolothum.thodi@huawei.com>
Subject: Re: [PATCH v3 7/7] iommu/arm-smmu-v3: Probe a guest-level Realm VSMMU via RSI commands
Date: Wed, 25 Nov 2026 21:08:01 -0800 [thread overview]
Message-ID: <awe+sQo+TL4xI3Vj@nvidia.com> (raw)
In-Reply-To: <179563006503.253973.1333208494920198413.b4-review@b4>
On Wed, Nov 25, 2026 at 02:07:45PM -0400, Jason Gunthorpe wrote:
> > In CCA, the ACPI/etc doesn't tell the OS whether the SMMU is a confidential
> > T=1 instance or a normal T=0 one. Instead, it has to be learned by issuing
> > a trusted RSI. Before the kernel can operate the trusted T=1 IOMMU, it also
> > has to validate all the information that it gets from ACPI against the true
> > information that it gets from the RSI call, to ensure the ACPI is correct
> > and prevent substitution attacks.
> >
> > Use RSI_VSMMU_GET_INFO during probe and require the returned register range
> > to match firmware. Then use RSI_ARCH_DEV_ACTIVATE before mapping registers.
> >
> > Currently the driver doesn't support a T=0 SMMU inside a realm. For example
> > it doesn't make the page table allocations into shared memory. If we are in
> > a realm reject any SMMU that is not T=1.
> >
> > Once the SMMU is activated, its DMA will follow the DEV_FLAG_DMA_CC_PRIVATE
> > rules. It must set that flag to ensure its coherent allocations for its own
> > structures are allocated from private memory, not the SWIOTLB shared pool.
> >
> > Also skip Tegra241 CMDQV implementation in the realm world, since realm has
> > the support only for a standard SMMU for now.
>
> Maybe clarify that from a guest perspective there is no way to verify
> the information with the RMM in the NVDA200C ACPI device so that MMIO
> space cannot be used.
No way yet with the current RMM spec. But, yes. I can clarify it.
> > [ ... 21 lines skipped ... ]
> > @@ -5611,8 +5613,11 @@ static int acpi_smmu_iort_probe_model(struct acpi_iort_node *node,
> > /*
> > * Tegra241 implementation stores its SMMU options and impl_dev
> > * in DSDT. Thus, go through the ACPI tables unconditionally.
> > + *
> > + * Realm doesn't support Tegra CMDQV yet.
> > */
> > - acpi_smmu_dsdt_probe_tegra241_cmdqv(node, smmu);
> > + if (!is_realm_world())
> > + acpi_smmu_dsdt_probe_tegra241_cmdqv(node, smmu);
>
> I think I wolud put this check inside
> acpi_smmu_dsdt_probe_tegra241_cmdqv() with a comment including the
> above note.
OK (to the other two places too).
Thanks
Nicolin
next prev parent reply other threads:[~2026-11-26 5:08 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 20:50 [PATCH v3 0/7] iommu/arm-smmu-v3: Support guest-level Realm VSMMU (Part-1) Nicolin Chen
2026-11-10 20:50 ` [PATCH v3 1/7] firmware: arm_rmm: Add VSMMU commands and fields Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-10 20:50 ` [PATCH v3 2/7] dma-mapping: Let a device declare that it reaches private memory Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-10 20:50 ` [PATCH v3 3/7] dma-mapping: Keep DMA memory private for capable devices Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-25 22:54 ` Marek Szyprowski
2026-11-10 20:50 ` [PATCH v3 4/7] iommu: Let a driver mark an IOMMU as confidential Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-25 22:38 ` Nicolin Chen
2026-11-10 20:50 ` [PATCH v3 5/7] iommu: Introduce TDISP T=0 state for confidential IOMMUs Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-26 4:49 ` Nicolin Chen
2026-11-26 14:57 ` Jason Gunthorpe
2026-11-26 19:41 ` Nicolin Chen
2026-11-26 19:53 ` Jason Gunthorpe
2026-11-26 20:46 ` Nicolin Chen
2026-11-27 17:42 ` Jason Gunthorpe
2026-11-27 19:51 ` Nicolin Chen
2026-11-26 6:28 ` Nicolin Chen
2026-11-26 14:59 ` Jason Gunthorpe
2026-11-10 20:50 ` [PATCH v3 6/7] iommu: Park TDISP T=0 devices in the blocking domain Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-26 6:21 ` Nicolin Chen
2026-11-26 15:01 ` Jason Gunthorpe
2026-11-26 19:50 ` Nicolin Chen
2026-11-10 20:50 ` [PATCH v3 7/7] iommu/arm-smmu-v3: Probe a guest-level Realm VSMMU via RSI commands Nicolin Chen
2026-11-25 18:07 ` Jason Gunthorpe
2026-11-26 5:08 ` Nicolin Chen [this message]
2026-11-30 2:40 ` [PATCH v3 0/7] iommu/arm-smmu-v3: Support guest-level Realm VSMMU (Part-1) Zhenzhong Duan
2026-11-30 19:43 ` Jason Gunthorpe
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=awe+sQo+TL4xI3Vj@nvidia.com \
--to=nicolinc@nvidia.com \
--cc=ankita@nvidia.com \
--cc=catalin.marinas@arm.com \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=johan@kernel.org \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mark.rutland@arm.com \
--cc=praan@google.com \
--cc=rafael@kernel.org \
--cc=robin.murphy@arm.com \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=smostafa@google.com \
--cc=sonangp@nvidia.com \
--cc=will@kernel.org \
/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.