From: Philippe Mathieu-Daudé Date: Tue, 28 Oct 2025 05:41:45 +0000 (+0100) Subject: target/arm/hvf: Mention hvf_sync_vtimer() must run on vCPU thread X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30d277f2cdd85ca3a519d6c03b126d37bef29a60;p=thirdparty%2Fqemu.git target/arm/hvf: Mention hvf_sync_vtimer() must run on vCPU thread Since hvf_sync_vtimer() calls hv_vcpu_get_sys_reg(), which must run on a vCPU, it also must. Mention it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Mads Ynddal Signed-off-by: Peter Maydell --- diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index 8095cb0805..bfccf5e9a2 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -1764,6 +1764,7 @@ static void hvf_wfi(CPUState *cpu) hvf_wait_for_ipi(cpu, &ts); } +/* Must be called by the owning thread */ static void hvf_sync_vtimer(CPUState *cpu) { ARMCPU *arm_cpu = ARM_CPU(cpu);