test/vfio-user: increase socket message timeout value to 5 secs
It's observed that `spdk_mem_register` may take some time to register VM's memory regions, and QEMU will wait the socket message within 1 second, so here, we increase the value to 5 seconds which could cover all test cases in CI. Fix issue #2392, #2600. Change-Id: Ia95cc9c94d27076a25dc107cff32fae9a3608b1e Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14121 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4300c62167
commit
39f5b26bc4
@ -751,7 +751,7 @@ function vm_setup() {
|
|||||||
;;
|
;;
|
||||||
vfio_user)
|
vfio_user)
|
||||||
notice "using socket $VM_DIR/$vm_num/domain/muser$disk/$disk/cntrl"
|
notice "using socket $VM_DIR/$vm_num/domain/muser$disk/$disk/cntrl"
|
||||||
cmd+=(-device "vfio-user-pci,socket=$VM_DIR/$vm_num/muser/domain/muser$disk/$disk/cntrl")
|
cmd+=(-device "vfio-user-pci,x-msg-timeout=5000,socket=$VM_DIR/$vm_num/muser/domain/muser$disk/$disk/cntrl")
|
||||||
if [[ "$disk" == "$boot_from" ]]; then
|
if [[ "$disk" == "$boot_from" ]]; then
|
||||||
cmd[-1]+=",bootindex=0"
|
cmd[-1]+=",bootindex=0"
|
||||||
boot_disk_present=true
|
boot_disk_present=true
|
||||||
|
Loading…
Reference in New Issue
Block a user