Re: [PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-11 Thread Andriy Shevchenko
On Wed, Apr 10, 2019 at 02:21:31PM -0700, Jacob Pan wrote: > On Tue, 9 Apr 2019 20:37:55 +0300 > Andriy Shevchenko wrote: > > On Tue, Apr 09, 2019 at 09:43:28AM -0700, Jacob Pan wrote: > > > On Tue, 9 Apr 2019 13:07:18 +0300 > > > Andriy Shevchenko wrote: > > > > On Mon, Apr 08, 2019 at 04:59:2

Re: [PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-10 Thread Jacob Pan
On Tue, 9 Apr 2019 20:37:55 +0300 Andriy Shevchenko wrote: > On Tue, Apr 09, 2019 at 09:43:28AM -0700, Jacob Pan wrote: > > On Tue, 9 Apr 2019 13:07:18 +0300 > > Andriy Shevchenko wrote: > > > On Mon, Apr 08, 2019 at 04:59:23PM -0700, Jacob Pan wrote: > > > > > +int iommu_cache_invalidate(s

Re: [PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-09 Thread Andriy Shevchenko
On Tue, Apr 09, 2019 at 09:43:28AM -0700, Jacob Pan wrote: > On Tue, 9 Apr 2019 13:07:18 +0300 > Andriy Shevchenko wrote: > > On Mon, Apr 08, 2019 at 04:59:23PM -0700, Jacob Pan wrote: > > > +int iommu_cache_invalidate(struct iommu_domain *domain, struct > > > device *dev, > > > +

Re: [PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-09 Thread Jacob Pan
On Tue, 9 Apr 2019 13:07:18 +0300 Andriy Shevchenko wrote: > On Mon, Apr 08, 2019 at 04:59:23PM -0700, Jacob Pan wrote: > > From: "Liu, Yi L" > > > > In any virtualization use case, when the first translation stage > > is "owned" by the guest OS, the host IOMMU driver has no knowledge > > of ca

Re: [PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-09 Thread Andriy Shevchenko
On Mon, Apr 08, 2019 at 04:59:23PM -0700, Jacob Pan wrote: > From: "Liu, Yi L" > > In any virtualization use case, when the first translation stage > is "owned" by the guest OS, the host IOMMU driver has no knowledge > of caching structure updates unless the guest invalidation activities > are tr

[PATCH 08/18] iommu: Introduce cache_invalidate API

2019-04-08 Thread Jacob Pan
From: "Liu, Yi L" In any virtualization use case, when the first translation stage is "owned" by the guest OS, the host IOMMU driver has no knowledge of caching structure updates unless the guest invalidation activities are trapped by the virtualizer and passed down to the host. Since the invali