feat: Display KVM warning on x64 CPU's

This commit is contained in:
Kroese 2024-05-19 21:12:17 +02:00 committed by GitHub
parent 997bb53ab4
commit 96dba61f0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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