On 3/23/22 10:17, Philippe Mathieu-Daudé wrote:
From: Philippe Mathieu-Daudé <f4...@amsat.org>
Introduce an empty common_vcpu_thread_destroy() function, and
provide a AccelOpsClass::destroy_vcpu_thread_precheck() callback
so accelerators can choose whether to call common_vcpu_thread_destroy.
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
include/sysemu/accel-ops.h | 2 ++
softmmu/cpus.c | 9 +++++++++
2 files changed, 11 insertions(+)
My comments here are similar to the create precheck hook.
Do not add a "precheck" hook, but simply a hook to perform the whole job.
r~