From 526ead3ce6a035c99076d9dc91785c799415e2ac Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 22 Jan 2023 10:43:24 +0100 Subject: debv-run: apply smp limits for the native case This was never tried, but autopkgtests indicate that smp limits also apply to the native case. --- bin/debvm-run | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bin/debvm-run') diff --git a/bin/debvm-run b/bin/debvm-run index 6a22a49..29e986e 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -244,14 +244,20 @@ case "$VMARCH" in ;; m68k) MACHINE="type=virt" + MAX_SMP=1 NIC_DEV=virtio-net-device,netdev=net0 RNG_DEV=virtio-rng-device,rng=rng0 ;; mips64el) CPU=5KEc + MAX_SMP=1 + ;; + mipsel) + MAX_SMP=1 ;; powerpc) QEMU=qemu-system-ppc + MAX_SMP=1 ;; ppc64el) QEMU=qemu-system-ppc64 @@ -260,6 +266,7 @@ case "$VMARCH" in MACHINE="type=virt" ;; sparc64) + MAX_SMP=1 RNG_DEV= ;; esac @@ -278,12 +285,6 @@ if test "$ARCHITECTURE" = "$VMARCH"; then if test "$VMARCH" = arm64; then MACHINE="$MACHINE,gic-version=max" fi -else - case "$VMARCH" in - m68k|mips64el|mipsel|powerpc|sparc64) - MAX_SMP=1 - ;; - esac fi if test -n "$MACHINE"; then -- cgit v1.2.3