summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-21 07:48:30 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-21 07:48:30 +0100
commit0ccdbb096703c4194790662b9e9526d3bf955816 (patch)
tree10d24daaa7811b386c329a5f01f1625837cd5d06 /bin
parent8934535d26c1386b5179f221d05d033c83c8611e (diff)
downloaddebvm-0ccdbb096703c4194790662b9e9526d3bf955816.tar.gz
debvm-run: pass -M accel=kvm:tcg rather than -enable-kvm
-enable-kvm is equivalent to -M accel=kvm, but we allow a fallback to tcg in case kvm is not available thus shifting this test into qemu. Reported-by: Bastian Blank <waldi@debian.org> Reported-by: Johannes Schauer Marin Rodrigues <josch@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index 6269ba6..6984528 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -231,10 +231,11 @@ esac
if test "$ARCHITECTURE" = "$VMARCH"; then
QEMU=kvm
+ MACHINE="${MACHINE:+$MACHINE,}accel=kvm:tcg"
# While kvm will fall back gracefully, the following options can only
# be passed when kvm really is available.
if test -w /dev/kvm; then
- set -- -enable-kvm -cpu host "$@"
+ set -- -cpu host "$@"
if test "$VMARCH" = arm64; then
MACHINE="$MACHINE,gic-version=host"
fi