xen/io: use virt_xxx barriers
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>
Showing
想要评论请 注册 或 登录