Re: [Qemu-devel] [RFC 4/8] linux-user: Rework exclusive operation mechanism

2016-06-29 Thread Sergey Fedorov
On 27/06/16 12:02, Alex Bennée wrote: > Sergey Fedorov writes: > >> From: Sergey Fedorov >> (snip) >> diff --git a/linux-user/main.c b/linux-user/main.c >> index b9a4e0ea45ac..485336f78b8f 100644 >> --- a/linux-user/main.c >> +++ b/linux-user/main.c >> @@ -111,7 +111,8 @@ static pthread_mutex_t c

Re: [Qemu-devel] [RFC 4/8] linux-user: Rework exclusive operation mechanism

2016-06-27 Thread Alex Bennée
Sergey Fedorov writes: > From: Sergey Fedorov > > A single variable 'pending_cpus' was used for both counting currently > running CPUs and for signalling the pending exclusive operation request. > > To prepare for supporting operations which requires a quiescent state, > like translation buffer

[Qemu-devel] [RFC 4/8] linux-user: Rework exclusive operation mechanism

2016-06-19 Thread Sergey Fedorov
From: Sergey Fedorov A single variable 'pending_cpus' was used for both counting currently running CPUs and for signalling the pending exclusive operation request. To prepare for supporting operations which requires a quiescent state, like translation buffer flush, it is useful to keep a counter