numam-spdk/lib/env_dpdk
Darek Stojaczyk 37b7a30894 memory: fix contiguous memory calculation for unaligned buffers
We assumed spdk_mem_map_translate() translates only 2MB-aligned
addresses, but that's not true. Both vtophys and NVMf can use it
with any user-provided address and that breaks our contiguous memory
length calculations. Right now each buffer appeared to have the
first n * 2MB of memory always contiguous.

This is a bugfix for NVMf which does check the mapping length
internally. It will also become handy when adding the similar
functionality to spdk_vtophys().

Change-Id: I3bc8e0b2b8d203cb90320a79264effb7ea7037a7
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/433076
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
2018-11-29 15:16:13 +00:00
..
env_internal.h memory: fix contiguous memory calculation for unaligned buffers 2018-11-29 15:16:13 +00:00
env.c env: Fix spdk_ring creation and access. 2018-09-20 21:51:55 +00:00
env.mk dpdkbuild: stop building ipsec library with make 2018-10-31 21:55:37 +00:00
init.c env: add --huge-dir option 2018-11-08 23:09:34 +00:00
Makefile env: add pci_virtio.c 2017-09-26 14:28:24 -04:00
memory.c memory: fix contiguous memory calculation for unaligned buffers 2018-11-29 15:16:13 +00:00
pci_ioat.c pci: introduce a global hotplug lock 2018-11-21 14:17:25 +00:00
pci_nvme.c pci: introduce a global hotplug lock 2018-11-21 14:17:25 +00:00
pci_virtio.c pci: introduce a global hotplug lock 2018-11-21 14:17:25 +00:00
pci.c pci: introduce a global hotplug lock 2018-11-21 14:17:25 +00:00
threads.c env/dpdk: add security checks to spdk_env_get_socket_id() 2018-09-10 17:23:39 +00:00
vtophys.c vtophys: remove internal device refcount 2018-11-19 20:31:16 +00:00