Skip to content

Spread the use of QEMU threading & locking API

Jan Kiszka qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Enable joinable POSIX threadscpus.c hw/ccid-card-emulated.c qemu-thread-posix.c +4 more+46 -123 replies
2/6Introduce qemu_cond_timedwaitqemu-thread-posix.c qemu-thread-win32.c qemu-thread.h+39 -12 replies
3/6Switch POSIX compat AIO to QEMU abstractionsposix-aio-compat.c+32 -833 replies
4/6Switch compatfd to QEMU threadcompatfd.c+3 -130 replies
5/6audio: Use QEMU threads & synchronizationaudio/audio_pt_int.c audio/audio_pt_int.h audio/esdaudio.c +1 more+91 -2970 replies
6/6audio: Switch coreaudio to QemuMutexaudio/coreaudio.c+8 -482 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchPaolo Bonzini
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] Spread the use of QEMU threading & locking API

This adds two missing features to our QEMU threading and locking abstractions, qemu_thread_join and qemu_cond_timedwait, and then converts compat AIO, compatfd, and several audio subsystems. This not only saves a few lines of code, it also allows to apply certain thread and lock parameters centrally which is specifically important when using SCHED_FIFO.

Note that patch 6 is untested. Am I right that the other threads coreaudioVoiceOut::mutex addresses are created by the coreaudio core? Just curious.

Furthermore note that the changes to posix-aio-compat.c depend on patches in Kevin's latest pull request.

CC Andreas Färber <[email protected]>
CC Kevin Wolf <[email protected]>

Jan Kiszka (6):
Enable joinable POSIX threads
Introduce qemu_cond_timedwait
Switch POSIX compat AIO to QEMU abstractions
Switch compatfd to QEMU thread
audio: Use QEMU threads & synchronization
audio: Switch coreaudio to QemuMutex

 audio/audio_pt_int.c    |  167 ++---------------------------------------------
 audio/audio_pt_int.h    |   45 +++++++++----
 audio/coreaudio.c       |   56 ++--------------
 audio/esdaudio.c        |   92 +++++++-------------------
 audio/paaudio.c         |   84 +++++++----------------
 compatfd.c              |   16 +----
 cpus.c                  |    6 +-
 hw/ccid-card-emulated.c |    5 +-
 posix-aio-compat.c      |  115 +++++++++-----------------------
 qemu-thread-posix.c     |   53 ++++++++++++++-
 qemu-thread-posix.h     |    3 +
 qemu-thread-win32.c     |   20 +++++-
 qemu-thread.h           |    9 ++-
 ui/vnc-jobs-async.c     |    2 +-
 14 files changed, 219 insertions(+), 454 deletions(-)
Signature · 1 line
1.7.3.4