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:
parent
64a55791cc
commit
33981a6d30
@ -1,5 +0,0 @@
|
||||
[VirtioUser0]
|
||||
Path Malloc.0
|
||||
Queues 2
|
||||
Type Blk
|
||||
Name VirtioBlk0
|
20
test/vhost/shared/bdev.json
Normal file
20
test/vhost/shared/bdev.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user