Spread the use of QEMU threading & locking API
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Enable joinable POSIX threadscpus.c hw/ qemu-thread-posix.c +4 more | +46 | 3 replies | |
| 2/6 | Introduce qemu_cond_timedwaitqemu-thread-posix.c qemu-thread-win32.c qemu-thread.h | +39 | 2 replies | |
| 3/6 | Switch POSIX compat AIO to QEMU abstractionsposix-aio-compat.c | +32 | 3 replies | |
| 4/6 | Switch compatfd to QEMU threadcompatfd.c | +3 | 0 replies | |
| 5/6 | audio: Use QEMU threads & synchronizationaudio/ audio/ audio/ +1 more | +91 | 0 replies | |
| 6/6 | audio: Switch coreaudio to QemuMutexaudio/ | +8 | 2 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Paolo Bonzini |
|---|---|
| 1/6 | R-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.
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.
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