diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-12-27 17:02:16 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-01-12 19:47:03 +0100 |
commit | 5bb0c9be2ac9a98513d43969e2b5c3d02cb271c8 (patch) | |
tree | 2e71e19671c569e31040354c07295f25a183e74d /include/xen/interface | |
parent | virtio_ring: use virt_store_mb (diff) | |
download | linux-5bb0c9be2ac9a98513d43969e2b5c3d02cb271c8.tar.xz linux-5bb0c9be2ac9a98513d43969e2b5c3d02cb271c8.zip |
xenbus: use virt_xxx barriers
drivers/xen/xenbus/xenbus_comms.c uses
full memory barriers to communicate with the other side.
For guests compiled with CONFIG_SMP, smp_wmb and smp_mb
would be sufficient, so mb() and wmb() here are only needed if
a non-SMP guest runs on an SMP host.
Switch to virt_xxx barriers which serve this exact purpose.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'include/xen/interface')
0 files changed, 0 insertions, 0 deletions