[PATCH v7 13/16] iommufd/viommu: Select vIOMMU operations before allocation
Jason Gunthorpe
jgg at nvidia.com
Thu Oct 29 05:43:27 PDT 2026
On Thu, Oct 29, 2026 at 01:51:37PM +0530, Aneesh Kumar K.V wrote:
> modified drivers/iommu/amd/iommufd.c
> @@ -41,7 +41,7 @@ static size_t amd_iommufd_get_viommu_size(struct device *dev,
> const struct iommufd_viommu_ops *
> amd_iommufd_get_viommu_ops(struct device *dev, enum iommu_viommu_type viommu_type)
> {
> - return &amd_viommu_ops;
> + return NULL:
> }
>
> int amd_iommufd_viommu_init(struct iommufd_viommu *viommu,
Yes, it was a mistake to let this in the way it was
Ideally maybe lets get Joerg to pick up just that patch next week.
> Alexey,
>
> Could you look at this and suggest the AMD equivalent of
> arm_smmu_get_viommu_ops()? We could add it as part of this patch.
It needs a whole other 20 patch series from Suravee to complete the
viommu work in the driver.
https://patch.msgid.link/20260930092344.5616-1-suravee.suthikulpanit@amd.com
Jason
More information about the linux-arm-kernel
mailing list