Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-22 Thread Alex Williamson
On Thu, 22 Feb 2018 23:12:58 +0100 Oliver Heid wrote: > Problem solved: To enable MSI -> eventfd signalling we had to set the > bus master enable bit in PCI config space (bit 2 at offset 4). Yes, an MSI is simply a DMA write from the device, without BM the device cannot

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-22 Thread Oliver Heid
Thursday, February 22, 2018 10:03PM *To:* Heid, Oliver <mailto:oliver.h...@h-next.de> *Subject:* Re: [vfio-users] VFIO for PCIe streaming from/to user space On Thu, 22 Feb 2018 21:44:44 +0100 Oliver Heid <oliver.h...@h-next.de> wrote: After registering e.g. MSI 0 with __s32

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-14 Thread Alex Williamson
On Wed, 14 Feb 2018 22:06:35 +0100 Oliver Heid wrote: > Regarding the vfio_device_info struct: I get 9 device regions, of which > region 0, 2 and 4 seem to be the three BAR regions. Is that so? Always? > What do the other regions do? This is all answered in the API:

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-02-14 Thread Oliver Heid
t.com> *Subject:* Re: [vfio-users] VFIO for PCIe streaming from/to user space On Tue, 30 Jan 2018 21:41:30 +0100 Oliver Heid <oliver.h...@h-next.de> wrote: So the userspace -> IOVA mapping is not done automatically? No, see the API, user provides an IOVA. How do I get the MMU e

Re: [vfio-users] VFIO for PCIe streaming from/to user space

2018-01-30 Thread Alex Williamson
> *To:* Heid, Oliver <mailto:oliver.h...@h-next.de> > *Cc:* Vfio-users <mailto:vfio-users@redhat.com> > *Subject:* Re: [vfio-users] VFIO for PCIe streaming from/to user space > > > On Tue, 30 Jan 2018 12:02:32 +0100 > Oliver Heid <oliver.h...@h-next.de>

[vfio-users] VFIO for PCIe streaming from/to user space

2018-01-30 Thread Oliver Heid
Hi, I want to user VFIO for direct streaming between user space and a PCIe device (FPGA). Device isolation works, but how do I re-assign the PCIe BARs to my user space memory and handle the IOMMU TLB remapping? Or is there some other/better way to do that? Many thanks!