qemu-e2k/include/qom
Emilio G. Cota 068a5ea02f qom: convert the CPU list to RCU
Iterating over the list without using atomics is undefined behaviour,
since the list can be modified concurrently by other threads (e.g.
every time a new thread is created in user-mode).

Fix it by implementing the CPU list as an RCU QTAILQ. This requires
a little bit of extra work to traverse list in reverse order (see
previous patch), but other than that the conversion is trivial.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <20180819091335.22863-12-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-08-23 18:46:25 +02:00
..
cpu.h qom: convert the CPU list to RCU 2018-08-23 18:46:25 +02:00
object_interfaces.h Include qapi/qmp/qdict.h exactly where needed 2018-02-09 13:52:15 +01:00
object.h qom/object: Add a new function object_initialize_child() 2018-07-17 13:12:49 +01:00
qom-qobject.h