Skip to content

coroutine: use coroutine TLS macros to protect thread-local variables

Bugzilla: 1952483
Signed-off-by: Stefan Hajnoczi stefanha@redhat.com
Brew: broken due to clang 14 upgrade, see https://bugzilla.redhat.com/show_bug.cgi?id=2064530

QEMU 7.0.0 shipped with coroutine TLS macros that solve bz#1952483 but lacks three follow-up patches that use the new macros in the coroutine implementation itself. This backport contains the missing commits that were merged after QEMU 7.0. With this code in place, QEMU does not suffer from the coroutine TLS variable corruption problems that were found to occur when a coroutine is executed across more than one thread throughout its lifetime.

Merge request reports

Loading