Re: [PATCH v2 08/12] iommufd: Introduce data struct for AMD nested domain allocation
From: Nicolin Chen
Date: Thu Oct 02 2025 - 13:32:21 EST
On Wed, Oct 01, 2025 at 06:09:50AM +0000, Suravee Suthikulpanit wrote:
> Introduce IOMMU_HWPT_DATA_AMD_GUEST data type for IOMMU guest page table,
> which is used for stage-1 in nested translation. The data structure
> contains information necessary for setting up the AMD HW-vIOMMU support.
>
> Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
Reviewed-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
With a nit:
> @@ -455,16 +455,27 @@ struct iommu_hwpt_arm_smmuv3 {
> __aligned_le64 ste[2];
> };
>
> +/**
> + * struct iommu_hwpt_amd_guest - AMD IOMMU specific user-managed
> + * guest I/O page table data
Following the pattern of the other two types, I'd prefer:
/*
* struct iommu_hwpt_amd_guest - AMD IOMMU guest I/O page table data
* (IOMMU_HWPT_DATA_AMD_GUEST)