Skip to content
  • Paolo Bonzini's avatar
    tcg: signal-free qemu_cpu_kick · e0c38211
    Paolo Bonzini authored
    
    
    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: default avatarRichard Henderson <rth@twiddle.net>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    e0c38211