Re: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-07-26 Thread Joerg Roedel
On Wed, Jul 05, 2017 at 07:57:57AM +, Tian, Kevin wrote: > > > struct tlb_invalidate_info > > > { > > > __u32 model; /* Vendor number */ I don't like to have a model-specifier here, as I don't think its needed. > > > __u8 granularity > > > #define DEVICE_SELECTVIE_INV(1

Re: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-07-05 Thread Jean-Philippe Brucker
On 05/07/17 08:57, Tian, Kevin wrote: >> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] >> Sent: Thursday, June 29, 2017 1:08 AM >> >> On 28/06/17 17:09, Jacob Pan wrote: >>> On Wed, 28 Jun 2017 12:08:23 +0200 >>> Joerg Roedel wrote: >>> On Tue, Jun 27, 2017 at 12:47:57PM

RE: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-07-05 Thread Tian, Kevin
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Thursday, June 29, 2017 1:08 AM > > On 28/06/17 17:09, Jacob Pan wrote: > > On Wed, 28 Jun 2017 12:08:23 +0200 > > Joerg Roedel wrote: > > > >> On Tue, Jun 27, 2017 at 12:47:57PM -0700, Jacob Pan wrote: > >>> From: "Liu,

Re: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-06-28 Thread Jean-Philippe Brucker
On 28/06/17 17:09, Jacob Pan wrote: > On Wed, 28 Jun 2017 12:08:23 +0200 > Joerg Roedel wrote: > >> On Tue, Jun 27, 2017 at 12:47:57PM -0700, Jacob Pan wrote: >>> From: "Liu, Yi L" >>> >>> When a SVM capable device is assigned to a guest, the first level >>> page tables are owned by the guest an

Re: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-06-28 Thread Jacob Pan
On Wed, 28 Jun 2017 12:08:23 +0200 Joerg Roedel wrote: > On Tue, Jun 27, 2017 at 12:47:57PM -0700, Jacob Pan wrote: > > From: "Liu, Yi L" > > > > When a SVM capable device is assigned to a guest, the first level > > page tables are owned by the guest and the guest PASID table > > pointer is lin

Re: [PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-06-28 Thread Joerg Roedel
On Tue, Jun 27, 2017 at 12:47:57PM -0700, Jacob Pan wrote: > From: "Liu, Yi L" > > When a SVM capable device is assigned to a guest, the first level page > tables are owned by the guest and the guest PASID table pointer is > linked to the device context entry of the physical IOMMU. > > Host IOMM

[PATCH 3/9] iommu: Introduce iommu do invalidate API function

2017-06-27 Thread Jacob Pan
From: "Liu, Yi L" When a SVM capable device is assigned to a guest, the first level page tables are owned by the guest and the guest PASID table pointer is linked to the device context entry of the physical IOMMU. Host IOMMU driver has no knowledge of caching structure updates unless the guest i