[RFC PATCH v2 9/9] iommu/riscv: Add riscv_iommu_attach_dev_nested

Tan Chi tanchi25 at mails.ucas.ac.cn
Tue Nov 10 05:56:15 PST 2026


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




More information about the linux-riscv mailing list