2015-08-21 07:04:50 +00:00
|
|
|
#ifndef QEMU_CPUS_H
|
|
|
|
#define QEMU_CPUS_H
|
|
|
|
|
|
|
|
struct uc_struct;
|
|
|
|
|
|
|
|
/* cpus.c */
|
2015-11-11 17:43:41 +00:00
|
|
|
int resume_all_vcpus(struct uc_struct*);
|
2015-08-21 07:04:50 +00:00
|
|
|
void cpu_stop_current(struct uc_struct*);
|
|
|
|
|
|
|
|
void cpu_synchronize_all_states(void);
|
|
|
|
void cpu_synchronize_all_post_reset(void);
|
|
|
|
void cpu_synchronize_all_post_init(void);
|
|
|
|
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
|
|
/* vl.c */
|
|
|
|
extern int smp_cores;
|
|
|
|
extern int smp_threads;
|
|
|
|
#else
|
|
|
|
/* *-user doesn't have configurable SMP topology */
|
|
|
|
#define smp_cores 1
|
|
|
|
#define smp_threads 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|