xemu/qemu-barrier.h
Marcelo Tosatti 85199474d0 kvm-all.c: define smp_wmb and use it for coalesced mmio
Acked-by: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2010-02-22 19:04:13 +02:00

8 lines
152 B
C

#ifndef __QEMU_BARRIER_H
#define __QEMU_BARRIER_H 1
/* FIXME: arch dependant, x86 version */
#define smp_wmb() asm volatile("" ::: "memory")
#endif