37b7a30894
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> |
||
---|---|---|
.. | ||
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 |