Commit b17d5c6e authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

tools/virtio: stub out strong barriers

The tool should never use them, abort if it does.
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b0820a50
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment