diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-02 23:33:38 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-27 11:57:30 +0200 |
commit | 758e1b2b622d7c177dc2d95e887a11aa069b7e68 (patch) | |
tree | 4b8fc6e2fa1fac81eeb8d038ee1f213dbab71a3a /default-configs/mips64el-linux-user.mak | |
parent | cf07da65f335b9a74e62f5413078f67280572f36 (diff) |
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 'default-configs/mips64el-linux-user.mak')
0 files changed, 0 insertions, 0 deletions