test/vhost: Replace ini config with json in shared test

Change-Id: Iad98a16f3a01c68c34e23bcd880035c8c6550da4
Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/765
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Pawel Kaminski 2020-01-27 11:36:50 -05:00 committed by Tomasz Zawadzki
parent 64a55791cc
commit 33981a6d30
3 changed files with 21 additions and 6 deletions

View File

@ -1,5 +0,0 @@
[VirtioUser0]
Path Malloc.0
Queues 2
Type Blk
Name VirtioBlk0

View File

@ -0,0 +1,20 @@
{
"subsystems": [
{
"subsystem": "bdev",
"config": [
{
"method": "bdev_virtio_attach_controller",
"params": {
"vq_count": 2,
"traddr": "Malloc.0",
"dev_type": "blk",
"vq_size": 512,
"name": "VirtioBlk0",
"trtype": "user"
}
}
]
}
]
}

View File

@ -10,7 +10,7 @@ rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
function run_spdk_fio() {
fio_bdev --ioengine=spdk_bdev \
"$rootdir/test/vhost/common/fio_jobs/default_initiator.job" --runtime=10 --rw=randrw \
--spdk_mem=1024 --spdk_single_seg=1 --spdk_conf=$testdir/bdev.conf "$@"
--spdk_mem=1024 --spdk_single_seg=1 --spdk_json_conf=$testdir/bdev.json "$@"
}
vhosttestinit