55656fb19f
Historically, all memory returned from spdk_*malloc() used to be physically contiguous, hence it could be addressed by offsetting just a single physical address. Since DPDK dynamic memory management came along, the above is no longer true. Memory returned from spdk_*malloc() doesn't have to be physically contiguous anymore. The phys_addr returned from spdk_*malloc() only applies to the beginning of the allocated buffer and user can't possibly know how big that "beginning" is. The phys_addr parameter in spdk_*malloc() is useless on its own in most cases and only suggests that the returned buffer is physically contiguous, which is wrong. This information can be returned from spdk_vtophys(), which is the only safe way to retrieve physical addresses. That's why phys_addr param in spdk_*malloc() is now deprecated. Change-Id: I934292f7db28b869b05caca4cb5c68c436e228d4 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448168 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@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 |