diff mbox series

hvf: arm: disable SME feature

Message ID 20250224165735.36792-1-j@getutm.app (mailing list archive)
State New
Headers show
Series hvf: arm: disable SME feature | expand

Commit Message

Joelle van Dyne Feb. 24, 2025, 4:57 p.m. UTC
macOS 15.2's Hypervisor.framework exposes SME feature on M4 Macs.
However, HVF does not properly support it yet causing QEMU to
fail to start when HVF accelerator is used on these systems.

Signed-off-by: Joelle van Dyne <j@getutm.app>
---
 target/arm/hvf/hvf.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 0afd96018e..261db2d227 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -899,6 +899,11 @@  static bool hvf_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
 
     clamp_id_aa64mmfr0_parange_to_ipa_size(&host_isar.id_aa64mmfr0);
 
+    /*
+     * Disable SME which is not properly handled by QEMU yet
+     */
+    host_isar.id_aa64pfr1 &= ~R_ID_AA64PFR1_SME_MASK;
+
     ahcf->isar = host_isar;
 
     /*