numam-spdk/test/env
Darek Stojaczyk c93b418730 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 (master)
Reviewed-on: https://review.gerrithub.io/435691
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2018-12-06 17:08:38 +00:00
..
memory memory: fix contiguous memory calculation for unaligned buffers 2018-12-06 17:08:38 +00:00
pci make: Fix test app Makefile dependencies 2018-09-19 15:53:29 +00:00
vtophys ut/memory: refactor mem_map_alloc() tests to CUnit tests 2018-10-11 18:59:11 +00:00
env.sh test: move lib/env up one level 2018-03-29 00:31:24 -04:00
Makefile test/env: split out env_dpdk-specific tests 2018-05-24 21:27:06 +00:00