Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-20 Thread Jacob Pan
On Wed, 19 Sep 2018 02:22:03 + "Tian, Kevin" wrote: > > From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > > Sent: Tuesday, September 18, 2018 11:47 PM > > > > On 14/09/2018 22:04, Jacob Pan wrote: > > >> This example only needs to modify first-level translation, and > >

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-18 Thread Tian, Kevin
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Tuesday, September 18, 2018 11:47 PM > > On 14/09/2018 22:04, Jacob Pan wrote: > >> This example only needs to modify first-level translation, and works > >> with SMMUv3. The kernel here could be the host, in which case

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-18 Thread Jean-Philippe Brucker
On 14/09/2018 22:04, Jacob Pan wrote: >> This example only needs to modify first-level translation, and works >> with SMMUv3. The kernel here could be the host, in which case >> second-level translation is disabled in the SMMU, or it could be the >> guest, in which case second-level mappings are

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-14 Thread Jacob Pan
On Thu, 13 Sep 2018 16:03:01 +0100 Jean-Philippe Brucker wrote: > On 13/09/2018 01:19, Tian, Kevin wrote: > >>> This is proposed for architectures which support finer granularity > >>> second level translation with no impact on architectures which > >>> only support Source ID or the similar

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-14 Thread Jean-Philippe Brucker
>> This example only needs to modify first-level translation, and works >> with SMMUv3. The kernel here could be the host, in which case >> second-level translation is disabled in the SMMU, or it could be the >> guest, in which case second-level mappings are created by QEMU and >> first-level

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-14 Thread Jean-Philippe Brucker
On 13/09/2018 17:55, Raj, Ashok wrote: >> For Arm SMMU we're more interested in the PASID-granular case than the >> RID-granular one. It doesn't necessarily require vt-d rev3 scalable >> mode, the following example can be implemented with an SMMUv3, since it >> only needs PASID-granular

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-13 Thread Tian, Kevin
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Friday, September 14, 2018 10:47 AM > > Hi, > > On 09/13/2018 01:54 AM, Jean-Philippe Brucker wrote: > > On 12/09/2018 03:42, Lu Baolu wrote: > >> Hi, > >> > >> On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote: > >>> Hi, > >>> > >>>

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-13 Thread Lu Baolu
Hi, On 09/13/2018 01:54 AM, Jean-Philippe Brucker wrote: On 12/09/2018 03:42, Lu Baolu wrote: Hi, On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote: Hi, On 30/08/2018 05:09, Lu Baolu wrote: Below APIs are introduced in the IOMMU glue for device drivers to use the finer granularity

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-13 Thread Tian, Kevin
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Thursday, September 13, 2018 11:03 PM > > On 13/09/2018 01:19, Tian, Kevin wrote: > >>> This is proposed for architectures which support finer granularity > >>> second level translation with no impact on architectures

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-13 Thread Raj, Ashok
On Thu, Sep 13, 2018 at 04:03:01PM +0100, Jean-Philippe Brucker wrote: > On 13/09/2018 01:19, Tian, Kevin wrote: > >>> This is proposed for architectures which support finer granularity > >>> second level translation with no impact on architectures which only > >>> support Source ID or the similar

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-13 Thread Jean-Philippe Brucker
On 13/09/2018 01:19, Tian, Kevin wrote: >>> This is proposed for architectures which support finer granularity >>> second level translation with no impact on architectures which only >>> support Source ID or the similar granularity. >> >> Just to be clear, in this paragraph you're only referring

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-12 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Thursday, September 13, 2018 1:54 AM > > On 12/09/2018 03:42, Lu Baolu wrote: > > Hi, > > > > On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote: > >> Hi, > >> > >> On 30/08/2018 05:09, Lu Baolu wrote: > >>> Below APIs are introduced in the IOMMU glue for

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-12 Thread Jean-Philippe Brucker
On 12/09/2018 03:42, Lu Baolu wrote: > Hi, > > On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote: >> Hi, >> >> On 30/08/2018 05:09, Lu Baolu wrote: >>> Below APIs are introduced in the IOMMU glue for device drivers to use >>> the finer granularity translation. >>> >>> *

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-11 Thread Lu Baolu
Hi, On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote: Hi, On 30/08/2018 05:09, Lu Baolu wrote: Below APIs are introduced in the IOMMU glue for device drivers to use the finer granularity translation. * iommu_capable(IOMMU_CAP_AUX_DOMAIN) - Represents the ability for supporting multiple

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-10 Thread Jean-Philippe Brucker
Hi, On 30/08/2018 05:09, Lu Baolu wrote: > Below APIs are introduced in the IOMMU glue for device drivers to use > the finer granularity translation. > > * iommu_capable(IOMMU_CAP_AUX_DOMAIN) > - Represents the ability for supporting multiple domains per device > (a.k.a. finer granularity

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-05 Thread Lu Baolu
Hi, On 09/06/2018 03:15 AM, Alex Williamson wrote: On Wed, 5 Sep 2018 03:01:39 + "Tian, Kevin" wrote: From: Lu Baolu [mailto:baolu...@linux.intel.com] Sent: Thursday, August 30, 2018 12:09 PM [...] In order to distinguish the IOMMU-capable mediated devices from those which still

Re: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-05 Thread Alex Williamson
On Wed, 5 Sep 2018 03:01:39 + "Tian, Kevin" wrote: > > From: Lu Baolu [mailto:baolu...@linux.intel.com] > > Sent: Thursday, August 30, 2018 12:09 PM > > > [...] > > > > In order to distinguish the IOMMU-capable mediated devices from those > > which still need to rely on parent devices,

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-04 Thread Tian, Kevin
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Thursday, August 30, 2018 12:09 PM > [...] > > In order to distinguish the IOMMU-capable mediated devices from those > which still need to rely on parent devices, this patch set adds a > domain type attribute to each mdev. > > enum