From 592d7b41f658ab4eb32f8d57353f78c42f8c6d01 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 26 Sep 2026 20:25:02 -0700 Subject: [PATCH] fix(hack): don't override QEMU_ACCEL on macOS On macOS, common.sh always set QEMU_ACCEL to hvf when it was available, replacing any value the user set, like tcg. Only pick an accelerator when QEMU_ACCEL isn't set, as the KVM check already does. --- hack/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/common.sh b/hack/common.sh index c542452..6779eb2 100644 --- a/hack/common.sh +++ b/hack/common.sh @@ -40,7 +40,7 @@ if [ -z "${QEMU_ACCEL}" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] && [ -e "/dev QEMU_ACCEL="kvm" fi -if [ "$(uname)" = "Darwin" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] && +if [ -z "${QEMU_ACCEL}" ] && [ "$(uname)" = "Darwin" ] && [ "${TARGET_ARCH}" = "${HOST_ARCH}" ] && [ "$(sysctl -n kern.hv_support 2>&1 || true)" = "1" ]; then QEMU_ACCEL="hvf" fi