[kvm-unit-tests PATCH 19/32] powerpc: Permit ACCEL=tcg,thread=single
Nicholas Piggin
npiggin at gmail.com
Mon Feb 26 21:12:05 AEDT 2024
Modify run script to permit single vs mttcg threading, add a
thread=single smp case to unittests.cfg.
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
powerpc/run | 4 ++--
powerpc/unittests.cfg | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/powerpc/run b/powerpc/run
index 172f32a46..27abf1ef6 100755
--- a/powerpc/run
+++ b/powerpc/run
@@ -36,8 +36,8 @@ if ! $qemu -machine '?' 2>&1 | grep $MACHINE > /dev/null; then
exit 2
fi
+A="-accel $ACCEL$ACCEL_PROPS"
M="-machine $MACHINE"
-M+=",accel=$ACCEL$ACCEL_PROPS"
B=""
D=""
@@ -54,7 +54,7 @@ if [[ "$MACHINE" == "powernv"* ]] ; then
D+="-device ipmi-bmc-sim,id=bmc0 -device isa-ipmi-bt,bmc=bmc0,irq=10"
fi
-command="$qemu -nodefaults $M $B $D"
+command="$qemu -nodefaults $A $M $B $D"
command+=" -display none -serial stdio -kernel"
command="$(migration_cmd) $(timeout_cmd) $command"
diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
index 97a549c0d..915b6a482 100644
--- a/powerpc/unittests.cfg
+++ b/powerpc/unittests.cfg
@@ -97,6 +97,12 @@ smp = 2
file = smp.elf
smp = 8,threads=4
+# mttcg is the default most places, so add a thread=single test
+[smp-thread-single]
+file = smp.elf
+smp = 8,threads=4
+accel = tcg,thread=single
+
[h_cede_tm]
file = tm.elf
machine = pseries
--
2.42.0
More information about the Linuxppc-dev
mailing list