summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-22 10:43:24 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-22 10:43:24 +0100
commit526ead3ce6a035c99076d9dc91785c799415e2ac (patch)
tree8abb4a6222cd2541ad97a95887e589b0c44b4a70 /bin
parent9d08c02ae2549472b5f05b17988b36b9aff64a3c (diff)
downloaddebvm-526ead3ce6a035c99076d9dc91785c799415e2ac.tar.gz
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run13
1 files changed, 7 insertions, 6 deletions
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