numam-spdk/lib/env_dpdk
Nikos Dragazis 70c703bb49 vtophys: add vfio no-IOMMU mode support
Currently, SPDK does not support vfio in no-IOMMU mode. However, it
seems quite easy to extend the vtophys code to add support for this.

vfio in no-IOMMU mode does not support DMA remapping. This implies that
physical DMA addresses are used instead of IOVAs.

This patch checks whether the vfio no-IOMMU mode is enabled using
function rte_vfio_noiommu_is_enabled() from the DPDK RTE vfio interface.
In this case, physical addresses are used for the DMA mappings. This is
the same code path for the DMA translations as when the uio is used as a
kernel driver.

Change-Id: I6fb3c849a345c6f2f2b4141dddb8c17be2581495
Signed-off-by: Nikos Dragazis <ndragazis@arrikto.com>
Reviewed-on: https://review.gerrithub.io/c/441061
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-02-13 17:59:16 +00:00
..
env_internal.h env/dpdk: remove rte_pci_bus extern declaration 2019-02-06 20:22:16 +00:00
env.c OCF: use rte_pause in wait loop 2019-01-28 19:24:13 +00:00
env.mk bdev/compress: Add configure option and build dependencies 2019-02-11 19:23:17 +00:00
init.c env/dpdk: suppress EAL's RTE_LOG_INFO messages 2019-01-25 00:44:04 +00:00
Makefile env: add pci_virtio.c 2017-09-26 14:28:24 -04:00
memory.c env: move VALUE_2MB defines into a new internal header 2019-01-13 00:47:26 +00:00
pci_ioat.c pci: remove ioat-specific attach functions 2018-12-07 17:24:19 +00:00
pci_nvme.c pci: remove nvme-specific attach functions 2018-12-07 17:24:19 +00:00
pci_virtio.c pci: remove virtio-specific attach functions 2018-12-07 17:24:19 +00:00
pci.c pci: rescan the bus on device enumeration 2019-01-09 08:23:42 +00:00
threads.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
vtophys.c vtophys: add vfio no-IOMMU mode support 2019-02-13 17:59:16 +00:00