2010-03-30 03:23:50 +08:00
|
|
|
#ifndef QEMU_CPUS_H
|
|
|
|
#define QEMU_CPUS_H
|
|
|
|
|
2010-04-13 01:19:06 +08:00
|
|
|
/* cpus.c */
|
2011-09-13 16:30:52 +08:00
|
|
|
void qemu_init_cpu_loop(void);
|
2010-03-30 03:23:50 +08:00
|
|
|
void resume_all_vcpus(void);
|
|
|
|
void pause_all_vcpus(void);
|
2011-02-02 05:15:43 +08:00
|
|
|
void cpu_stop_current(void);
|
2010-03-30 03:23:50 +08:00
|
|
|
|
2011-03-28 00:05:08 +08:00
|
|
|
void cpu_synchronize_all_states(void);
|
|
|
|
void cpu_synchronize_all_post_reset(void);
|
|
|
|
void cpu_synchronize_all_post_init(void);
|
|
|
|
|
2012-03-28 21:42:04 +08:00
|
|
|
void qtest_clock_warp(int64_t dest);
|
|
|
|
|
2013-01-23 04:25:05 +08:00
|
|
|
#ifndef CONFIG_USER_ONLY
|
2010-03-30 03:23:50 +08:00
|
|
|
/* vl.c */
|
|
|
|
extern int smp_cores;
|
|
|
|
extern int smp_threads;
|
2013-01-23 04:25:05 +08:00
|
|
|
#else
|
|
|
|
/* *-user doesn't have configurable SMP topology */
|
|
|
|
#define smp_cores 1
|
|
|
|
#define smp_threads 1
|
|
|
|
#endif
|
|
|
|
|
2010-03-30 03:23:50 +08:00
|
|
|
void set_numa_modes(void);
|
|
|
|
void set_cpu_log(const char *optarg);
|
2010-10-23 05:03:33 +08:00
|
|
|
void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg);
|
2010-03-30 03:23:50 +08:00
|
|
|
|
|
|
|
#endif
|