From 35c6d02b46a7ddb81b3b910cb728978032b84cf3 Mon Sep 17 00:00:00 2001 From: Meerthika Date: Wed, 8 Oct 2025 21:25:08 +0530 Subject: [PATCH] Add hvf acceleration support for macOS Signed-off-by: Meerthika --- build_library/qemu_template.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_library/qemu_template.sh b/build_library/qemu_template.sh index 4e2d5266f3..c4926a1e1e 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -232,8 +232,8 @@ else ;; amd64-usr+*) set -- -machine q35 -cpu kvm64 -smp 1 -nographic "$@" ;; - arm64-usr+aarch64) - set -- -machine virt,accel=kvm,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;; + arm64-usr+aarch64|arm64-usr+arm64) + set -- -machine virt,accel=kvm:hvf:tcg,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;; arm64-usr+*) if test "${VM_NCPUS}" -gt 4 ; then VM_NCPUS=4