summaryrefslogtreecommitdiffstats
path: root/tools/virtio/linux
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-02-28 09:07:58 +0200
committerMichael S. Tsirkin <mst@redhat.com>2012-02-28 09:13:16 +0200
commitb17d5c6e190f3d328aae0444f8b93d58d0015714 (patch)
treeca3937abbc8dae605da85893ef4cced5978e5cec /tools/virtio/linux
parentb0820a50a0439764411b779208f0e6a67b937e72 (diff)
downloadop-kernel-dev-b17d5c6e190f3d328aae0444f8b93d58d0015714.zip
op-kernel-dev-b17d5c6e190f3d328aae0444f8b93d58d0015714.tar.gz
tools/virtio: stub out strong barriers
The tool should never use them, abort if it does. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/linux')
-rw-r--r--tools/virtio/linux/virtio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h
index b4fbc91..7579f19 100644
--- a/tools/virtio/linux/virtio.h
+++ b/tools/virtio/linux/virtio.h
@@ -181,6 +181,9 @@ struct virtqueue {
#define smp_mb() mb()
# define smp_rmb() barrier()
# define smp_wmb() barrier()
+/* Weak barriers should be used. If not - it's a bug */
+# define rmb() abort()
+# define wmb() abort()
#else
#error Please fill in barrier macros
#endif
OpenPOWER on IntegriCloud