aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2023-12-29 00:57:15 -0600
committerTheodore Ts'o <tytso@mit.edu>2023-12-29 00:59:25 -0600
commita3956e01e71abb062e691c6ef634abfcce4616e7 (patch)
treea85087d265a076825a9fe396fd2a8ea147e92817
parent25cda23aab211cac31d089133015c2fe1d95e877 (diff)
downloadxfstests-bld-a3956e01e71abb062e691c6ef634abfcce4616e7.tar.gz
kvm-xfstests: when running on Mac OS, use the hvf accelerator
Add support for using Mac OS's Hypervisor Virtualization Framework (hvf), which is analogous to Linux/x86's kvm. Also use a more efficient way of esting whether or not ionice is present on the system. (It's not available on Mac OS). Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rwxr-xr-xrun-fstests/kvm-xfstests9
1 files changed, 7 insertions, 2 deletions
diff --git a/run-fstests/kvm-xfstests b/run-fstests/kvm-xfstests
index 548e430a..d51b6cfc 100755
--- a/run-fstests/kvm-xfstests
+++ b/run-fstests/kvm-xfstests
@@ -124,7 +124,7 @@ do
fi
done
-if ionice -h > /dev/null ; then
+if type ionice >& /dev/null ; then
IONICE="ionice -n 5"
fi
@@ -201,7 +201,12 @@ case "$ARCH" in
;;
arm64)
QEMU_ARCH=aarch64
- ACCEL=tcg
+ if test "$(uname -o)" = "Darwin" ; then
+ ACCEL=hvf
+ GDB=
+ else
+ ACCEL=tcg
+ fi
CONSOLE_DEV=ttyAMA0
MACHINE_TYPE=virt
CPU_TYPE=max