Re: [Qemu-devel] [PATCH 1/2] [RFC] Convert active timers list to use RCU V2

2014-02-28 Thread Alex Bligh
Mike, This one's nice and clear. A few comments in line. On 27 Feb 2014, at 19:35, Mike Day wrote: > @@ -184,16 +178,17 @@ bool qemu_clock_has_timers(QEMUClockType type) > bool timerlist_expired(QEMUTimerList *timer_list) > { > int64_t expire_time; > +bool ret; > > -qemu_mutex_lock(

[Qemu-devel] [PATCH 1/2] [RFC] Convert active timers list to use RCU V2

2014-02-27 Thread Mike Day
active_timers is a list of timer lists, associated with a Qemu Clock, that is read-mostly. This patch converts read accesses to the list to use RCU, which should hopefully mitigate most of the synchronization overhead. This patch applies against Paolo Bonzini's rcu branch: https://github.com/bonzi