[dpdk-dev] [RFC] vfio: only map regions VFIO supports

2015-07-14 Thread Qiu, Michael
Hi, all While I check the maillist, I found a patch: [dpdk-dev] [PATCH v3] vfio: Fix overflow while assigning vfio BAR region offset and size This patch has fixed this issue :), and will be merged. This patch is same with mine. So I will not post the patch again. Thanks, Michael On

[dpdk-dev] [RFC] vfio: only map regions VFIO supports

2015-07-14 Thread Qiu, Michael
Hi, Stephen I have found out the root cause of this bug, and generate a patch. Will send out later after :) Thanks, Michael On 7/11/2015 1:24 AM, Stephen Hemminger wrote: > On Fri, 10 Jul 2015 07:54:10 + > "Qiu, Michael" wrote: > >> Hi, Stephen >> >> This patch does not work for fm10k

[dpdk-dev] [RFC] vfio: only map regions VFIO supports

2015-07-10 Thread Qiu, Michael
Hi, Stephen This patch does not work for fm10k with vfio, see error below: EAL: PCI device :84:00.0 on NUMA socket 1 EAL: probe driver: 8086:15a4 rte_pmd_fm10k EAL: PCI memory mapped at 0x7f198000 EAL: Trying to map BAR 2 that contains the MSI-X table. Trying offsets: :,

[dpdk-dev] [RFC] vfio: only map regions VFIO supports

2015-07-08 Thread Stephen Hemminger
The FM10K driver has 3 BARS numbered 0, 4, and 8. But the kernel VFIO driver only allows mapping 0-5 anything bigger than that will return -EINVAL (see kernel source vfio_pci.c:vfio_pci_mmap). The workaround is to limit the DPDK EAL VFIO support only map the regions that will work. The FM10K