numam-spdk/lib/virtio
Darek Stojaczyk a86029b967 virtio/pci: 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: I6d71a4c361f5ec1770d96676f3bb8f57ecd62716
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448167
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>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-03-20 01:06:09 +00:00
..
virtio_user virtio: export spec-defined structures into a separate header 2019-03-13 14:26:20 +00:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00
virtio_pci.c virtio/pci: don't rely on phys_addr retrieved from spdk_malloc() 2019-03-20 01:06:09 +00:00
virtio_user.c virtio/user: fix memory hotplug with the internal rte_vhost lib 2019-03-19 04:02:37 +00:00
virtio.c virtio: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00