membarrier: introduce qemu/sys_membarrier.h
This new header file provides heavy-weight "global" memory barriers that
enforce memory ordering on each running thread belonging to the current
process. For now, use a dummy implementation that issues memory barriers
on both sides (matching what QEMU has been doing so far).
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
include/qemu/sys_membarrier.h
0 → 100644
Please register or sign in to comment