summary refs log tree commit diff stats
path: root/scripts/qapi-introspect.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-09-02 23:33:38 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-27 11:57:30 +0200
commit758e1b2b622d7c177dc2d95e887a11aa069b7e68 (patch)
tree4b8fc6e2fa1fac81eeb8d038ee1f213dbab71a3a /scripts/qapi-introspect.py
parentcf07da65f335b9a74e62f5413078f67280572f36 (diff)
downloadfocaccia-qemu-758e1b2b622d7c177dc2d95e887a11aa069b7e68.tar.gz
focaccia-qemu-758e1b2b622d7c177dc2d95e887a11aa069b7e68.zip
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>
Diffstat (limited to 'scripts/qapi-introspect.py')
0 files changed, 0 insertions, 0 deletions