diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-21 07:48:30 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-21 07:48:30 +0100 |
commit | 0ccdbb096703c4194790662b9e9526d3bf955816 (patch) | |
tree | 10d24daaa7811b386c329a5f01f1625837cd5d06 /bin/debvm-run | |
parent | 8934535d26c1386b5179f221d05d033c83c8611e (diff) | |
download | debvm-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/debvm-run')
-rwxr-xr-x | bin/debvm-run | 3 |
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 |