Re: [Qemu-devel] [PATCH 3/4] cpus: protect TimerState writes with a spinlock

2018-09-09 Thread Paolo Bonzini
On 01/09/2018 00:07, Emilio G. Cota wrote: > On Mon, Aug 20, 2018 at 17:09:02 +0200, Paolo Bonzini wrote: >> In the next patch, we will need to write cpu_ticks_offset from any >> thread, even outside the BQL. Currently, it is protected by the BQL >> just because cpu_enable_ticks and cpu_disable_ti

Re: [Qemu-devel] [PATCH 3/4] cpus: protect TimerState writes with a spinlock

2018-08-31 Thread Emilio G. Cota
On Mon, Aug 20, 2018 at 17:09:02 +0200, Paolo Bonzini wrote: > In the next patch, we will need to write cpu_ticks_offset from any > thread, even outside the BQL. Currently, it is protected by the BQL > just because cpu_enable_ticks and cpu_disable_ticks happen to hold it, > but the critical sectio

[Qemu-devel] [PATCH 3/4] cpus: protect TimerState writes with a spinlock

2018-08-20 Thread Paolo Bonzini
In the next patch, we will need to write cpu_ticks_offset from any thread, even outside the BQL. Currently, it is protected by the BQL just because cpu_enable_ticks and cpu_disable_ticks happen to hold it, but the critical sections are well delimited and it's easy to remove the BQL dependency. Ad