numam-dpdk/lib/librte_eal
Shahaf Shuler 0cbce3a167 vfio: skip DMA map failure if already mapped
Currently vfio DMA map function will fail in case the same memory
segment is mapped twice.

This is too strict, as this is not an error to map the same memory
twice.

Instead, use the kernel return value to detect such state and have the
DMA function to return as successful.

For type1 mapping the kernel driver returns EEXISTS.
For spapr mapping EBUSY is returned since kernel 4.10.

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2019-03-30 16:48:55 +01:00
..
common vfio: allow DMA map to the default container 2019-03-30 16:47:54 +01:00
freebsd service: fix parameter type for attribute 2019-03-28 21:07:48 +01:00
linux vfio: skip DMA map failure if already mapped 2019-03-30 16:48:55 +01:00
Makefile build/freebsd: rename macro BSDPAPP to FREEBSD 2019-03-12 23:01:14 +01:00
meson.build service: fix parameter type for attribute 2019-03-28 21:07:48 +01:00
rte_eal_version.map fbarray: add API to find biggest used or free chunks 2019-03-28 23:28:52 +01:00