numam-spdk/lib/nvme
Darek Stojaczyk 27c42e313f nvme: don't rely on phys_addr retrieved from spdk_malloc()
The phys_addr param in spdk_*malloc() is about to be
deprecated, so use a separate spdk_vtophys() call to
retrieve physical addresses.

This patch also adds error checks against SPDK_VTOPHYS_ERROR.
The error handling paths are already there to account for
spdk_*malloc() failures themselves, so reuse them in case
of vtophys failures.

Change-Id: I377636e66b8c570d013c1bb2021f04bce4e6c0ce
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/416998
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-03-20 01:06:09 +00:00
..
Makefile nvme: Add the NVMe over fabrics TCP/IP transport support 2018-11-19 20:36:05 +00:00
nvme_ctrlr_cmd.c nvme: add security receive and security send wrapper 2019-01-07 05:51:07 +00:00
nvme_ctrlr_ocssd_cmd.c ocssd: hold lock when calling nvme_ctrlr_submit_admin_request 2019-02-15 21:27:58 +00:00
nvme_ctrlr.c nvme: don't rely on phys_addr retrieved from spdk_malloc() 2019-03-20 01:06:09 +00:00
nvme_fabric.c nvme: introduce probe context data structure and API 2019-02-15 03:14:20 +00:00
nvme_internal.h nvme: Repack qpair structures 2019-03-19 07:27:44 +00:00
nvme_ns_cmd.c nvme: printf info after error 2018-09-18 22:40:34 +00:00
nvme_ns_ocssd_cmd.c vtophys: add length parameter to the vtophys function 2019-01-09 08:24:59 +00:00
nvme_ns.c nvme: make identify NS id descriptors can be executed asynchronously 2018-10-15 17:57:56 +00:00
nvme_pcie.c nvme: don't rely on phys_addr retrieved from spdk_malloc() 2019-03-20 01:06:09 +00:00
nvme_qpair.c nvme: mv submit_tick assignments to generic qpair code 2019-02-21 20:29:59 +00:00
nvme_quirks.c nvme: add SHST_COMPLETE quirk for VMWare emulated SSDs 2019-02-27 01:46:32 +00:00
nvme_rdma.c nvme: mv submit_tick assignments to generic qpair code 2019-02-21 20:29:59 +00:00
nvme_tcp.c nvmf/tcp: use the nvme_tcp_readv_data 2019-03-13 14:29:17 +00:00
nvme_transport.c nvme: introduce probe context data structure and API 2019-02-15 03:14:20 +00:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: don't rely on phys_addr retrieved from spdk_malloc() 2019-03-20 01:06:09 +00:00