Unverified Commit 18c8a04e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Display KVM warning on ARM64 (#510)

parent e5c67b4d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -9,9 +9,13 @@ set -Eeuo pipefail
: "${CPU_MODEL:=""}"
: "${DEF_MODEL:="qemu64"}"

[[ "${ARCH,,}" != "amd64" ]] && KVM="N"
[[ "${MACHINE,,}" == "pc-q35-2"* ]] && HV="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

  KVM_ERR=""