Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-19 Thread Jacob Pan
ntel.com>; Lan, Tianyu <tianyu@intel.com>; > > > > Raj, Ashok <ashok@intel.com>; k...@vger.kernel.org; > > > > jasow...@redhat.com; Will Deacon <will.dea...@arm.com>; > > > > pet...@redhat.com; qemu-de...@nongnu.org; > > > &g

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-19 Thread Liu, Yi L
om; Will Deacon <will.dea...@arm.com>; pet...@redhat.com; > > > qemu-de...@nongnu.org; iommu@lists.linux-foundation.org; Pan, Jacob jun > > > <jacob.jun@intel.com>; Joerg Roedel <j...@8bytes.org> > > > Subject: Re: [Qemu-devel] [RFC PATCH 7/8] VFI

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-18 Thread Jean-Philippe Brucker
On 18/07/17 15:29, Alex Williamson wrote: > On Tue, 18 Jul 2017 10:38:40 +0100 > Jean-Philippe Brucker wrote: > >> On 17/07/17 23:45, Alex Williamson wrote: >> [..] > > How does a user learn which model(s) are supported by the interface? > How do they

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-18 Thread Alex Williamson
On Tue, 18 Jul 2017 10:38:40 +0100 Jean-Philippe Brucker wrote: > On 17/07/17 23:45, Alex Williamson wrote: > [..] > >>> > >>> How does a user learn which model(s) are supported by the interface? > >>> How do they learn which ops are supported? Perhaps a good use

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-18 Thread Jean-Philippe Brucker
On 17/07/17 23:45, Alex Williamson wrote: [..] >>> >>> How does a user learn which model(s) are supported by the interface? >>> How do they learn which ops are supported? Perhaps a good use for one of >>> those >>> flag bits in the outer data structure is "probe". >> >> My initial plan to user

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-17 Thread Alex Williamson
> <tianyu@intel.com>; Raj, Ashok <ashok@intel.com>; > > k...@vger.kernel.org; > > jasow...@redhat.com; Will Deacon <will.dea...@arm.com>; pet...@redhat.com; > > qemu-de...@nongnu.org; iommu@lists.linux-foundation.org; Pan, Jacob jun > > <jacob.

RE: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-17 Thread Liu, Yi L
ll.dea...@arm.com>; pet...@redhat.com; > qemu-de...@nongnu.org; iommu@lists.linux-foundation.org; Pan, Jacob jun > <jacob.jun@intel.com>; Joerg Roedel <j...@8bytes.org> > Subject: Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB > invalidate propagation

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-14 Thread Alex Williamson
On Fri, 14 Jul 2017 08:58:02 + "Liu, Yi L" wrote: > Hi Alex, > > Against to the opaque open, I'd like to propose the following definition > based on the existing comments. Pls note that I've merged the pasid > table binding and iommu tlb invalidation into a single IOCTL

RE: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-14 Thread Liu, Yi L
t;; Liu, Yi L <yi.l@intel.com>; Raj, Ashok > <ashok@intel.com>; k...@vger.kernel.org; jasow...@redhat.com; Will Deacon > <will.dea...@arm.com>; pet...@redhat.com; qemu-de...@nongnu.org; > iommu@lists.linux-foundation.org; Pan, Jacob jun <jacob.jun@intel.com> &g

RE: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-05 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Wednesday, July 5, 2017 8:42 PM > > On 05/07/17 07:45, Tian, Kevin wrote: > >> From: Liu, Yi L > >> Sent: Monday, July 3, 2017 6:31 PM > >> > >> Hi Jean, > >> > >> > >>> > 2. Define a structure in include/uapi/linux/iommu.h(newly added > header > >>

RE: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-05 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, July 6, 2017 1:28 AM > > On Wed, 5 Jul 2017 13:42:03 +0100 > Jean-Philippe Brucker wrote: > > > On 05/07/17 07:45, Tian, Kevin wrote: > > >> From: Liu, Yi L > > >> Sent: Monday, July 3,

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-05 Thread Alex Williamson
On Wed, 5 Jul 2017 13:42:03 +0100 Jean-Philippe Brucker wrote: > On 05/07/17 07:45, Tian, Kevin wrote: > >> From: Liu, Yi L > >> Sent: Monday, July 3, 2017 6:31 PM > >> > >> Hi Jean, > >> > >> > >>> > 2. Define a structure in

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-05 Thread Jean-Philippe Brucker
On 05/07/17 07:45, Tian, Kevin wrote: >> From: Liu, Yi L >> Sent: Monday, July 3, 2017 6:31 PM >> >> Hi Jean, >> >> >>> 2. Define a structure in include/uapi/linux/iommu.h(newly added header >> file) struct iommu_tlb_invalidate { __u32 scope; /* pasid-selective

RE: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-05 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Monday, July 3, 2017 6:31 PM > > Hi Jean, > > > > > > > 2. Define a structure in include/uapi/linux/iommu.h(newly added header > file) > > > > > > struct iommu_tlb_invalidate { > > > __u32 scope; > > > /* pasid-selective invalidation described by @pasid */ > > >

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-04 Thread Liu, Yi L
Hi Jean, On Mon, Jul 03, 2017 at 12:52:52PM +0100, Jean-Philippe Brucker wrote: > Hi Yi, > > On 02/07/17 11:06, Liu, Yi L wrote: > > On Fri, May 12, 2017 at 01:11:02PM +0100, Jean-Philippe Brucker wrote: > > > > Hi Jean, > > > > As we've got a few discussions on it. I'd like to have a

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-03 Thread Jean-Philippe Brucker
Hi Yi, On 02/07/17 11:06, Liu, Yi L wrote: > On Fri, May 12, 2017 at 01:11:02PM +0100, Jean-Philippe Brucker wrote: > > Hi Jean, > > As we've got a few discussions on it. I'd like to have a conclusion and > make it as a reference for future discussion. > > Currently, we are inclined to have a

Re: [Qemu-devel] [RFC PATCH 7/8] VFIO: Add new IOCTL for IOMMU TLB invalidate propagation

2017-07-03 Thread Liu, Yi L
On Fri, May 12, 2017 at 01:11:02PM +0100, Jean-Philippe Brucker wrote: Hi Jean, As we've got a few discussions on it. I'd like to have a conclusion and make it as a reference for future discussion. Currently, we are inclined to have a hybrid format for the iommu tlb invalidation from