test/vfio-user: skip NVMeoF target coremask for VMs
For vfio-user tests, SPDK NVMeoF target uses "0xF" as the core mask, so we should avoid to use these cores when starting VMs. Fix issue #2600. Change-Id: I1927cd70670b30d59944d5571bcfc37c9e7e35d6 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14485 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
35a71c7748
commit
f167986b6c
11
test/vfio_user/autotest.config
Normal file
11
test/vfio_user/autotest.config
Normal file
@ -0,0 +1,11 @@
|
||||
vhost_0_reactor_mask="[0-3]"
|
||||
vhost_0_main_core=0
|
||||
|
||||
VM_0_qemu_mask=4-5
|
||||
VM_0_qemu_numa_node=0
|
||||
|
||||
VM_1_qemu_mask=6-7
|
||||
VM_1_qemu_numa_node=0
|
||||
|
||||
VM_2_qemu_mask=8-9
|
||||
VM_2_qemu_numa_node=0
|
@ -4,6 +4,7 @@ testdir=$(readlink -f $(dirname $0))
|
||||
rootdir=$(readlink -f $testdir/../../..)
|
||||
source $rootdir/test/common/autotest_common.sh
|
||||
source $rootdir/test/vfio_user/common.sh
|
||||
source $rootdir/test/vfio_user/autotest.config
|
||||
|
||||
rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
|
||||
|
||||
@ -52,6 +53,7 @@ timing_exit launch_vms
|
||||
timing_enter run_vm_cmd
|
||||
|
||||
fio_disks=""
|
||||
|
||||
for vm_num in $used_vms; do
|
||||
qemu_mask_param="VM_${vm_num}_qemu_mask"
|
||||
|
||||
|
@ -3,6 +3,7 @@ testdir=$(readlink -f $(dirname $0))
|
||||
rootdir=$(readlink -f $testdir/../../..)
|
||||
source $rootdir/test/common/autotest_common.sh
|
||||
source $rootdir/test/vfio_user/common.sh
|
||||
source $rootdir/test/vfio_user/autotest.config
|
||||
|
||||
bdfs=($(get_nvme_bdfs))
|
||||
rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
|
||||
|
Loading…
Reference in New Issue
Block a user