Re: [PATCH v9 0/5] Share sva domains with all devices bound to a mm

From: Jason Gunthorpe
Date: Thu Oct 26 2023 - 09:51:06 EST


On Thu, Oct 26, 2023 at 09:20:16AM -0300, Jason Gunthorpe wrote:
> On Thu, Oct 26, 2023 at 09:24:40AM +0200, Joerg Roedel wrote:
> > Hi Tina,
> >
> > On Wed, Oct 18, 2023 at 01:06:35PM +0800, Tina Zhang wrote:
> > > Tina Zhang (5):
> > > iommu/vt-d: Remove mm->pasid in intel_sva_bind_mm()
> > > iommu: Add mm_get_enqcmd_pasid() helper function
> > > mm: Add structure to keep sva information
> > > iommu: Support mm PASID 1:n with sva domains
> > > mm: Deprecate pasid field
> >
> > Thanks for doing this, it all looks reasonable to me. But there is one
> > thing missing which needs to be done before we can move forward with
> > this.
> >
> > There was a discussion about the Kconfig symbol naming used in
> > mm_struct. Please see the discussion here:
> >
> > https://lore.kernel.org/all/CAHk-=wgUiAtiszwseM1p2fCJ+sC4XWQ+YN4TanFhUgvUqjr9Xw@xxxxxxxxxxxxxx/
> >
> > Please update this patch-set to solve this and I will take the series.
>
> Lets call it CONFIG_IOMMU_MM_DATA then. It is still pretty nonsensical
> but it speaks to what it does after this series

This is what I came up with: