Skip to content

Commit 606e941

Browse files
authored
Merge pull request #3351 from mery-top/macos-hvf-support
Add hvf acceleration support for macOS
2 parents 8a095cf + 35a23b9 commit 606e941

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build_library/qemu_template.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ else
247247
;;
248248
amd64-usr+*)
249249
set -- -machine q35 -cpu kvm64 -smp 1 -nographic "$@" ;;
250-
arm64-usr+aarch64)
251-
set -- -machine virt,accel=kvm,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;;
250+
arm64-usr+aarch64|arm64-usr+arm64)
251+
set -- -machine virt,accel=kvm:hvf:tcg,gic-version=3 -cpu host -smp "${VM_NCPUS}" -nographic "$@" ;;
252252
arm64-usr+*)
253253
if test "${VM_NCPUS}" -gt 4 ; then
254254
VM_NCPUS=4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fixed the QEMU launcher script to include HVF acceleration on arm64-based Macs for faster performance ([Flatcar#1901](https://github.com/flatcar/Flatcar/issues/1901))

0 commit comments

Comments
 (0)