Add hvf acceleration support for macOS

Signed-off-by: Meerthika <meerthikasrrajendrans@gmail.com>
This commit is contained in:
Meerthika 2025-10-08 21:25:08 +05:30
parent 119ae89545
commit 8a1fbf2ef4

View File

@ -247,8 +247,8 @@ else
;; ;;
amd64-usr+*) amd64-usr+*)
set -- -machine q35 -cpu kvm64 -smp 1 -nographic "$@" ;; set -- -machine q35 -cpu kvm64 -smp 1 -nographic "$@" ;;
arm64-usr+aarch64) arm64-usr+aarch64|arm64-usr+arm64)
set -- -machine virt,accel=kvm,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;; set -- -machine virt,accel=kvm:hvf:tcg,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;;
arm64-usr+*) arm64-usr+*)
if test "${VM_NCPUS}" -gt 4 ; then if test "${VM_NCPUS}" -gt 4 ; then
VM_NCPUS=4 VM_NCPUS=4