Re: [Qemu-devel] [PATCH v6 03/73] cpu: introduce cpu_mutex_lock/unlock

2019-02-06 Thread Emilio G. Cota
On Wed, Feb 06, 2019 at 17:21:15 +, Alex Bennée wrote: > Emilio G. Cota writes: > > +/* > > + * Note: we index the bitmap with cpu->cpu_index + 1 so that the logic > > + * also works during early CPU initialization, when cpu->cpu_index is set > > to > > + * UNASSIGNED_CPU_INDEX == -1. > > + *

Re: [Qemu-devel] [PATCH v6 03/73] cpu: introduce cpu_mutex_lock/unlock

2019-02-06 Thread Alex Bennée
Emilio G. Cota writes: > The few direct users of &cpu->lock will be converted soon. > > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota > --- > include/qom/cpu.h | 33 +++ > cpus.c | 48 +++-- >

[Qemu-devel] [PATCH v6 03/73] cpu: introduce cpu_mutex_lock/unlock

2019-01-29 Thread Emilio G. Cota
The few direct users of &cpu->lock will be converted soon. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- include/qom/cpu.h | 33 +++ cpus.c | 48 +++-- stubs/cpu-lock.c| 28