From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFkQt-0007jz-Qo for qemu-devel@nongnu.org; Thu, 05 Apr 2012 07:03:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFkPR-000754-Hm for qemu-devel@nongnu.org; Thu, 05 Apr 2012 07:00:51 -0400 Received: from thoth.sbs.de ([192.35.17.2]:20033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFkPR-00073m-7W for qemu-devel@nongnu.org; Thu, 05 Apr 2012 06:59:21 -0400 From: Jan Kiszka Date: Thu, 5 Apr 2012 12:59:07 +0200 Message-Id: Subject: [Qemu-devel] [PATCH v3 00/10] Use more central threading and synchronization services List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , "Michael S. Tsirkin" 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 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 -- 1.7.3.4