Spdk/test/vfio_user/common.sh
Karol Latecki c33f4c90ea test/vfio-user: reduce spdk_tgt memory allocation
Limit spdk_tgt app to 512MB of memory. This should
be sufficient for tests in this suite provided we
also reduce the size of created malloc bdevs.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: Iaaba1e13899d37232f7acf842b7deed05935f78f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17365
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jaroslaw Chachulski <jaroslawx.chachulski@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-05-09 17:58:11 +08:00

18 lines
382 B
Bash

# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2021 Intel Corporation
# All rights reserved.
#
: ${MALLOC_BDEV_SIZE=128}
: ${MALLOC_BLOCK_SIZE=512}
source "$rootdir/test/vhost/common.sh"
# Verify vfio-user support of qemu.
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