]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-thread-posix.c
qemu-thread-posix: cleanup, fix, document QemuEvent
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Mar 2023 10:19:52 +0000 (11:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Mar 2023 11:38:40 +0000 (12:38 +0100)
commit9586a1329f5dce6c1d7f4de53cf0536644d7e593
tree7c1e103a34d66e6333b6fb6111c80a61a7a741d8
parentff00bed1897c3d27adc5b0cec6f6eeb5a7d13176
qemu-thread-posix: cleanup, fix, document QemuEvent

QemuEvent is currently broken on ARM due to missing memory barriers
after qatomic_*().  Apart from adding the memory barrier, a closer look
reveals some unpaired memory barriers too.  Document more clearly what
is going on.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/qemu-thread-posix.c