Skip to content

Commit

Permalink
feat: Display KVM warning on ARM64 (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed May 19, 2024
1 parent 1f1007a commit b588f8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b588f8c

Please sign in to comment.