diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-01-09 16:59:27 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-01-09 16:59:27 +0100 |
commit | 1d2ec87e935fbff3766d6062c33dbdfa7f3db902 (patch) | |
tree | 9ab927c52cca6f1d22554896278a8ac6cde2e95b /bin | |
parent | c0877507e1585fc7329e1ecec9d6ca34a6f16f14 (diff) | |
download | debvm-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-x | bin/debvm-run | 8 |
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 |