Paolo Bonzini c265e976f4 cpus-common: lock-free fast path for cpu_exec_start/end
Set cpu->running without taking the cpu_list lock, only requiring it if
there is a concurrent exclusive section.  This requires adding a new
field to CPUState, which records whether a running CPU is being counted
in pending_cpus.

When an exclusive section is started concurrently with cpu_exec_start,
cpu_exec_start can use the new field to determine if it has to wait for
the end of the exclusive section.  Likewise, cpu_exec_end can use it to
see if start_exclusive is waiting for that CPU.

This a separate patch for easier bisection of issues.

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
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