[RFC PATCH v2 5/7] iommu: Pass in kvm pointer to domain_alloc_user
Jason Gunthorpe
jgg at ziepe.ca
Thu Feb 8 07:43:43 PST 2024
On Thu, Feb 08, 2024 at 03:18:35PM +0000, Shameer Kolothum wrote:
> diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c
> index 4283dd8191f0..75e0f4e9253a 100644
> --- a/drivers/iommu/amd/iommu.c
> +++ b/drivers/iommu/amd/iommu.c
> @@ -2244,6 +2244,7 @@ static struct iommu_domain *amd_iommu_domain_alloc(unsigned int type)
> static struct iommu_domain *
> amd_iommu_domain_alloc_user(struct device *dev, u32 flags,
> struct iommu_domain *parent,
> + struct kvm *kvm,
> const struct iommu_user_data *user_data)
It would also be fine to stick this in iommu_user_data - since it is
fully optional to any driver.
The other parameters are things the drivers must check and do
something with.
Jason
More information about the linux-arm-kernel
mailing list