summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-03-29 12:48:17 +0100
committerHelmut Grohne <helmut@subdivi.de>2025-03-29 12:48:17 +0100
commit1f768f1dae33667b5486678f6282a2fe3a530b66 (patch)
tree9788c9f79cdd645f3d099fc96325db5c5b73bfd6
parent4c6ca3d4eb032b071d5599402858a6eb787bf78b (diff)
downloaddebvm-1f768f1dae33667b5486678f6282a2fe3a530b66.tar.gz
debvm-run: re-enable qemu detection for pre-trixie
Fixes: 1c98a5b3b36f ("qemu-system-${debarch} as well as qemu-system-any")
-rwxr-xr-xbin/debvm-run11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index 588a153..4e94b8f 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -366,7 +366,7 @@ set -- \
# Translate KERNELARCH (a Debian architecture) to a Debian CPU name.
# This utilizes the QEMU Debian package symlink mapping that ensures that
# calling qemu-system-${DEB_HOST_ARCH_CPU} will run the QEMU binary providing
-# the correct emulator for that CPU.
+# the correct emulator for that CPU in trixie and later.
KERNELARCHCPU="$(dpkg-architecture --force --host-arch "$KERNELARCH" --query DEB_HOST_ARCH_CPU)"
QEMU="qemu-system-$KERNELARCHCPU"
CPU=
@@ -375,6 +375,7 @@ MAX_SMP=
case "$KERNELARCHCPU" in
amd64)
+ QEMU=qemu-system-x86_64
MACHINE="type=q35"
;;
arm)
@@ -383,6 +384,7 @@ case "$KERNELARCHCPU" in
MAX_SMP=8
;;
arm64)
+ QEMU=qemu-system-aarch64
CPU=max,pauth-impdef=on
MACHINE="type=virt,gic-version=max"
;;
@@ -391,6 +393,9 @@ case "$KERNELARCHCPU" in
MAX_SMP=1
: "${TRANSPORT:=device}"
;;
+ loong64)
+ QEMU=qemu-system-loongarch64
+ ;;
mips64el)
CPU=5KEc
MAX_SMP=1
@@ -399,8 +404,12 @@ case "$KERNELARCHCPU" in
MAX_SMP=1
;;
powerpc)
+ QEMU=qemu-system-ppc
MAX_SMP=1
;;
+ ppc64el)
+ QEMU=qemu-system-ppc64
+ ;;
riscv64)
MACHINE="type=virt"
;;