diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-08-26 00:19:19 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-09-09 15:34:54 +0200 |
commit | e0c382113f768cc375a0d61b7cb3692f1b4bba58 (patch) | |
tree | 87828150b475879623e8068d0c2249eb43fef596 /cpu-exec.c | |
parent | 9102dedaa1ee1e89ce4a81283c403ff4928e9ef9 (diff) | |
download | qemu-e0c382113f768cc375a0d61b7cb3692f1b4bba58.tar.gz qemu-e0c382113f768cc375a0d61b7cb3692f1b4bba58.tar.bz2 qemu-e0c382113f768cc375a0d61b7cb3692f1b4bba58.zip |
tcg: signal-free qemu_cpu_kick
Signals are slow and do not exist on Win32. The previous patches
have done most of the legwork to introduce memory barriers (some
of them were even there already for the sake of Windows!) and
we can now set the flags directly in the iothread.
qemu_cpu_kick_thread is not used anymore on TCG, since the TCG thread is
never outside usermode while the CPU is running (not halted). Instead run
the content of the signal handler (now in qemu_cpu_kick_no_halt) directly.
qemu_cpu_kick_no_halt is also used in qemu_mutex_lock_iothread to avoid
the overhead of qemu_cond_broadcast.
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-exec.c b/cpu-exec.c index ef9d74552e..6a30261a83 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -341,7 +341,7 @@ static void cpu_handle_debug_exception(CPUState *cpu) /* main execution loop */ -volatile sig_atomic_t exit_request; +bool exit_request; CPUState *tcg_current_cpu; int cpu_exec(CPUState *cpu) |