Re: [Qemu-devel] [PATCH 09/16] cpus-common: move exclusive work infrastructure from linux-user

2016-09-23 Thread Richard Henderson
On 09/23/2016 12:31 AM, Paolo Bonzini wrote: This will serve as the base for async_safe_run_on_cpu. Because start_exclusive uses CPU_FOREACH, merge exclusive_lock with qemu_cpu_list_lock: together with a call to exclusive_idle (via cpu_exec_start/end) in cpu_list_add, this protects exclusive

[Qemu-devel] [PATCH 09/16] cpus-common: move exclusive work infrastructure from linux-user

2016-09-23 Thread Paolo Bonzini
This will serve as the base for async_safe_run_on_cpu. Because start_exclusive uses CPU_FOREACH, merge exclusive_lock with qemu_cpu_list_lock: together with a call to exclusive_idle (via cpu_exec_start/end) in cpu_list_add, this protects exclusive work against concurrent CPU addition and removal.

[Qemu-devel] [PATCH 09/16] cpus-common: move exclusive work infrastructure from linux-user

2016-09-19 Thread Paolo Bonzini
This will serve as the base for async_safe_run_on_cpu. Reviewed-by: Alex Bennée Signed-off-by: Paolo Bonzini --- bsd-user/main.c | 17 --- cpus-common.c | 82 +++ cpus.c| 2

[Qemu-devel] [PATCH 09/16] cpus-common: move exclusive work infrastructure from linux-user

2016-09-12 Thread Paolo Bonzini
This will serve as the base for async_safe_run_on_cpu. Reviewed-by: Alex Bennée Signed-off-by: Paolo Bonzini --- bsd-user/main.c | 17 --- cpus-common.c | 82 +++ cpus.c| 2