From 8e7572b1ff24a48e6b6160a305c6237c1eaa4260 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 23 Sep 2025 08:57:35 +0200 Subject: [PATCH] feat: Add additional KVM check (#311) --- src/boot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/boot.sh b/src/boot.sh index 5ae01ff..87673fd 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -154,6 +154,13 @@ BOOT_DRIVE_ID="OpenCore" DISK_OPTS+=" -device virtio-blk-pci,drive=${BOOT_DRIVE_ID},bus=pcie.0,addr=0x5,bootindex=$BOOT_INDEX" DISK_OPTS+=" -drive file=$IMG,id=$BOOT_DRIVE_ID,format=raw,cache=unsafe,readonly=on,if=none" +[[ "${ARCH,,}" != "amd64" ]] && KVM="N" + +if [[ "$OSTYPE" =~ ^darwin ]]; then + KVM="N" + warn "you are using macOS which has no KVM support, this will cause a major loss of performance." +fi + CPU_VENDOR=$(lscpu | awk '/Vendor ID/{print $3}') DEFAULT_FLAGS="vendor=GenuineIntel,vmware-cpuid-freq=on,-pdpe1gb"