feat: Display KVM warning on x64 CPU's
This commit is contained in:
parent
997bb53ab4
commit
96dba61f0e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue