accel: Introduce AccelOpsClass::cpu_thread_is_idle()
commitad7d684dfde391de6fe5c0680f73097072fbf03a
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 3 Feb 2022 00:58:55 +0000 (3 01:58 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 6 Mar 2022 12:15:42 +0000 (6 13:15 +0100)
tree4438c3a4296761b37187a6eff152f9a10441e916
parent5f74af8bab3978b766bdf78255079da3b8a1a888
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>
accel/kvm/kvm-accel-ops.c
include/sysemu/accel-ops.h
softmmu/cpus.c
target/i386/whpx/whpx-accel-ops.c