From 0ccdbb096703c4194790662b9e9526d3bf955816 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 21 Jan 2023 07:48:30 +0100 Subject: 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 Reported-by: Johannes Schauer Marin Rodrigues --- bin/debvm-run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3