Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-14 Thread Robin Murphy
lothum.th...@huawei.com> Cc: Auger Eric <eric.au...@redhat.com>; pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com> Subject: Re: [PATCH v4 4/6] vfio/ty

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-14 Thread Robin Murphy
...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm ; John Garry ; xuwei (O) Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range On 02/03/18 16:04, Alex Williamson wrote: [...] I still think you're overstretching the IOMMU reserved region interface by trying

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-08 Thread Shameerali Kolothum Thodi
m.com; > k...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > <linux...@huawei.com>; John Garry <john.ga...@huawei.com>; xuwei (O) > <xuw...@huawei.com> > Subject: RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range [...

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-08 Thread Shameerali Kolothum Thodi
; xuwei (O) > > Subject: RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range [...] > > >>> I still think you're overstretching the IOMMU reserved region interface > > >>> by trying to report possible ACS conflicts.

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-05 Thread Shameerali Kolothum Thodi
c <eric.au...@redhat.com>; pmo...@linux.vnet.ibm.com; > k...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > <linux...@huawei.com>; John Garry <john.ga...@huawei.com>; xuwei (O) > <xuw...@huawei.com> > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma ma

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-05 Thread Shameerali Kolothum Thodi
.kernel.org; Linuxarm > ; John Garry ; xuwei (O) > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range > > On 02/03/18 16:04, Alex Williamson wrote: > [...] > >>> I still think you're overstretching the IOMMU reserve

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Robin Murphy
On 02/03/18 16:04, Alex Williamson wrote: [...] I still think you're overstretching the IOMMU reserved region interface by trying to report possible ACS conflicts. Are we going to update the reserved list on device hotplug? Are we going to update the list when MMIO is enabled or disabled for

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Robin Murphy
On 02/03/18 16:04, Alex Williamson wrote: [...] I still think you're overstretching the IOMMU reserved region interface by trying to report possible ACS conflicts. Are we going to update the reserved list on device hotplug? Are we going to update the list when MMIO is enabled or disabled for

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Alex Williamson
com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > > <robin.mur...@arm.com> > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > > valid > > iova range > > > > On Wed, 28 Feb 2018 12:53:27 +0100 > &g

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Alex Williamson
t; > pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Linuxarm ; John Garry > > ; xuwei (O) ; Robin Murphy > > > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > > valid > > iova range > >

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Shameerali Kolothum Thodi
.ibm.com; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry > <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > <robin.mur...@arm.com> > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map req

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-03-02 Thread Shameerali Kolothum Thodi
Linuxarm ; John Garry > ; xuwei (O) ; Robin Murphy > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range > > On Wed, 28 Feb 2018 12:53:27 +0100 > Auger Eric wrote: > > > Hi Shameer, > > > > On 28/02/18 10:25,

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
t;alex.william...@redhat.com> >>>> Cc: pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >>>> ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry >>>> <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin >>

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
>> Cc: pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Linuxarm ; John Garry >> ; xuwei (O) ; Robin Murphy >> >> Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a >> valid >> iova ra

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Alex Williamson
...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry > >> <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > >> <robin.mur...@arm.com> > >> Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a &g

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Alex Williamson
y, February 28, 2018 9:02 AM > >> To: Shameerali Kolothum Thodi ; > >> Alex Williamson > >> Cc: pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- > >> ker...@vger.kernel.org; Linuxarm ; John Garry > >> ; xuwei (O) ; Robin Murphy > >> >

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Shameerali Kolothum Thodi
: pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry > <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > <robin.mur...@arm.com> > Subject: Re: [PATCH v4 4/6] vfio/type1: check

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Shameerali Kolothum Thodi
Linuxarm ; John Garry > ; xuwei (O) ; Robin Murphy > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range > > Hi Shameer, > > On 28/02/18 10:25, Shameerali Kolothum Thodi wrote: > > > > > >> -Orig

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
lothum.th...@huawei.com>; >>>> pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >>>> ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry >>>> <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin >>

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
>> Cc: pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Linuxarm ; John Garry >> ; xuwei (O) ; Robin Murphy >> >> Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a >> valid >> iova ra

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Shameerali Kolothum Thodi
.ibm.com; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry > <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > <robin.mur...@arm.com> > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map req

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Shameerali Kolothum Thodi
John Garry > ; xuwei (O) ; Robin Murphy > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range > > Hi Shameer, > > On 27/02/18 10:57, Shameerali Kolothum Thodi wrote: > > > > > >> -Original Messag

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
gt; >> Cc: Shameerali Kolothum Thodi <shameerali.kolothum.th...@huawei.com>; >> pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry >> <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Rob

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-28 Thread Auger Eric
di ; >> pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- >> ker...@vger.kernel.org; Linuxarm ; John Garry >> ; xuwei (O) ; Robin Murphy >> >> Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a >> valid >> iova range >> >&g

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Alex Williamson
com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > > <robin.mur...@arm.com> > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > > valid > > iova range > > > > Hi, > > On 27/02/18 00:13, Alex Williamson wrote: >

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Alex Williamson
t; > pmo...@linux.vnet.ibm.com; k...@vger.kernel.org; linux- > > ker...@vger.kernel.org; Linuxarm ; John Garry > > ; xuwei (O) ; Robin Murphy > > > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > > valid > > iova range > > > &

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Alex Williamson
On Tue, 27 Feb 2018 09:26:37 +0100 Auger Eric wrote: > Hi, > On 27/02/18 00:13, Alex Williamson wrote: > > On Mon, 26 Feb 2018 23:05:43 +0100 > > Auger Eric wrote: > > > >> Hi Shameer, > >> > >> [Adding Robin in CC] > >> On 21/02/18 13:22,

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Alex Williamson
On Tue, 27 Feb 2018 09:26:37 +0100 Auger Eric wrote: > Hi, > On 27/02/18 00:13, Alex Williamson wrote: > > On Mon, 26 Feb 2018 23:05:43 +0100 > > Auger Eric wrote: > > > >> Hi Shameer, > >> > >> [Adding Robin in CC] > >> On 21/02/18 13:22, Shameer Kolothum wrote: > >>> This checks and

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Robin Murphy
Hi Alex, On 26/02/18 23:13, Alex Williamson wrote: On Mon, 26 Feb 2018 23:05:43 +0100 Auger Eric wrote: Hi Shameer, [Adding Robin in CC] On 21/02/18 13:22, Shameer Kolothum wrote: This checks and rejects any dma map request outside valid iova range. Signed-off-by:

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Robin Murphy
Hi Alex, On 26/02/18 23:13, Alex Williamson wrote: On Mon, 26 Feb 2018 23:05:43 +0100 Auger Eric wrote: Hi Shameer, [Adding Robin in CC] On 21/02/18 13:22, Shameer Kolothum wrote: This checks and rejects any dma map request outside valid iova range. Signed-off-by: Shameer Kolothum ---

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Shameerali Kolothum Thodi
.ibm.com; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm <linux...@huawei.com>; John Garry > <john.ga...@huawei.com>; xuwei (O) <xuw...@huawei.com>; Robin Murphy > <robin.mur...@arm.com> > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map requ

RE: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Shameerali Kolothum Thodi
John Garry > ; xuwei (O) ; Robin Murphy > > Subject: Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a > valid > iova range > > Hi, > On 27/02/18 00:13, Alex Williamson wrote: > > On Mon, 26 Feb 2018 23:05:43 +0100 > > Auger Eric wrote: > >

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Auger Eric
Hi, On 27/02/18 00:13, Alex Williamson wrote: > On Mon, 26 Feb 2018 23:05:43 +0100 > Auger Eric wrote: > >> Hi Shameer, >> >> [Adding Robin in CC] >> On 21/02/18 13:22, Shameer Kolothum wrote: >>> This checks and rejects any dma map request outside valid iova >>> range.

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-27 Thread Auger Eric
Hi, On 27/02/18 00:13, Alex Williamson wrote: > On Mon, 26 Feb 2018 23:05:43 +0100 > Auger Eric wrote: > >> Hi Shameer, >> >> [Adding Robin in CC] >> On 21/02/18 13:22, Shameer Kolothum wrote: >>> This checks and rejects any dma map request outside valid iova >>> range. >>> >>> Signed-off-by:

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-26 Thread Alex Williamson
On Mon, 26 Feb 2018 23:05:43 +0100 Auger Eric wrote: > Hi Shameer, > > [Adding Robin in CC] > On 21/02/18 13:22, Shameer Kolothum wrote: > > This checks and rejects any dma map request outside valid iova > > range. > > > > Signed-off-by: Shameer Kolothum

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-26 Thread Alex Williamson
On Mon, 26 Feb 2018 23:05:43 +0100 Auger Eric wrote: > Hi Shameer, > > [Adding Robin in CC] > On 21/02/18 13:22, Shameer Kolothum wrote: > > This checks and rejects any dma map request outside valid iova > > range. > > > > Signed-off-by: Shameer Kolothum > > --- > >

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-26 Thread Auger Eric
Hi Shameer, [Adding Robin in CC] On 21/02/18 13:22, Shameer Kolothum wrote: > This checks and rejects any dma map request outside valid iova > range. > > Signed-off-by: Shameer Kolothum > --- > drivers/vfio/vfio_iommu_type1.c | 22 ++ >

Re: [PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-26 Thread Auger Eric
Hi Shameer, [Adding Robin in CC] On 21/02/18 13:22, Shameer Kolothum wrote: > This checks and rejects any dma map request outside valid iova > range. > > Signed-off-by: Shameer Kolothum > --- > drivers/vfio/vfio_iommu_type1.c | 22 ++ > 1 file changed, 22 insertions(+) > >

[PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-21 Thread Shameer Kolothum
This checks and rejects any dma map request outside valid iova range. Signed-off-by: Shameer Kolothum --- drivers/vfio/vfio_iommu_type1.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/vfio/vfio_iommu_type1.c

[PATCH v4 4/6] vfio/type1: check dma map request is within a valid iova range

2018-02-21 Thread Shameer Kolothum
This checks and rejects any dma map request outside valid iova range. Signed-off-by: Shameer Kolothum --- drivers/vfio/vfio_iommu_type1.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index