[PATCH 18/27] iommu/arm-smmu-v3: Make SVA allocate a normal arm_smmu_domain
Jason Gunthorpe
jgg at nvidia.com
Tue Oct 24 06:05:53 PDT 2023
On Tue, Oct 24, 2023 at 04:58:53PM +0800, Michael Shavit wrote:
> > -struct iommu_domain *arm_smmu_sva_domain_alloc(void)
> > +struct iommu_domain *arm_smmu_sva_domain_alloc(unsigned type)
> > {
> > - struct iommu_domain *domain;
> > + struct arm_smmu_domain *smmu_domain;
> >
> > - domain = kzalloc(sizeof(*domain), GFP_KERNEL);
> > - if (!domain)
> > + smmu_domain = arm_smmu_domain_alloc();
> > + if (!smmu_domain)
> > return NULL;
> > - domain->ops = &arm_smmu_sva_domain_ops;
> >
>
> This will break SVA if cut here. Can probably leave the domain->ops
> there until Patch 20 replaces them.
Yes, done
Thanks,
Jason
More information about the linux-arm-kernel
mailing list