aboutsummaryrefslogtreecommitdiff
path: root/qemu-barrier.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-02-22 13:57:54 -0300
committerAvi Kivity <avi@redhat.com>2010-02-22 19:04:13 +0200
commit85199474d0df23b87f0b4a3e330401b59aac3ec0 (patch)
tree1420d449ca27b80b96c30437c5d69208325f0c20 /qemu-barrier.h
parent6312b92853a7cd483533de0348dcd26edef74824 (diff)
downloadqemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.zip
qemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.tar.gz
qemu-85199474d0df23b87f0b4a3e330401b59aac3ec0.tar.bz2
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>
Diffstat (limited to 'qemu-barrier.h')
-rw-r--r--qemu-barrier.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu-barrier.h b/qemu-barrier.h
new file mode 100644
index 0000000..3bd1075
--- /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