mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
b4a3d965de
If some I/O operation ends up calling qemu_system_reset_request in VCPU context, we record this and inform the io-thread, but we do not terminate the VCPU loop. This can lead to fairly unexpected behavior if the triggering reset operation is supposed to work synchronously. Fix this for TCG (when run in deterministic I/O mode) by setting the VCPU on stop and issuing a cpu_exit. KVM requires some more work on its VCPU loop. [ ported from qemu-kvm ] Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
23 lines
539 B
C
23 lines
539 B
C
#ifndef QEMU_CPUS_H
|
|
#define QEMU_CPUS_H
|
|
|
|
/* cpus.c */
|
|
int qemu_init_main_loop(void);
|
|
void qemu_main_loop_start(void);
|
|
void resume_all_vcpus(void);
|
|
void pause_all_vcpus(void);
|
|
void cpu_stop_current(void);
|
|
|
|
/* vl.c */
|
|
extern int smp_cores;
|
|
extern int smp_threads;
|
|
extern int debug_requested;
|
|
extern int vmstop_requested;
|
|
void vm_state_notify(int running, int reason);
|
|
bool cpu_exec_all(void);
|
|
void set_numa_modes(void);
|
|
void set_cpu_log(const char *optarg);
|
|
void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg);
|
|
|
|
#endif
|