From 2da7f4907fc64901c41b90ed43406fd8c73dbbdb 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 45235b68a0..73c30a086a 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -218,8 +218,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 491e52600e5af1d4aac66e22fab1194b91ffdf21 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 0000000000..802a8f4ee9 --- /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))