Stefan Hajnoczi 978f2205c7 qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe
Introduce QEMUTimerList->active_timers_lock to protect the linked list
of active timers.  This allows qemu_timer_mod_ns() to be called from any
thread.

Note that vm_clock is not thread-safe and its use of
qemu_clock_has_timers() works fine today but is also not thread-safe.

The purpose of this patch is to eventually let device models set or
cancel timers from a vcpu thread without holding the global mutex.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-09-18 15:48:33 +02:00
..
2013-04-19 11:28:22 +02:00
2013-05-18 16:35:12 +04:00
2013-07-10 13:42:09 -04:00
2013-03-01 13:53:10 +01:00
2013-02-16 11:11:34 +00:00
2013-07-02 08:17:01 +02:00
2013-07-04 10:40:56 +03:00