VFIO_IOMMU_MAP_DMA succeeds only on second try?
On Mon, 5 Mar 2018 12:37:24 +0100
Oliver Heid <oliver.h...@h-next.de> wrote:
Do I miss something here? I want to allow RW access of a peripheral
device to a memory region via
struct vfio_iommu_type1_dma_map dma_map = { .argsz = si
Does VFIO somehow limit PCIe TLP size to 128 bytes on virtualized
devices? In our case MaxPayload = MaxReadReq = 256 bytes in PCI config,
and we use 4k aligned base addresses and do not cross 4k boundaries, but
actual package size is only 128B. Any idea how to get 256 byte TLPs?
Thanks!
Do I miss something here? I want to allow RW access of a peripheral
device to a memory region via
struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) };
__u32* mem = (__u32*)mmap(NULL,size,PROT_READ|PROT_WRITE,
MAP_SHARED|MAP_ANONYMOUS|MAP_LOCKED, -1, 0);
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
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
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!