[Qemu-devel] [PATCH 0/3] convert CPU list to RCU

Emilio G. Cota posted 3 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180813163859.17964-1-cota@braap.org
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu failed
Test docker-quick@centos7 passed
There is a newer version of this series
[Qemu-devel] [PATCH 0/3] convert CPU list to RCU
Posted by Emilio G. Cota 7 years, 2 months ago
We iterate over the CPU list quite frequently (e.g. with CPU_FOREACH),
but we rarely acquire the cpu_list_lock to do so. This is incorrect,
since the CPU list can be updated (new CPUs added to it) pretty
much anytime, particularly in user-mode.

Instead of grabbing cpu_list_lock everywhere, convert the list to RCU
to that iterations can be safe and wait-free.

Thanks,

		Emilio