Paolo Bonzini 758e1b2b62 cpus-common: simplify locking for start_exclusive/end_exclusive
It is not necessary to hold qemu_cpu_list_mutex throughout the
exclusive section, because no other exclusive section can run
while pending_cpus != 0.

exclusive_idle() is called in cpu_exec_start(), and that prevents
any CPUs created after start_exclusive() from entering cpu_exec()
during an exclusive section.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-09-27 11:57:30 +02:00
..
2015-11-17 18:35:56 +08:00
2014-06-10 07:44:01 +02:00
2011-07-08 11:25:56 +02:00
2016-05-26 11:12:05 -06:00
2016-03-11 16:59:12 +02:00
2016-09-13 19:08:47 +02:00
2016-09-05 13:47:01 -04:00
2013-04-03 11:39:43 +02:00