From 96dba61f0ebb707b1ba52f9cd24644f193ccc5b3 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 19 May 2024 21:12:17 +0200 Subject: [PATCH] feat: Display KVM warning on x64 CPU's --- src/proc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/proc.sh b/src/proc.sh index c73760a..d56b7b5 100644 --- a/src/proc.sh +++ b/src/proc.sh @@ -8,7 +8,10 @@ set -Eeuo pipefail : "${CPU_MODEL:=""}" : "${DEF_MODEL:="neoverse-n1"}" -[[ "${ARCH,,}" != "arm"* ]] && KVM="N" + if [[ "${ARCH,,}" != "arm64" ]]; then + KVM="N" + warn "your CPU architecture is ${ARCH} and cannot provide KVM acceleration for ARM64 instructions, this will cause a major loss of performance." +fi if [[ "$KVM" != [Nn]* ]]; then