-
由 Michael S. Tsirkin 提交于
include/xen/interface/io/ring.h 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: NMichael S. Tsirkin <mst@redhat.com> Acked-by: NDavid Vrabel <david.vrabel@citrix.com> Acked-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
506b02eb