Skip to contentSkip to conversation

hvf: arm: fix Windows boot with kernel-irqchip=on

PATCH Superseded Mohamed Mediouni 1 participant 1 message Mar 8

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hvf: arm: fix Windows boot with kernel-irqchip=on

Windows really wants at least a single counter PMU so give it even when using the kernel-irqchip with nested virt off.

---
 target/arm/hvf/hvf.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
target/arm/hvf/hvf.c +5 -1
index 8aa59a1f77..883a341064 100644
@@ -1187,8 +1187,12 @@ static bool hvf_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
 
     clamp_id_aa64mmfr0_parange_to_ipa_size(&host_isar);
 
-    if (hvf_nested_virt_enabled()) {
+    /* Windows really wants at least a single counter PMU... */
+    if (hvf_irqchip_in_kernel()) {
         FIELD_DP64_IDREG(&host_isar, ID_AA64DFR0, PMUVER, 0x1);
+    }
+
+    if (hvf_nested_virt_enabled()) {
         /* SME is not implemented with nested virt on the Apple side */
         FIELD_DP64_IDREG(&host_isar, ID_AA64PFR1, SME, 0);
     }
Signature · 1 line
2.50.1 (Apple Git-155)