70c703bb49
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> |
||
---|---|---|
.. | ||
env_internal.h | ||
env.c | ||
env.mk | ||
init.c | ||
Makefile | ||
memory.c | ||
pci_ioat.c | ||
pci_nvme.c | ||
pci_virtio.c | ||
pci.c | ||
threads.c | ||
vtophys.c |