aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-06-16 16:09:23 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-07-04 14:43:46 +0200
commit04bd6c3631e0184dcafb0403e0248a2052585914 (patch)
treea5da74d79db08613d324a3200085a74b6949c8a8
parent8e825755c5ddcdfd91e585d850aecee434d2ff63 (diff)
downloadqemu-04bd6c3631e0184dcafb0403e0248a2052585914.zip
qemu-04bd6c3631e0184dcafb0403e0248a2052585914.tar.gz
qemu-04bd6c3631e0184dcafb0403e0248a2052585914.tar.bz2
accel/system: Document cpu_synchronize_state_post_init/reset()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-24-philmd@linaro.org>
-rw-r--r--include/system/accel-ops.h8
-rw-r--r--include/system/hw_accel.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/include/system/accel-ops.h b/include/system/accel-ops.h
index 55f91ce..a4e706b 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 574c973..fa9228d 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);