Liu Ping Fan cb365646a9 timer: protect timers_state's clock with seqlock
QEMU_CLOCK_VIRTUAL may be read outside BQL. This will make its
foundation, i.e. cpu_clock_offset exposed to race condition.
Using private lock to protect it.

After this patch, reading QEMU_CLOCK_VIRTUAL is thread safe
unless use_icount is true, in which case the existing callers
still rely on the BQL.

Lock rule: private lock innermost, ie BQL->"this lock"

Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-10-17 17:30:52 +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-09-15 09:36:57 +03:00