Re: [RFC PATCH v2 9/9] iommu/riscv: Add riscv_iommu_attach_dev_nested
From: Gong Shuai
Date: Tue Nov 10 2026 - 09:52:12 EST
Hi Tan Chi,
On 11/10/2026 9:56 PM, Tan Chi wrote:
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.
Agreed. I’ll work on the new version soon.
Thanks,
Shuai
Thanks,
Tan Chi