[RFC PATCH 02/12] iommufd: Add RISC-V IOMMU hwpt and vIOMMU types
Jason Gunthorpe
jgg at ziepe.ca
Thu Oct 15 16:54:00 PDT 2026
On Thu, Oct 15, 2026 at 02:52:22PM +0800, Gong Shuai wrote:
> +/**
> + * struct iommu_hwpt_riscv - RISC-V IOMMU stage-1 page table data
> + * (IOMMU_HWPT_DATA_RISCV_S1)
> + * @tc: Guest device context translation control
> + * @iosatp: Guest device context stage-1 root page table pointer
> + */
> +struct iommu_hwpt_riscv {
> + __aligned_u64 tc;
> + __aligned_u64 iosatp;
> +};
Like the others you need a spec reference explaining exactly what
these fields are.
Usually it should be the entire guest structure, is it only 16 bytes?
But this looks broadly right otherwise
Jason
More information about the linux-riscv
mailing list