RE: [PATCH v2 02/12] iommu/vt-d: Check if SVA is supported when attaching the SVA domain

From: Tian, Kevin
Date: Tue Feb 25 2025 - 02:24:26 EST


> From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Sent: Monday, February 24, 2025 1:16 PM
>
> From: Jason Gunthorpe <jgg@xxxxxxxxxx>
>
> Attach of a SVA domain should fail if SVA is not supported, move the check
> for SVA support out of IOMMU_DEV_FEAT_SVA and into attach.
>
> Also check when allocating a SVA domain to match other drivers.
>
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>