[dpdk-dev] [bug] dpdk-vfio: Invalid region/index assumption

2016-07-28 Thread Alex Williamson
On Thu, 28 Jul 2016 09:42:13 + "Burakov, Anatoly" wrote: > > Hi, > > > > 2016-07-27 16:14, Alex Williamson: > > > I took a quick look at the dpdk vfio code and spotted an invalid > > > assumption that should probably be corrected

[dpdk-dev] [bug] dpdk-vfio: Invalid region/index assumption

2016-07-27 Thread Alex Williamson
Hi, I took a quick look at the dpdk vfio code and spotted an invalid assumption that should probably be corrected ASAP. That is: lib/librte_eal/linuxapp/eal/eal_vfio.h: #define VFIO_GET_REGION_ADDR(x) ((uint64_t) x << 40ULL) #define VFIO_GET_REGION_IDX(x) (x >> 40) Region offset to index is an

[dpdk-dev] [PATCH] vfio/noiommu: Don't use iommu_present() to track fake groups

2016-01-22 Thread Alex Williamson
itself. Reported-by: Alexey Kardashevskiy Fixes: 03a76b60f8ba ("vfio: Include No-IOMMU mode") Signed-off-by: Alex Williamson --- Copying some DPDK folks and would appreciate validation that this still works for the intended no-iommu use case. Thanks! drivers/vfio/vfi

[dpdk-dev] VFIO no-iommu

2016-01-13 Thread Alex Williamson
On Thu, 2016-01-14 at 14:03 +0800, Jike Song wrote: > On Wed, Dec 16, 2015 at 12:38 PM, Alex Williamson > wrote: > > > > So it works.??Is it acceptable???Useful???Sufficiently complete???Does > > it imply deprecating the uio interface???I believe the feature that >

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Alex Williamson
On Tue, 2015-12-29 at 16:17 +0530, Santosh Shukla wrote: > On Tue, Dec 29, 2015 at 3:26 PM, Burakov, Anatoly > wrote: > > Hi Santosh, > > > > > On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla > > om> > > > wrote: > > > > On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu > > > > wrote: > > > > > On

[dpdk-dev] VFIO no-iommu

2015-12-22 Thread Alex Williamson
On Mon, 2015-12-21 at 12:22 -0700, Alex Williamson wrote: > On Mon, 2015-12-21 at 11:46 +, Yigit, Ferruh wrote: > > On Fri, Dec 18, 2015 at 02:50:17PM -0700, Alex Williamson wrote: > > > On Fri, 2015-12-18 at 07:38 -0700, Alex Williamson wrote: > > > > On Fri, 20

[dpdk-dev] [PATCH v4] vfio: Include No-IOMMU mode

2015-12-22 Thread Alex Williamson
mu support for the vfio-pci bus driver only. Signed-off-by: Alex Williamson Acked-by: Michael S. Tsirkin --- v4: Fix build without CONFIG_VFIO_NOIOMMU (oops). Also avoid local noiommu variable in vfio_create_group() to avoid scope confusion with global of the same name. drivers/vfio/Kconfig

[dpdk-dev] [PATCH v3] vfio: Include No-IOMMU mode

2015-12-22 Thread Alex Williamson
mu support for the vfio-pci bus driver only. Signed-off-by: Alex Williamson Acked-by: Michael S. Tsirkin --- v3: Version 2 was dropped from kernel v4.4 due to lack of a user. We now have a working DPDK port to this interface, so I'm proposing it again for v4.5. The changes since v2 can be found

[dpdk-dev] VFIO no-iommu

2015-12-21 Thread Alex Williamson
On Mon, 2015-12-21 at 11:46 +, Yigit, Ferruh wrote: > On Fri, Dec 18, 2015 at 02:50:17PM -0700, Alex Williamson wrote: > > On Fri, 2015-12-18 at 07:38 -0700, Alex Williamson wrote: > > > On Fri, 2015-12-18 at 10:43 +, Yigit, Ferruh wrote: > > > > On Thu, De

[dpdk-dev] VFIO no-iommu

