Spdk/test/env
Maciej Szwed aaac48880d env: Register external memory with DPDK
DPDK has added APIs for registering externally allocated
memory regions. Use them instead of doing our own thing.

We have to postpone spdk_mem_unregister call in
memory_hotplug_cb() because SPDK mutex (g_spdk_mem_map_mutex)
and DPDK mutex (memory_hotplug_lock) may overlap
and cause deadlock when one thread is calling spdk_free()
(locks memory_hotplug_lock first and then tries to lock
g_spdk_mem_map_mutex) and another one is calling
vhost_session_mem_unregister() (locks g_spdk_mem_map_mutex
first and then tries to lock memory_hotplug_lock).


Change-Id: I547b4ffc3987ef088a1b659addba1456ad760a71
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3560
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-03-24 11:59:59 +00:00
..
env_dpdk_post_init env_dpdk: tell spdk_mem_map_init whether legacy_mem was specified 2019-12-11 11:05:10 +00:00
mem_callbacks env_dpdk: drop DPDK 18.08 support 2020-07-23 20:48:47 +00:00
memory env: Register external memory with DPDK 2021-03-24 11:59:59 +00:00
pci env_dpdk/pci: remove driver->is_registered 2020-07-23 20:48:47 +00:00
vtophys lib/env_dpdk: replace printf() and fprintf(stderr,) usage 2020-09-07 09:28:39 +00:00
env.sh test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
Makefile test: add mem_callbacks unit test 2019-03-12 13:58:57 +00:00