Go to file
Takeshi Yoshimura d4774a568b vfio: fix workaround of BAR mapping
Currently, VFIO will try to map around MSI-X table in the BARs. When
MSI-X table (page-aligned) size is equal to (page-aligned) size of BAR,
VFIO will just skip the BAR.

Recent kernel versions will allow VFIO to map the entire BAR containing
MSI-X tables (*), so instead of trying to map around the MSI-X vector
or skipping the BAR entirely if it's not possible, we can now try
mapping the entire BAR first. If mapping the entire BAR doesn't
succeed, fall back to the old behavior of mapping around MSI-X table or
skipping the BAR.

(*): "vfio-pci: Allow mapping MSIX BAR",
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
commit/?id=a32295c612c57990d17fb0f41e7134394b2f35f6

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

Signed-off-by: Takeshi Yoshimura <t.yoshimura8869@gmail.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-07-26 11:34:08 +02:00
app app/crypto-perf: compile with -O3 2018-07-24 01:48:10 +02:00
buildtools mk: fix cross build 2018-07-11 21:13:25 +02:00
config compress/octeontx: introduce octeontx zip PMD 2018-07-25 13:36:26 +02:00
devtools devtools: add compressdev tests to build test 2018-07-26 11:08:05 +02:00
doc doc: add octeonx zip guide 2018-07-25 13:36:26 +02:00
drivers vfio: fix workaround of BAR mapping 2018-07-26 11:34:08 +02:00
examples build: remove duplicate checks for cflags 2018-07-26 10:09:20 +02:00
kernel igb_uio: fix build with lock down checks 2018-07-11 18:49:21 +02:00
lib mem: revert reversed allocation 2018-07-26 11:15:52 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk compress/octeontx: introduce octeontx zip PMD 2018-07-25 13:36:26 +02:00
pkg version: 18.05.0 2018-05-30 22:55:57 +02:00
test crypto/qat: support 8-byte 3DES 2018-07-24 01:48:10 +02:00
usertools usertools: add octeontx zip device for binding 2018-07-25 13:36:26 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS doc: add octeonx zip guide 2018-07-25 13:36:26 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mvpp2: add to meson build 2018-04-19 14:10:44 +02:00
meson.build version: 18.08-rc1 2018-07-16 01:17:18 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org