2015-12-18 Thread Alex Williamson
On Fri, 2015-12-18 at 07:38 -0700, Alex Williamson wrote: > On Fri, 2015-12-18 at 10:43 +, Yigit, Ferruh wrote: > > On Thu, Dec 17, 2015 at 09:43:59AM -0700, Alex Williamson wrote: > > <...> > > > > > > > > > > > >

[dpdk-dev] VFIO no-iommu

2015-12-18 Thread Alex Williamson
On Fri, 2015-12-18 at 10:43 +, Yigit, Ferruh wrote: > On Thu, Dec 17, 2015 at 09:43:59AM -0700, Alex Williamson wrote: > <...> > > > > > > > > > > > > > > Also I need to disable VFIO_CHECK_EXTENSION ioctl, > >

[dpdk-dev] VFIO no-iommu

2015-12-17 Thread Alex Williamson
On Wed, 2015-12-16 at 17:22 +, Burakov, Anatoly wrote: > Hi Alex, > > > On Wed, 2015-12-16 at 08:35 +, Burakov, Anatoly wrote: > > > Hi Alex, > > > > > > > On Wed, 2015-12-16 at 04:04 +, Ferruh Yigit wrote: > > > > >

[dpdk-dev] VFIO no-iommu

2015-12-16 Thread Alex Williamson
On Wed, 2015-12-16 at 08:35 +, Burakov, Anatoly wrote: > Hi Alex, > > > On Wed, 2015-12-16 at 04:04 +, Ferruh Yigit wrote: > > > On Tue, Dec 15, 2015 at 09:53:18AM -0700, Alex Williamson wrote: > > > I tested the DPDK (HEAD of master) with the patch, with h

[dpdk-dev] VFIO no-iommu

2015-12-15 Thread Alex Williamson
On Wed, 2015-12-16 at 04:04 +, Ferruh Yigit wrote: > On Tue, Dec 15, 2015 at 09:53:18AM -0700, Alex Williamson wrote: > > On Tue, 2015-12-15 at 13:43 +, O'Driscoll, Tim wrote: > > > > -Original Message- > > > > From: dev [mailto:dev-bounc

[dpdk-dev] VFIO no-iommu

2015-12-15 Thread Alex Williamson
On Tue, 2015-12-15 at 13:43 +, O'Driscoll, Tim wrote: > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Alex > > Williamson > > Sent: Friday, December 11, 2015 11:03 PM > > To: Vincent JARDIN; dev at dpdk.org > > S

[dpdk-dev] VFIO no-iommu

2015-12-11 Thread Alex Williamson
On Fri, 2015-12-11 at 23:12 +0100, Vincent JARDIN wrote: > Thanks Thomas for putting back this topic. > > Alex, > > I'd like to hear more about the impacts of "unsupported": > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commi > t/?id=033291eccbdb1b70ffc02641edae19ac825dc75d >

[dpdk-dev] [PATCH] vfio: support iommu group zero

2015-12-09 Thread Alex Williamson
On Wed, 2015-12-09 at 16:52 -0800, Stephen Hemminger wrote: > On Wed, 09 Dec 2015 16:22:14 -0700 > Alex Williamson wrote: > > > On Wed, 2015-12-09 at 15:12 -0800, Stephen Hemminger wrote: > > > On Wed, 09 Dec 2015 23:49:59 +0100 > > > Thomas Monjalon wrote

[dpdk-dev] [PATCH] vfio: support iommu group zero

2015-12-09 Thread Alex Williamson
On Wed, 2015-12-09 at 15:12 -0800, Stephen Hemminger wrote: > On Wed, 09 Dec 2015 23:49:59 +0100 > Thomas Monjalon wrote: > > > 2015-12-09 13:58, Stephen Hemminger: > > > On Wed, 09 Dec 2015 22:12:33 +0100 > > > Thomas Monjalon wrote: > > > > > > > 2015-12-09 09:55, Stephen Hemminger: > > > >

[dpdk-dev] [PATCH] vfio: Include No-IOMMU mode

2015-12-02 Thread Alex Williamson
On Mon, 2015-11-16 at 19:12 +0200, Avi Kivity wrote: > On 11/16/2015 07:06 PM, Alex Williamson wrote: > > On Wed, 2015-10-28 at 15:21 -0600, Alex Williamson wrote: > >> There is really no way to safely give a user full access to a DMA > >> capable device without an IOMMU