lkml.org 
[lkml]   [2022]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 03/12] iommu: Add attach/detach_dev_pasid domain ops
On Thu, May 12, 2022 at 08:00:59AM +0100, Jean-Philippe Brucker wrote:

> > It is not "missing" it is just renamed to blocking_domain->ops->set_dev_pasid()
> >
> > The implementation of that function would be identical to
> > detach_dev_pasid.
>
> attach(dev, pasid, sva_domain)
> detach(dev, pasid, sva_domain)
>
> versus
>
> set_dev_pasid(dev, pasid, sva_domain)
> set_dev_pasid(dev, pasid, blocking)
>
> we loose the information of the domain previously attached, and the SMMU
> driver has to retrieve it to find the ASID corresponding to the mm.

It would be easy to have the old domain be an input as well - the core
code knows it.

Jason

\
 
 \ /
  Last update: 2022-05-12 13:52    [W:0.108 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site