Go to file
Rahul Lakkireddy 0205f87355 vfio: fix overflow of BAR region offset and size
When using vfio, the probe fails for BAR > 0 after the
commit-id 90a1633b2 (eal/linux: allow to map BARs with MSI-X tables).

While debugging further, found that the BAR region offset and size read from
vfio are u64, but are assigned to uint32_t variables.  This results in the u64
value getting truncated to 0 and passing wrong offset and size to mmap for
subsequent BAR regions.

The fix is to use unsigned long for the offset and size.

This is based on patch by Alejandro Lucero <alejandro.lucero@netronome.com>
posted at below:
	http://dpdk.org/ml/archives/dev/2015-June/020201.html
and updated with diff from below to fix 32-bit compilation:
	http://dpdk.org/ml/archives/dev/2015-July/020963.html

Fixes: 90a1633b23 ("eal/linux: allow to map BARs with MSI-X tables")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
2015-07-14 10:51:01 +02:00
app hash: rename unused field 2015-07-13 19:27:31 +02:00
config mpipe: add TILE-Gx mPIPE poll mode driver 2015-07-13 16:15:52 +02:00
doc doc: update hash guide 2015-07-13 00:43:25 +02:00
drivers pcap: add Rx and Tx byte counters 2015-07-13 19:31:58 +02:00
examples hash: rename unused field 2015-07-13 19:27:31 +02:00
lib vfio: fix overflow of BAR region offset and size 2015-07-14 10:51:01 +02:00
mk mpipe: add TILE-Gx mPIPE poll mode driver 2015-07-13 16:15:52 +02:00
pkg mk: enable next abi preview 2015-07-09 00:56:40 +02:00
scripts mk: enable next abi preview 2015-07-09 00:56:40 +02:00
tools tools: fix vfio support 2015-03-23 14:29:31 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile drivers: create new directory 2015-05-22 15:51:38 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS mpipe: add TILE-Gx mPIPE poll mode driver 2015-07-13 16:15:52 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00