From: Philippe Mathieu-Daudé Date: Mon, 16 Jun 2025 14:09:23 +0000 (+0200) Subject: accel/system: Document cpu_synchronize_state_post_init/reset() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60c9cec12c99e47fb2c82ad5dca36c9441b623dc;p=thirdparty%2Fqemu.git accel/system: Document cpu_synchronize_state_post_init/reset() Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20250703173248.44995-24-philmd@linaro.org> --- diff --git a/include/system/accel-ops.h b/include/system/accel-ops.h index 55f91cea25..a4e706b49c 100644 --- a/include/system/accel-ops.h +++ b/include/system/accel-ops.h @@ -40,6 +40,14 @@ struct AccelOpsClass { void (*kick_vcpu_thread)(CPUState *cpu); bool (*cpu_thread_is_idle)(CPUState *cpu); + /** + * synchronize_post_reset: + * synchronize_post_init: + * @cpu: The vCPU to synchronize. + * + * Request to synchronize QEMU vCPU registers to the hardware accelerator + * (QEMU is the reference). + */ void (*synchronize_post_reset)(CPUState *cpu); void (*synchronize_post_init)(CPUState *cpu); /** diff --git a/include/system/hw_accel.h b/include/system/hw_accel.h index 574c973840..fa9228d5d2 100644 --- a/include/system/hw_accel.h +++ b/include/system/hw_accel.h @@ -28,6 +28,14 @@ void cpu_synchronize_state(CPUState *cpu); void cpu_synchronize_pre_loadvm(CPUState *cpu); +/** + * cpu_synchronize_post_reset: + * cpu_synchronize_post_init: + * @cpu: The vCPU to synchronize. + * + * Request to synchronize QEMU vCPU registers to the hardware accelerator + * (QEMU is the reference). + */ void cpu_synchronize_post_reset(CPUState *cpu); void cpu_synchronize_post_init(CPUState *cpu);