> 
> On 2020/2/17 5:57, Sai Praneeth Prakhya wrote:
> > When user requests kernel to change the default domain type of a group
> > through sysfs, kernel has to make sure that it's ok to change the
> > domain type of every device in the group to the requested domain
> > (every device may not support both the domain types i.e. DMA and
> > identity). Hence, add a call back function that could be implemented
> > per architecture that performs the above check.
> >
> > Cc: Christoph Hellwig <h...@lst.de>
> > Cc: Joerg Roedel <j...@8bytes.org>
> > Cc: Ashok Raj <ashok....@intel.com>
> > Cc: Will Deacon <will.dea...@arm.com>
> > Cc: Lu Baolu <baolu...@linux.intel.com>
> > Cc: Sohil Mehta <sohil.me...@intel.com>
> > Cc: Robin Murphy <robin.mur...@arm.com>
> > Cc: Jacob Pan <jacob.jun....@linux.intel.com>
> > Signed-off-by: Sai Praneeth Prakhya <sai.praneeth.prak...@intel.com>
> > ---
> >   include/linux/iommu.h | 3 +++
> >   1 file changed, 3 insertions(+)
> >
> > diff --git a/include/linux/iommu.h b/include/linux/iommu.h index
> > d1b5f4d98569..3f4aaad0aeb7 100644
> > --- a/include/linux/iommu.h
> > +++ b/include/linux/iommu.h
> > @@ -248,6 +248,7 @@ struct iommu_iotlb_gather {
> >    * @cache_invalidate: invalidate translation caches
> >    * @sva_bind_gpasid: bind guest pasid and mm
> >    * @sva_unbind_gpasid: unbind guest pasid and mm
> > + * @dev_def_domain_type: Return the required default domain type for
> > + a device
> 
> Can you please define the return value of this callback?

Sure! I will add it in the next version

Regards,
Sai
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to