From: Philippe Mathieu-Daudé Date: Tue, 28 Oct 2025 05:41:43 +0000 (+0100) Subject: target/arm/hvf: Mention flush_cpu_state() must run on vCPU thread X-Git-Tag: v10.2.0-rc1~28^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1a0caa0826a377fba11e79bf9920f8c301d2fca;p=thirdparty%2Fqemu.git target/arm/hvf: Mention flush_cpu_state() must run on vCPU thread Since flush_cpu_state() calls hvf_arch_put_registers(), which must run on a vCPU, it also must. Mention it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Mads Ynddal Signed-off-by: Peter Maydell --- diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index f0a0e5d1a7..fdf8df09d4 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -689,6 +689,7 @@ int hvf_arch_put_registers(CPUState *cpu) return 0; } +/* Must be called by the owning thread */ static void flush_cpu_state(CPUState *cpu) { if (cpu->vcpu_dirty) {