From b588f8c90d94f987620c854c18be13e1db2a36b8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 19 May 2024 21:19:58 +0200 Subject: [PATCH] feat: Display KVM warning on ARM64 (#739) --- src/proc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/proc.sh b/src/proc.sh index fca56139..37e3d6e9 100644 --- a/src/proc.sh +++ b/src/proc.sh @@ -9,7 +9,10 @@ set -Eeuo pipefail : "${CPU_MODEL:=""}" : "${DEF_MODEL:="qemu64"}" -[[ "${ARCH,,}" != "amd64" ]] && KVM="N" +if [[ "${ARCH,,}" != "amd64" ]]; then + KVM="N" + warn "your CPU architecture is ${ARCH^^} and cannot provide KVM acceleration for x64 instructions, this will cause a major loss of performance." +fi if [[ "$KVM" != [Nn]* ]]; then