membarrier: introduce qemu/sys_membarrier.h
commitc8d3877e48c4f57381d72eaf8d016bff12ce2d7c
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Feb 2018 09:04:18 +0000 (16 10:04 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:47 +0000 (12 16:12 +0100)
tree204fd1c6da69bdfab70ac5e25007c67195d3e78f
parent77a8b8462b02a10aea5cad389a8f9260f79ede36
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/rcu.h
include/qemu/sys_membarrier.h [new file with mode: 0644]
util/rcu.c