numam-spdk/test
Ben Walker 714a56466a test/nvmf: allow running as unprivileged user
Add a new test flag SPDK_RUN_NON_ROOT forcing some of the
SPDK applications to run as an unprivileged user. For now
we implement it in nvmf tests. If enabled, nvmf_tgt will
run as the user who invoked `sudo ./autotest.sh`.

Running SPDK as non-root has two major prerequisites right now:
 * there must be an IOMMU in the system in order to use PCI devices
 * DPDK version must be either < 18.05 or >= 19.08-rc1

Change-Id: If1ba9dfcc09fc6cac059867408a1b54eddecfb4b
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454679
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-09-18 20:34:39 +00:00
..
app test/vhost_fuzz: fix an error between SCSI_MGMT_NAME and SCSI_IO_NAME 2019-08-27 18:33:10 +00:00
bdev test/bdev: Use thread library in bdevio 2019-09-18 16:45:05 +00:00
blobfs test: remove test plan .md files 2019-09-10 22:57:04 +00:00
blobstore RPC: rename get_bdev_histogram to bdev_get_histogram 2019-09-13 22:39:15 +00:00
common test/nvmf: allow running as unprivileged user 2019-09-18 20:34:39 +00:00
compress RPC: rename rpc construct_lvol_store to bdev_lvol_create_lvstore 2019-08-30 16:40:44 +00:00
config_converter rpc: Rename add_portal_group to iscsi_create_portal_group 2019-09-10 17:44:16 +00:00
cpp_headers Makefile: Add possibility to uninstall spdk. 2019-05-16 20:56:18 +00:00
env env: add spdk_pci_device_unclaim() 2019-09-18 20:34:39 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl scripts/rpc: Rename rpcs related to ftl bdev 2019-09-18 20:20:15 +00:00
fuzz scripts/rpc: Change rpc construct_malloc_bdev to bdev_malloc_create 2019-08-14 22:15:08 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt Rename target_node_add_lun to iscsi_target_node_add_lun 2019-09-17 19:54:02 +00:00
json_config RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
lvol RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
make test/make: add ignored libs to check_so_deps.sh 2019-09-09 22:15:24 +00:00
nvme test/nvme: add kernel io_uring mode for perf scripts 2019-09-09 04:43:56 +00:00
nvmf test/nvmf: allow running as unprivileged user 2019-09-18 20:34:39 +00:00
ocf scripts/rpc: Rename rpc delete_malloc_bdev to bdev_malloc_delete 2019-09-09 05:02:47 +00:00
openstack RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
pmem RPC: rename rpc get_bdevs to bdev_get_bdevs 2019-09-13 22:39:15 +00:00
rpc_client jsonrpc: tolerate null json value for parameters in json-rpc call 2019-07-26 19:30:57 +00:00
spdkcli rpc: Rename delete_pg_ig_maps to iscsi_target_node_remove_pg_ig_maps 2019-09-18 18:09:13 +00:00
unit env: add spdk_pci_device_unclaim() 2019-09-18 20:34:39 +00:00
vhost test/vhost: move migration tests to RUN_NIGHTLY 2019-09-17 18:31:11 +00:00
vmd test: use single quotes in trap instruction 2019-08-14 02:20:45 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00