]>
Commit | Line | Data |
---|---|---|
296af7c9 BS |
1 | #ifndef QEMU_CPUS_H |
2 | #define QEMU_CPUS_H | |
3 | ||
d2528bdc PB |
4 | #include "qemu/timer.h" |
5 | ||
7277e027 | 6 | /* cpus.c */ |
740b1759 | 7 | bool all_cpu_threads_idle(void); |
88401cbc | 8 | bool qemu_in_vcpu_thread(void); |
d3b12f5d | 9 | void qemu_init_cpu_loop(void); |
296af7c9 BS |
10 | void resume_all_vcpus(void); |
11 | void pause_all_vcpus(void); | |
b4a3d965 | 12 | void cpu_stop_current(void); |
4b4629d9 | 13 | |
4b4629d9 PB |
14 | extern int icount_align_option; |
15 | ||
4b4629d9 PB |
16 | /* Unblock cpu */ |
17 | void qemu_cpu_kick_self(void); | |
296af7c9 | 18 | |
17a4663e BS |
19 | void cpu_synchronize_all_states(void); |
20 | void cpu_synchronize_all_post_reset(void); | |
21 | void cpu_synchronize_all_post_init(void); | |
75e972da | 22 | void cpu_synchronize_all_pre_loadvm(void); |
17a4663e | 23 | |
54fb7bf6 | 24 | #ifndef CONFIG_USER_ONLY |
296af7c9 | 25 | /* vl.c */ |
eab60fb9 | 26 | /* *-user doesn't have configurable SMP topology */ |
296af7c9 BS |
27 | extern int smp_cores; |
28 | extern int smp_threads; | |
54fb7bf6 EH |
29 | #endif |
30 | ||
0442428a | 31 | void list_cpus(const char *optarg); |
296af7c9 BS |
32 | |
33 | #endif |