mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 22:31:15 +00:00

'dummy' helpers are specific to accelerator implementations, no need to expose them via "system/cpus.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Message-Id: <20250703173248.44995-27-philmd@linaro.org>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
#ifndef QEMU_CPUS_H
|
|
#define QEMU_CPUS_H
|
|
|
|
/* register accel-specific operations */
|
|
void cpus_register_accel(const AccelOpsClass *i);
|
|
|
|
/* return registers ops */
|
|
const AccelOpsClass *cpus_get_accel(void);
|
|
|
|
/* interface available for cpus accelerator threads */
|
|
|
|
/* For temporary buffers for forming a name */
|
|
#define VCPU_THREAD_NAME_SIZE 16
|
|
|
|
void cpus_kick_thread(CPUState *cpu);
|
|
bool cpu_work_list_empty(CPUState *cpu);
|
|
bool cpu_thread_is_idle(CPUState *cpu);
|
|
bool all_cpu_threads_idle(void);
|
|
bool cpu_can_run(CPUState *cpu);
|
|
void qemu_wait_io_event_common(CPUState *cpu);
|
|
void qemu_wait_io_event(CPUState *cpu);
|
|
void cpu_thread_signal_created(CPUState *cpu);
|
|
void cpu_thread_signal_destroyed(CPUState *cpu);
|
|
void cpu_handle_guest_debug(CPUState *cpu);
|
|
|
|
/* end interface for cpus accelerator threads */
|
|
|
|
bool qemu_in_vcpu_thread(void);
|
|
void qemu_init_cpu_loop(void);
|
|
void resume_all_vcpus(void);
|
|
void pause_all_vcpus(void);
|
|
void cpu_stop_current(void);
|
|
|
|
/* Unblock cpu */
|
|
void qemu_cpu_kick_self(void);
|
|
|
|
bool cpus_are_resettable(void);
|
|
|
|
void cpu_synchronize_all_states(void);
|
|
void cpu_synchronize_all_post_reset(void);
|
|
void cpu_synchronize_all_post_init(void);
|
|
void cpu_synchronize_all_pre_loadvm(void);
|
|
|
|
#endif
|