xref: /spdk/test/vfio_user/common.sh (revision 247e9eb28e8805d909e2fa7692605282d3272c19)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (C) 2021 Intel Corporation
3#  All rights reserved.
4#
5
6: ${MALLOC_BDEV_SIZE=128}
7: ${MALLOC_BLOCK_SIZE=512}
8
9source "$rootdir/test/vhost/common.sh"
10
11VFIO_QEMU_BIN=${VFIO_QEMU_BIN:-/usr/local/qemu/vfio-user-latest/bin/qemu-system-x86_64}
12
13# Verify vfio-user support of qemu.
14if [[ ! -e $VFIO_QEMU_BIN ]]; then
15	error "$VFIO_QEMU_BIN QEMU not found, cannot run the vfio-user tests"
16	return 1
17fi
18
19QEMU_BIN=$VFIO_QEMU_BIN
20