[PATCH 3/6] vfio: remove the unused mdev iommu hook

Tian, Kevin kevin.tian at intel.com
Thu Jul 22 22:44:12 PDT 2021


> From: Christoph Hellwig <hch at lst.de>
> Sent: Friday, July 23, 2021 1:41 PM
> 
> On Fri, Jul 23, 2021 at 05:36:17AM +0000, Tian, Kevin wrote:
> > > > And a new set of IOMMU-API:
> > > >
> > > >     - iommu_{un}bind_pgtable(domain, dev, addr);
> > > >     - iommu_{un}bind_pgtable_pasid(domain, dev, addr, pasid);
> > > >     - iommu_cache_invalidate(domain, dev, invalid_info);
> > >
> > > What caches is this supposed to "invalidate"?
> >
> > pasid cache, iotlb or dev_iotlb entries that are related to the bound
> > pgtable. the actual affected cache type and granularity (device-wide,
> > pasid-wide, selected addr-range) are specified by the caller.
> 
> Maybe call it pgtable_invalidate or similar?  To avoid confusing it
> with the CPUs dcache.

sure. btw above are just placeholders. We can clear them up when
working on the actual implementation. 😊

Thanks
Kevin


More information about the linux-arm-kernel mailing list