Re: [vfio-users] Configuring SR-IOV on a LSI SAS 2008 HBA

2018-03-12 Thread Alex Williamson
On Mon, 12 Mar 2018 20:32:40 -0400 "taii...@gmx.com" wrote: > I have procured one of these cards and according to lspci it supports > SR-IOV like the newer ones (2308, 3008 etc) but there is zero > documentation anywhere about configuring a HBA/RAID card with SR-IOV I > have

[vfio-users] Configuring SR-IOV on a LSI SAS 2008 HBA

2018-03-12 Thread taii...@gmx.com
I have procured one of these cards and according to lspci it supports SR-IOV like the newer ones (2308, 3008 etc) but there is zero documentation anywhere about configuring a HBA/RAID card with SR-IOV I have even looked at the manuals for the newer ones where broadcom touts it as a great

Re: [vfio-users] VFIO_IOMMU_MAP_DMA succeeds only on second try?

2018-03-12 Thread Alex Williamson
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,

Re: [vfio-users] VFIO_IOMMU_MAP_DMA succeeds only on second try?

2018-03-12 Thread Oliver Heid
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, VFIO_IOMMU_MAP_DMA, _map) ) {   perror("mmap ioctl"); return 1; }     } It mostly succeeds