Re: [Qemu-devel] [PATCH 2/2] [RFC] Convert Clock Timerlists to RCU V2

2014-03-03 Thread Paolo Bonzini
Il 28/02/2014 21:05, Alex Bligh ha scritto: Mike On 27 Feb 2014, at 19:35, Mike Day wrote: timerlists is a list of lists that holds active timers, among other items. It is read-mostly. This patch converts read access to the timerlists to use RCU. Rather than introduce a second mutex for timer

Re: [Qemu-devel] [PATCH 2/2] [RFC] Convert Clock Timerlists to RCU V2

2014-03-03 Thread Mike Day
On Fri, Feb 28, 2014 at 3:05 PM, Alex Bligh wrote: >> Rather than introduce a second mutex for timerlists, which would >> require nested mutexes to in orderwrite to the timerlists, use one >> QemuMutex in the QemuClock structure for all write access to any list >> hanging off the QemuClock struct

Re: [Qemu-devel] [PATCH 2/2] [RFC] Convert Clock Timerlists to RCU V2

2014-02-28 Thread Alex Bligh
Mike On 27 Feb 2014, at 19:35, Mike Day wrote: > timerlists is a list of lists that holds active timers, among other > items. It is read-mostly. This patch converts read access to the > timerlists to use RCU. > > Rather than introduce a second mutex for timerlists, which would > require nested m

[Qemu-devel] [PATCH 2/2] [RFC] Convert Clock Timerlists to RCU V2

2014-02-27 Thread Mike Day
timerlists is a list of lists that holds active timers, among other items. It is read-mostly. This patch converts read access to the timerlists to use RCU. Rather than introduce a second mutex for timerlists, which would require nested mutexes to in orderwrite to the timerlists, use one QemuMutex