[PATCH 09/24] target/arm/hvf: Mention hvf_sync_vtimer() must run on vCPU thread

Philippe Mathieu-Daudé posted 24 patches 5 months, 1 week ago
There is a newer version of this series
[PATCH 09/24] target/arm/hvf: Mention hvf_sync_vtimer() must run on vCPU thread
Posted by Philippe Mathieu-Daudé 5 months, 1 week ago
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é <philmd@linaro.org>
---
 target/arm/hvf/hvf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 05fc591b523..a7e4b869b04 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -1889,6 +1889,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);
-- 
2.51.0


Re: [PATCH 09/24] target/arm/hvf: Mention hvf_sync_vtimer() must run on vCPU thread
Posted by Mads Ynddal 5 months ago
> On 3 Sep 2025, at 12.06, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
> 
> 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é <philmd@linaro.org>
> ---
> target/arm/hvf/hvf.c | 1 +
> 1 file changed, 1 insertion(+)

Reviewed-by: Mads Ynddal <mads@ynddal.dk>