aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-02-03 01:58:55 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-03-06 13:15:42 +0100
commitad7d684dfde391de6fe5c0680f73097072fbf03a (patch)
tree4438c3a4296761b37187a6eff152f9a10441e916 /include/sysemu
parent5f74af8bab3978b766bdf78255079da3b8a1a888 (diff)
downloadqemu-ad7d684dfde391de6fe5c0680f73097072fbf03a.zip
qemu-ad7d684dfde391de6fe5c0680f73097072fbf03a.tar.gz
qemu-ad7d684dfde391de6fe5c0680f73097072fbf03a.tar.bz2
accel: Introduce AccelOpsClass::cpu_thread_is_idle()
Add cpu_thread_is_idle() to AccelOps, and implement it for the KVM / WHPX accelerators. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220207075426.81934-11-f4bug@amsat.org>
Diffstat (limited to 'include/sysemu')
-rw-r--r--include/sysemu/accel-ops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/accel-ops.h b/include/sysemu/accel-ops.h
index 032f697..50c7254 100644
--- a/include/sysemu/accel-ops.h
+++ b/include/sysemu/accel-ops.h
@@ -30,6 +30,7 @@ struct AccelOpsClass {
void (*create_vcpu_thread)(CPUState *cpu); /* MANDATORY NON-NULL */
void (*kick_vcpu_thread)(CPUState *cpu);
+ bool (*cpu_thread_is_idle)(CPUState *cpu);
void (*synchronize_post_reset)(CPUState *cpu);
void (*synchronize_post_init)(CPUState *cpu);