4 #include "qemu/timer.h"
5 #include "sysemu/accel-ops.h"
7 /* register accel-specific operations */
8 void cpus_register_accel(const AccelOpsClass
*i
);
10 /* accel/dummy-cpus.c */
12 /* Create a dummy vcpu for AccelOpsClass->create_vcpu_thread */
13 void dummy_start_vcpu_thread(CPUState
*);
15 /* interface available for cpus accelerator threads */
17 /* For temporary buffers for forming a name */
18 #define VCPU_THREAD_NAME_SIZE 16
20 void cpus_kick_thread(CPUState
*cpu
);
21 bool cpu_work_list_empty(CPUState
*cpu
);
22 bool cpu_thread_is_idle(CPUState
*cpu
);
23 bool all_cpu_threads_idle(void);
24 bool cpu_can_run(CPUState
*cpu
);
25 void qemu_wait_io_event_common(CPUState
*cpu
);
26 void qemu_wait_io_event(CPUState
*cpu
);
27 void cpu_thread_signal_created(CPUState
*cpu
);
28 void cpu_thread_signal_destroyed(CPUState
*cpu
);
29 void cpu_handle_guest_debug(CPUState
*cpu
);
31 /* end interface for cpus accelerator threads */
33 bool qemu_in_vcpu_thread(void);
34 void qemu_init_cpu_loop(void);
35 void resume_all_vcpus(void);
36 void pause_all_vcpus(void);
37 void cpu_stop_current(void);
39 extern int icount_align_option
;
42 void qemu_cpu_kick_self(void);
44 bool cpus_are_resettable(void);
46 void cpu_synchronize_all_states(void);
47 void cpu_synchronize_all_post_reset(void);
48 void cpu_synchronize_all_post_init(void);
49 void cpu_synchronize_all_pre_loadvm(void);
51 #ifndef CONFIG_USER_ONLY
53 /* *-user doesn't have configurable SMP topology */
55 extern int smp_threads
;
58 void list_cpus(const char *optarg
);