[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 0/3] qemu-timer: make qemu_timer_mod_ns() and
From: |
liu ping fan |
Subject: |
Re: [Qemu-devel] [PATCH v3 0/3] qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe |
Date: |
Thu, 12 Sep 2013 11:10:01 +0800 |
Hi Stefan,
Do you think this series is ready to be merged?
I have some code to run hpet on a dedicated thread, and in theory it
will rely on this.
Thanks and regards,
Pingfan
On Thu, Aug 29, 2013 at 10:42 PM, Stefan Hajnoczi <address@hidden> wrote:
> v3:
> * Squashed Paolo's fixes and added his patch to avoid locking in
> timer_pending()
>
> 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.
>
> Patch 3 makes timer_pending() run without a lock.
>
> Paolo Bonzini (1):
> qemu-timer: do not take the lock in timer_pending
>
> 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 | 92
> ++++++++++++++++++++++++++++++++++++----------------
> 2 files changed, 81 insertions(+), 28 deletions(-)
>
> --
> 1.8.3.1
>
>
- Re: [Qemu-devel] [PATCH v3 0/3] qemu-timer: make qemu_timer_mod_ns() and qemu_timer_del() thread-safe,
liu ping fan <=