mirror of
https://github.com/qemu/qemu.git
synced 2024-12-15 07:23:52 +08:00
12ceaef6ae
Replace the ad-hoc qemu_tcg_configure with generic code invoking QOM property getters and setters. More properties (and thus more valid -accel suboptions) will be added in the next patches, which will move accelerator-related "-machine" options to accelerators. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
44 lines
996 B
C
44 lines
996 B
C
#ifndef QEMU_CPUS_H
|
|
#define QEMU_CPUS_H
|
|
|
|
#include "qemu/timer.h"
|
|
|
|
/* cpus.c */
|
|
bool qemu_in_vcpu_thread(void);
|
|
void qemu_init_cpu_loop(void);
|
|
void resume_all_vcpus(void);
|
|
void pause_all_vcpus(void);
|
|
void cpu_stop_current(void);
|
|
void cpu_ticks_init(void);
|
|
|
|
void configure_icount(QemuOpts *opts, Error **errp);
|
|
extern int use_icount;
|
|
extern int icount_align_option;
|
|
|
|
/* drift information for info jit command */
|
|
extern int64_t max_delay;
|
|
extern int64_t max_advance;
|
|
void dump_drift_info(void);
|
|
|
|
/* Unblock cpu */
|
|
void qemu_cpu_kick_self(void);
|
|
void qemu_timer_notify_cb(void *opaque, QEMUClockType type);
|
|
|
|
void cpu_synchronize_all_states(void);
|
|
void cpu_synchronize_all_post_reset(void);
|
|
void cpu_synchronize_all_post_init(void);
|
|
void cpu_synchronize_all_pre_loadvm(void);
|
|
|
|
void qtest_clock_warp(int64_t dest);
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
/* vl.c */
|
|
/* *-user doesn't have configurable SMP topology */
|
|
extern int smp_cores;
|
|
extern int smp_threads;
|
|
#endif
|
|
|
|
void list_cpus(const char *optarg);
|
|
|
|
#endif
|