hvf: arm: fix Windows boot with kernel-irqchip=on
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.
Signed-off-by Mohamed Mediouni <[email protected]>
--- target/arm/hvf/hvf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
target/arm/hvf/hvf.c +5 -1
@@ -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)