From 8a1fbf2ef4c4c4d5be2e6bc9fa28955fc13e20c2 Mon Sep 17 00:00:00 2001 From: Meerthika Date: Wed, 8 Oct 2025 21:25:08 +0530 Subject: [PATCH 1/2] 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 e4c0efc5ada..32445e85274 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -247,8 +247,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 From 35a23b9c8a683ba145d4977bb6726f998cd8838f Mon Sep 17 00:00:00 2001 From: Meerthika Date: Wed, 8 Oct 2025 21:46:44 +0530 Subject: [PATCH 2/2] Add changelog for macOS acceleration Signed-off-by: Meerthika Signed-off-by: James Le Cuirot --- changelog/bugfixes/2025-10-08-macos-hvf-accel.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/bugfixes/2025-10-08-macos-hvf-accel.md diff --git a/changelog/bugfixes/2025-10-08-macos-hvf-accel.md b/changelog/bugfixes/2025-10-08-macos-hvf-accel.md new file mode 100644 index 00000000000..802a8f4ee99 --- /dev/null +++ b/changelog/bugfixes/2025-10-08-macos-hvf-accel.md @@ -0,0 +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))