projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0820a5
)
tools/virtio: stub out strong barriers
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 28 Feb 2012 07:07:58 +0000
(09:07 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 28 Feb 2012 07:13:16 +0000
(09:13 +0200)
The tool should never use them, abort if it does.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/virtio.h
patch
|
blob
|
history
diff --git
a/tools/virtio/linux/virtio.h
b/tools/virtio/linux/virtio.h
index b4fbc91c41b47dd4ab2a06157594c32b14bdd2aa..7579f19e61e00ed240a8e9af108b9075ca7b7002 100644
(file)
--- 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