Re: [Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-26 Thread Alex Bennée
Paolo Bonzini writes: > Add a mutex for the CPU list to system emulation, as it will be used to > manage safe work. Abstract manipulation of the CPU list in new functions > cpu_list_add and cpu_list_remove. > > Signed-off-by: Paolo Bonzini

Re: [Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-23 Thread Richard Henderson
On 09/23/2016 12:31 AM, Paolo Bonzini wrote: Add a mutex for the CPU list to system emulation, as it will be used to manage safe work. Abstract manipulation of the CPU list in new functions cpu_list_add and cpu_list_remove. Signed-off-by: Paolo Bonzini --- Reviewed-by:

[Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-23 Thread Paolo Bonzini
Add a mutex for the CPU list to system emulation, as it will be used to manage safe work. Abstract manipulation of the CPU list in new functions cpu_list_add and cpu_list_remove. Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 +- bsd-user/main.c

Re: [Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-22 Thread Alex Bennée
Paolo Bonzini writes: > On 22/09/2016 17:24, Alex Bennée wrote: >> I see this is code moved from elsewhere but I feel a little comment >> about this should probably accompany the variable. I think it means once >> you have added a CPU without an explicit index all future

Re: [Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-22 Thread Paolo Bonzini
On 22/09/2016 17:24, Alex Bennée wrote: > I see this is code moved from elsewhere but I feel a little comment > about this should probably accompany the variable. I think it means once > you have added a CPU without an explicit index all future CPUs will be > auto assigned and you can no longer

Re: [Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-22 Thread Alex Bennée
Paolo Bonzini writes: > Add a mutex for the CPU list to system emulation, as it will be used to > manage safe work. Abstract manipulation of the CPU list in new functions > cpu_list_add and cpu_list_remove. > > Signed-off-by: Paolo Bonzini > --- >

[Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-19 Thread Paolo Bonzini
Add a mutex for the CPU list to system emulation, as it will be used to manage safe work. Abstract manipulation of the CPU list in new functions cpu_list_add and cpu_list_remove. Signed-off-by: Paolo Bonzini --- Makefile.objs | 2 +- bsd-user/main.c

[Qemu-devel] [PATCH 06/16] cpus-common: move CPU list management to common code

2016-09-12 Thread Paolo Bonzini
Add a mutex for the CPU list to system emulation, as it will be used to manage safe work. Abstract manipulation of the CPU list in new functions cpu_list_add and cpu_list_remove. Signed-off-by: Paolo Bonzini --- Makefile.target | 2 +- bsd-user/main.c