summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-01-09 16:59:27 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-01-09 16:59:27 +0100
commit1d2ec87e935fbff3766d6062c33dbdfa7f3db902 (patch)
tree9ab927c52cca6f1d22554896278a8ac6cde2e95b /bin
parentc0877507e1585fc7329e1ecec9d6ca34a6f16f14 (diff)
downloaddebvm-1d2ec87e935fbff3766d6062c33dbdfa7f3db902.tar.gz
debvm-run: use -cpu max for kvm
When kvm works, passing "max" will get us "host" as before. When it does not, "host" doesn't work at all, but "max" will somewhat. Suggested-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-run8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index a9d34cd..aaf870a 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -433,10 +433,12 @@ if test "$ENABLE_KVM" = yes; then
QEMU=kvm
fi
MACHINE="${MACHINE:+$MACHINE,}accel=kvm:tcg"
- # While kvm will fall back gracefully, the following options can only
- # be passed when kvm really is available.
+ # While kvm will fall back gracefully, only override CPU when we expect
+ # kvm to work.
if test -w /dev/kvm; then
- CPU=host
+ CPU=max
+ # kvm: "max" will become "host", intended.
+ # tcg: "max" will actually work, "host" would not.
fi
fi