Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-10-05 Thread Auger Eric
Hi Will, On 23/08/2017 18:42, Will Deacon wrote: > Hi Eric, > > On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: >> On 23/08/2017 12:25, Will Deacon wrote: >>> On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S.

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-24 Thread Auger Eric
Hi Will, On 23/08/2017 18:42, Will Deacon wrote: > Hi Eric, > > On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: >> On 23/08/2017 12:25, Will Deacon wrote: >>> On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S.

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Michael S. Tsirkin
On Wed, Aug 23, 2017 at 05:42:55PM +0100, Will Deacon wrote: > Hi Eric, > > On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: > > On 23/08/2017 12:25, Will Deacon wrote: > > > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > > >> On Fri, Aug 18, 2017 at 05:49:42AM +0

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Will Deacon
Hi Eric, On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: > On 23/08/2017 12:25, Will Deacon wrote: > > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > >> On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: > >>> On Thu, Aug 17, 2017 at 05:34:25PM +

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Michael S. Tsirkin
On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: > Hi Will, > > On 23/08/2017 12:25, Will Deacon wrote: > > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > >> On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: > >>> On Thu, Aug 17, 2017 at 05:34:25

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Michael S. Tsirkin
On Wed, Aug 23, 2017 at 11:25:17AM +0100, Will Deacon wrote: > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > > On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: > > > On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: > > > > On Fri, Aug 11, 2017

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Auger Eric
Hi Will, On 23/08/2017 12:25, Will Deacon wrote: > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: >> On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: >>> On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: On Fri, Aug 11, 2017 at 03:45:28PM +02

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Will Deacon
On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: > > On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: > > > On Fri, Aug 11, 2017 at 03:45:28PM +0200, Eric Auger wrote: > > > > When running a virtual

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-22 Thread Michael S. Tsirkin
On Fri, Aug 18, 2017 at 05:49:42AM +0300, Michael S. Tsirkin wrote: > On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: > > On Fri, Aug 11, 2017 at 03:45:28PM +0200, Eric Auger wrote: > > > When running a virtual SMMU on a guest we sometimes need to trap > > > all changes to the translat

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-17 Thread Auger Eric
Hi Michael, On 18/08/2017 04:54, Michael S. Tsirkin wrote: > On Thu, Aug 17, 2017 at 07:47:04PM +0200, Auger Eric wrote: >> I will see with Peter and other potential users in the community whether >> it is worth to pursue the efforts on upstreaming the QEMU vSMMUv3 >> device, considering the VFIO/V

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-17 Thread Michael S. Tsirkin
On Thu, Aug 17, 2017 at 07:47:04PM +0200, Auger Eric wrote: > I will see with Peter and other potential users in the community whether > it is worth to pursue the efforts on upstreaming the QEMU vSMMUv3 > device, considering the VFIO/VHOST integration is made impossible. I posted more ideas on fin

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-17 Thread Michael S. Tsirkin
On Thu, Aug 17, 2017 at 05:34:25PM +0100, Will Deacon wrote: > On Fri, Aug 11, 2017 at 03:45:28PM +0200, Eric Auger wrote: > > When running a virtual SMMU on a guest we sometimes need to trap > > all changes to the translation structures. This is especially useful > > to integrate with VFIO. This p

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-17 Thread Auger Eric
Hi Will, On 17/08/2017 18:34, Will Deacon wrote: > On Fri, Aug 11, 2017 at 03:45:28PM +0200, Eric Auger wrote: >> When running a virtual SMMU on a guest we sometimes need to trap >> all changes to the translation structures. This is especially useful >> to integrate with VFIO. This patch adds a ne

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-17 Thread Will Deacon
On Fri, Aug 11, 2017 at 03:45:28PM +0200, Eric Auger wrote: > When running a virtual SMMU on a guest we sometimes need to trap > all changes to the translation structures. This is especially useful > to integrate with VFIO. This patch adds a new option that forces > the IO_PGTABLE_QUIRK_TLBI_ON_MAP

[RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-11 Thread Eric Auger
When running a virtual SMMU on a guest we sometimes need to trap all changes to the translation structures. This is especially useful to integrate with VFIO. This patch adds a new option that forces the IO_PGTABLE_QUIRK_TLBI_ON_MAP to be applied on LPAE page tables. TLBI commands then can be trapp