@samitouri / QOSamiQemu / commits / 577aadd963

hvf: only call hvf_sync_vtimer() when running without the platform vGIC

When running with the Apple vGIC, the EL1 vtimer is handled by the platform. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Reviewed-by: Mads Ynddal <mads@ynddal.dk> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260429190532.26538-7-mohamed@unpredictable.fr Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Mohamed Mediouni committed May 5, 2026 at 09:25 UTC 577aadd963ec264a051b32a6340292749b385c05
1 file changed +3 -1
target/arm/hvf/hvf.c
+3 -1
@@ -2368,7 +2368,9 @@ static int hvf_handle_vmexit(CPUState *cpu, hv_vcpu_exit_t *exit)
2368
2369 switch (exit->reason) {
2370 case HV_EXIT_REASON_EXCEPTION:
2371 - hvf_sync_vtimer(cpu);
2371 + if (!hvf_irqchip_in_kernel()) {
2372 + hvf_sync_vtimer(cpu);
2373 + }
2374 ret = hvf_handle_exception(cpu, &exit->exception);
2375 break;
2376 case HV_EXIT_REASON_VTIMER_ACTIVATED: