From 1d2ec87e935fbff3766d6062c33dbdfa7f3db902 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 9 Jan 2024 16:59:27 +0100 Subject: 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 --- bin/debvm-run | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3