Re: [Qemu-devel] [RFC 4/8] timer: protect timers_state with lock

2013-07-21 Thread Jan Kiszka
On 2013-07-21 10:43, Liu Ping Fan wrote: > In kvm mode, vm_clock may be read on AioContexts outside BQL(next > patch). This will make timers_state --the foundation of vm_clock > exposed to race condition. Using private lock to protect it. > Note in tcg mode, vm_clock still read inside BQL, so icoun

[Qemu-devel] [RFC 4/8] timer: protect timers_state with lock

2013-07-21 Thread Liu Ping Fan
In kvm mode, vm_clock may be read on AioContexts outside BQL(next patch). This will make timers_state --the foundation of vm_clock exposed to race condition. Using private lock to protect it. Note in tcg mode, vm_clock still read inside BQL, so icount is left without change. Lock rule: private loc