From 85199474d0df23b87f0b4a3e330401b59aac3ec0 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Mon, 22 Feb 2010 13:57:54 -0300 Subject: kvm-all.c: define smp_wmb and use it for coalesced mmio Acked-by: "Michael S. Tsirkin" Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- qemu-barrier.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 qemu-barrier.h (limited to 'qemu-barrier.h') diff --git a/qemu-barrier.h b/qemu-barrier.h new file mode 100644 index 0000000000..3bd1075d66 --- /dev/null +++ b/qemu-barrier.h @@ -0,0 +1,7 @@ +#ifndef __QEMU_BARRIER_H +#define __QEMU_BARRIER_H 1 + +/* FIXME: arch dependant, x86 version */ +#define smp_wmb() asm volatile("" ::: "memory") + +#endif -- cgit v1.2.3