[kvm-unit-tests PATCH v7 23/35] powerpc: Permit ACCEL=tcg,thread=single
Nicholas Piggin
npiggin at gmail.com
Tue Mar 19 18:59:14 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 ddce409a8..71bfc935d 100644
--- a/powerpc/unittests.cfg
+++ b/powerpc/unittests.cfg
@@ -82,6 +82,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