Re: [Qemu-devel] [PATCH v3 07/11] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-14 Thread Sergey Fedorov
On 14/07/16 15:59, Alex Bennée wrote: > Sergey Fedorov writes: > >> From: Sergey Fedorov >> >> When invalidating a translation block, set an invalid CPU state into the >> TranslationBlock structure first. All subsequent changes are ordered >> after it with smp_wmb(). This pairs with implied smp_r

Re: [Qemu-devel] [PATCH v3 07/11] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-14 Thread Alex Bennée
Sergey Fedorov writes: > From: Sergey Fedorov > > When invalidating a translation block, set an invalid CPU state into the > TranslationBlock structure first. All subsequent changes are ordered > after it with smp_wmb(). This pairs with implied smp_rmb() of > qht_lookup() in tb_find_physical().

[Qemu-devel] [PATCH v3 07/11] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-12 Thread Sergey Fedorov
From: Sergey Fedorov When invalidating a translation block, set an invalid CPU state into the TranslationBlock structure first. All subsequent changes are ordered after it with smp_wmb(). This pairs with implied smp_rmb() of qht_lookup() in tb_find_physical(). As soon as the TB is marked with an