Re: [PATCH v3 12/15] iommu/amd: Validate guest DTE for nested translation

From: Jason Gunthorpe
Date: Fri Oct 10 2025 - 18:55:58 EST


On Thu, Oct 09, 2025 at 11:57:52PM +0000, Suravee Suthikulpanit wrote:
> To make sure that configuration for host (v1) and guest (v2) page tables
> are valid before allocate nested domain.
>
> Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
> ---
> drivers/iommu/amd/amd_iommu_types.h | 2 ++
> drivers/iommu/amd/nested.c | 41 +++++++++++++++++++++++++++++
> 2 files changed, 43 insertions(+)

I would squash this into the prior patch, but looks OK. I did not try
to do a detailed check this is a complete/correct list of fields.

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason