blob: 6fdeb0d8f2e8a75b767094fb84eb83930761b10b [file] [log] [blame]
Blue Swirl296af7c2010-03-29 19:23:50 +00001#ifndef QEMU_CPUS_H
2#define QEMU_CPUS_H
3
Blue Swirl7277e022010-04-12 17:19:06 +00004/* cpus.c */
Blue Swirl296af7c2010-03-29 19:23:50 +00005int qemu_init_main_loop(void);
Blue Swirl7277e022010-04-12 17:19:06 +00006void qemu_main_loop_start(void);
Blue Swirl296af7c2010-03-29 19:23:50 +00007void resume_all_vcpus(void);
8void pause_all_vcpus(void);
Jan Kiszkab4a3d962011-02-01 22:15:43 +01009void cpu_stop_current(void);
Blue Swirl296af7c2010-03-29 19:23:50 +000010
Blue Swirl17a46632011-03-27 16:05:08 +000011void cpu_synchronize_all_states(void);
12void cpu_synchronize_all_post_reset(void);
13void cpu_synchronize_all_post_init(void);
14
Blue Swirl296af7c2010-03-29 19:23:50 +000015/* vl.c */
16extern int smp_cores;
17extern int smp_threads;
Blue Swirl296af7c2010-03-29 19:23:50 +000018void vm_state_notify(int running, int reason);
Jan Kiszka472fb0c2010-06-25 16:56:55 +020019bool cpu_exec_all(void);
Blue Swirl296af7c2010-03-29 19:23:50 +000020void set_numa_modes(void);
21void set_cpu_log(const char *optarg);
Stefan Weil9a78eea2010-10-22 23:03:33 +020022void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg);
Blue Swirl296af7c2010-03-29 19:23:50 +000023
24#endif