Skip to content

Use more central threading and synchronization services

Jan Kiszka qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 16 repliesIn review
  2. v15 patches 19 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Introduce qemu_cond_timedwait for POSIXqemu-thread-posix.c qemu-thread-posix.h+28 -014 replies
2/10Switch POSIX compat AIO to QEMU abstractionsposix-aio-compat.c+35 -830 replies
3/10Switch compatfd to QEMU threadcompatfd.c+3 -130 replies
4/10qemu-thread: Factor out qemu_error_exitqemu-thread-posix.c qemu-thread-win32.c qemu-thread.h+26 -240 replies
5/10Introduce QemuEvent abstractionMakefile Makefile.objs qemu-event-posix.c +4 more+201 -22 replies
6/10Use QemuEvent in main loopmain-loop.c+13 -910 replies
7/10Drop unused qemu_eventfdoslib-posix.c qemu-common.h+0 -320 replies
8/10Use QemuEvent for POSIX AIOposix-aio-compat.c+7 -550 replies
9/10virtio: Switch to QemuEventhw/vhost.c hw/virtio-pci.c hw/virtio.c +1 more+36 -470 replies
10/10Remove EventNotifierMakefile.objs event_notifier.c event_notifier.h+1 -900 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/10] Use more central threading and synchronization services

Patches 1-3 are unmodified from the previous round. Patches 4-10 aim at consolidating our event abstractions over a single QemuEvent object. This is heavily based on Paolo's work, just slightly refactored, plugged into the qemu-thread-* infrastructure and applied on more consumers.

CC Michael S. Tsirkin <[email protected]>

Jan Kiszka (10):
Introduce qemu_cond_timedwait for POSIX
Switch POSIX compat AIO to QEMU abstractions
Switch compatfd to QEMU thread
qemu-thread: Factor out qemu_error_exit
Introduce QemuEvent abstraction
Use QemuEvent in main loop
Drop unused qemu_eventfd
Use QemuEvent for POSIX AIO
virtio: Switch to QemuEvent
Remove EventNotifier

 Makefile            |    2 +-
 Makefile.objs       |    7 ++-
 compatfd.c          |   16 +----
 event_notifier.c    |   61 -----------------
 event_notifier.h    |   28 --------
 hw/vhost.c          |    4 +-
 hw/virtio-pci.c     |   61 +++++++----------
 hw/virtio.c         |   12 ++--
 hw/virtio.h         |    6 +-
 main-loop.c         |  104 ++++--------------------------
 oslib-posix.c       |   31 ---------
 posix-aio-compat.c  |  180 ++++++++++++---------------------------------------
 qemu-common.h       |    1 -
 qemu-event-posix.c  |  110 +++++++++++++++++++++++++++++++
 qemu-event-win32.c  |   65 ++++++++++++++++++
 qemu-thread-posix.c |   51 +++++++++++----
 qemu-thread-posix.h |   10 +++
 qemu-thread-win32.c |   18 +++---
 qemu-thread-win32.h |    4 +
 qemu-thread.h       |   14 ++++
 20 files changed, 349 insertions(+), 436 deletions(-)
 delete mode 100644 event_notifier.c
 delete mode 100644 event_notifier.h
 create mode 100644 qemu-event-posix.c
 create mode 100644 qemu-event-win32.c
Signature · 1 line
1.7.3.4