This is the preparation to add virtio device test cases with vfio-user target. Change-Id: I08a33ac9cb6c1a6239841077facbf84927383814 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14647 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
15 lines
365 B
Bash
15 lines
365 B
Bash
: ${MALLOC_BDEV_SIZE=256}
|
|
: ${MALLOC_BLOCK_SIZE=512}
|
|
|
|
source "$rootdir/test/vhost/common.sh"
|
|
|
|
# Verify vfio-user support of qemu.
|
|
VFIO_QEMU_BIN=${VFIO_QEMU_BIN:-/usr/local/qemu/vfio-user-irqmask2/bin/qemu-system-x86_64}
|
|
|
|
if [[ ! -e $VFIO_QEMU_BIN ]]; then
|
|
error "$VFIO_QEMU_BIN QEMU not found, cannot run the vfio-user tests"
|
|
return 1
|
|
fi
|
|
|
|
QEMU_BIN=$VFIO_QEMU_BIN
|