[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 0/2] qemu-timer: make qemu_timer_mod_ns() and qem
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH v2 0/2] qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe |
Date: |
Tue, 27 Aug 2013 10:23:57 +0200 |
v2:
* Rebased onto qemu.git/master following the merge of Alex's AioContext timers
The purpose of these patches is to eventually allow device models to set and
cancel timers without holding the global mutex. When the device model runs in
a vcpu thread and the iothread processes timers, the
QEMUTimerList->active_timers must be protected from concurrent access.
Patch 1 is a clean-up.
Patch 2 is the entire change needed to protect ->active_timers.
Stefan Hajnoczi (2):
qemu-timer: drop outdated signal safety comments
qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe
include/qemu/timer.h | 17 +++++++++++++
qemu-timer.c | 70 ++++++++++++++++++++++++++++++++++++++--------------
2 files changed, 69 insertions(+), 18 deletions(-)
--
1.8.3.1
- [Qemu-devel] [PATCH v2 0/2] qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe,
Stefan Hajnoczi <=