Re: [Qemu-devel] [PATCH 0/3] per-TLB lock

2018-10-03 Thread Paolo Bonzini
On 02/10/2018 23:29, Emilio G. Cota wrote: > This series introduces a per-TLB lock. This removes existing UB > (e.g. memset racing with cmpxchg on another thread while flushing), > and in my opinion makes the TLB code simpler to understand. > > I had a bit of trouble finding the best place to init

[Qemu-devel] [PATCH 0/3] per-TLB lock

2018-10-02 Thread Emilio G. Cota
This series introduces a per-TLB lock. This removes existing UB (e.g. memset racing with cmpxchg on another thread while flushing), and in my opinion makes the TLB code simpler to understand. I had a bit of trouble finding the best place to initialize the mutex, since it has to be called before tl