Spdk/lib/env_dpdk
Ben Walker 3860fa7ef6 env: Search DPDK memsegs before /proc/self/pagemap for phys addrs
When running IOMMU enabled the user is actually
interacting with IO addresses - not physical
addresses. The value in the DPDK memseg array is
the correct one in this case, and should be used
at a higher priority than attempting to look up
the address in /proc/self/pagemap (i.e. what
rte_mem_virt2phy() does).

Further, rte_mem_virt2phy() will always fail when
running as an unprivileged user, but scanning
the memory segments will work.

Change-Id: I576e685111b7f9f848337134b7b89a3cf7c85402
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/375208
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-08-29 15:33:13 -04:00
..
env_internal.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env.c lib/env: add spdk_unaffinitize_thread 2017-06-23 11:02:04 -04:00
env.mk env/dpdk: additional library required for DPDK 17.05 ring based mempool 2017-05-02 15:18:15 -07:00
init.c event/env: remove dpdk_ prefix 2017-06-16 14:20:26 -04:00
Makefile env: Move lcore functions into env layer. 2017-04-04 09:19:01 -07:00
pci_ioat.c env: register PMDs on associated first probe 2017-03-06 12:44:34 -07:00
pci_nvme.c env: register PMDs on associated first probe 2017-03-06 12:44:34 -07:00
pci.c env: extend PCI address domain to 32 bits 2017-06-23 11:20:05 -04:00
threads.c env: Add wrappers to launch and wait for threads 2017-06-07 12:34:15 -04:00
vtophys.c env: Search DPDK memsegs before /proc/self/pagemap for phys addrs 2017-08-29 15:33:13 -04:00