diff options
| author | Paolo Bonzini | 2016-08-31 16:56:04 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-09-27 11:57:30 +0200 |
| commit | ab129972c8b41e15b0521895a46fd9c752b68a5e (patch) | |
| tree | 2333219f1b6366ad23aa0b1e3ffa9c9ee2d5c0fe /include/exec | |
| parent | cpus-common: fix uninitialized variable use in run_on_cpu (diff) | |
| download | qemu-ab129972c8b41e15b0521895a46fd9c752b68a5e.tar.gz qemu-ab129972c8b41e15b0521895a46fd9c752b68a5e.tar.xz qemu-ab129972c8b41e15b0521895a46fd9c752b68a5e.zip | |
cpus-common: move exclusive work infrastructure from linux-user
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.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
