Re: [RFC PATCH v2 9/9] iommu/riscv: Add riscv_iommu_attach_dev_nested
From: Tan Chi
Date: Tue Nov 10 2026 - 09:01:47 EST
Hi Shuai,
On Tue, Nov 10, 2026 at 07:51:37PM +0800, Gong Shuai wrote:
> 2. Use the guest PSCID directly, but allocate a separate host
> GSCID for each vIOMMU.
I agree with option 2 as well. My earlier suggestion did not account
for independent PSCID namespaces across multiple vIOMMUs sharing the
same S2 parent.
Allocating a separate GSCID for each vIOMMU seems simpler than
maintaining an additional PSCID mapping table.
Thanks,
Tan Chi