Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-21 Thread Sergey Fedorov
On 21/07/16 14:25, Paolo Bonzini wrote: > > - Original Message - >> From: "Sergey Fedorov" >> To: "Paolo Bonzini" >> Cc: qemu-devel@nongnu.org, "sergey fedorov" , >> "alex bennee" >> Sent: Thursday, July 21, 2016 10:36:35 AM >> Subject: Re: [PATCH 05/10] tcg: Prepare TB invalidation for

Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-21 Thread Paolo Bonzini
- Original Message - > From: "Sergey Fedorov" > To: "Paolo Bonzini" > Cc: qemu-devel@nongnu.org, "sergey fedorov" , > "alex bennee" > Sent: Thursday, July 21, 2016 10:36:35 AM > Subject: Re: [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup > > On 20/07/16 01:27, Paol

Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-21 Thread Paolo Bonzini
On 21/07/2016 10:36, Sergey Fedorov wrote: > On 20/07/16 01:27, Paolo Bonzini wrote: >> >> - Original Message - >>> From: "Sergey Fedorov" >>> To: "Paolo Bonzini" , qemu-devel@nongnu.org >>> Cc: "sergey fedorov" , "alex bennee" >>> >>> Sent: Tuesday, July 19, 2016 9:56:49 PM >>> Subjec

Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-21 Thread Sergey Fedorov
On 20/07/16 01:27, Paolo Bonzini wrote: > > - Original Message - >> From: "Sergey Fedorov" >> To: "Paolo Bonzini" , qemu-devel@nongnu.org >> Cc: "sergey fedorov" , "alex bennee" >> >> Sent: Tuesday, July 19, 2016 9:56:49 PM >> Subject: Re: [PATCH 05/10] tcg: Prepare TB invalidation for l

Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-19 Thread Paolo Bonzini
- Original Message - > From: "Sergey Fedorov" > To: "Paolo Bonzini" , qemu-devel@nongnu.org > Cc: "sergey fedorov" , "alex bennee" > > Sent: Tuesday, July 19, 2016 9:56:49 PM > Subject: Re: [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup > > On 19/07/16 11:32, Paolo

Re: [Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-19 Thread Sergey Fedorov
On 19/07/16 11:32, Paolo Bonzini wrote: > It looks much better now :) > When invalidating a translation block, set an invalid flag into the > TranslationBlock structure first. It is also necessary to check whether > the target TB is still valid after acquiring 'tb_lock' but before calling > tb_a

[Qemu-devel] [PATCH 05/10] tcg: Prepare TB invalidation for lockless TB lookup

2016-07-19 Thread Paolo Bonzini
When invalidating a translation block, set an invalid flag into the TranslationBlock structure first. It is also necessary to check whether the target TB is still valid after acquiring 'tb_lock' but before calling tb_add_jump() since TB lookup is to be performed out of 'tb_lock' in future. Note th