Skip to content

timers thread-safe stuff

Liu Ping Fan qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 5 repliesIn review
  2. v44 patches 8 repliesSuperseded
  3. v34 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v24 patches11 repliesSuperseded

Changes in v5 from the cover letter

fine rename some variable in patch2&4.
fix commit log for patch1&2

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4seqlock: introduce read-write seqlockinclude/qemu/seqlock.h+72 -02 replies
2/4timer: protect timers_state's clock with seqlockcpus.c include/qemu/timer.h+35 -80 replies
3/4qemu-thread: add QemuEventinclude/qemu/thread-posix.h include/qemu/thread-win32.h include/qemu/thread.h +2 more+161 -01 reply
4/4timer: make qemu_clock_enable sync between disable and timer's cbinclude/qemu/timer.h qemu-timer.c+26 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/4] timers thread-safe stuff

v5:
fine rename some variable in patch2&4.
fix commit log for patch1&2

v4:
fix commit log for "protect timers_state's clock with seqlock" (Thanks for Alex)

v3:
1. rename seqlock_read_check as seqlock_read_retry
2. Document timerlist were protected by BQL, and discard private lock around "qemu_event_wait(tl->ev)".

v2:
1. fix comment in commit and code
2. fix race issue for qemu_clock_enable(foo,disable)

Liu Ping Fan (2):
timer: protect timers_state's clock with seqlock
timer: make qemu_clock_enable sync between disable and timer's cb

Paolo Bonzini (2):
seqlock: introduce read-write seqlock
qemu-thread: add QemuEvent

 cpus.c                      |  41 +++++++++++++---
 include/qemu/seqlock.h      |  72 +++++++++++++++++++++++++++
 include/qemu/thread-posix.h |   8 +++
 include/qemu/thread-win32.h |   4 ++
 include/qemu/thread.h       |   7 +++
 include/qemu/timer.h        |   8 +++
 qemu-timer.c                |  21 +++++++-
 util/qemu-thread-posix.c    | 116 ++++++++++++++++++++++++++++++++++++++++++++
 util/qemu-thread-win32.c    |  26 ++++++++++
 9 files changed, 294 insertions(+), 9 deletions(-)
 create mode 100644 include/qemu/seqlock.h
Signature · 1 line
1.8.1.4