On Mon, 12 Mar 2018 15:18:30 +0100
Oliver Heid wrote:
> Many thanks!
>
> mmap succeeds - I removed the checks only to post the code on this list.
> I use this now:
>
> if ( !ioctl(container, VFIO_IOMMU_MAP_DMA, _map) )
> { if ( !ioctl(container,
it working.
*From:* Alex Williamson <mailto:alex.william...@redhat.com>
*Sent:* Monday, March 12, 2018 6:57AM
*To:* Heid, Oliver <mailto:oliver.h...@h-next.de>
*Cc:* Vfio-users <mailto:vfio-users@redhat.com>
*Subject:* Re: [vfio-users]
On Mon, 5 Mar 2018 12:37:24 +0100
Oliver Heid 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 = sizeof(dma_map) };
>
> __u32* mem =
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);