From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from SMTP02.CITRIX.COM (smtp02.citrix.com [66.165.176.63]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 50F361A19EA for ; Mon, 11 Jan 2016 22:12:15 +1100 (AEDT) Message-ID: <56938E06.9050702@citrix.com> Date: Mon, 11 Jan 2016 11:12:06 +0000 From: David Vrabel MIME-Version: 1.0 To: "Michael S. Tsirkin" , CC: Peter Zijlstra , Arnd Bergmann , , Andrew Cooper , Russell King - ARM Linux , , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Joe Perches , David Miller , , , , , , , , , , , , , , "Konrad Rzeszutek Wilk" , Boris Ostrovsky , Julien Grall , "Ross Lagerwall" , Stefano Stabellini , Wei Liu Subject: Re: [PATCH v3 39/41] xen/events: use virt_xxx barriers References: <1452426622-4471-1-git-send-email-mst@redhat.com> <1452426622-4471-40-git-send-email-mst@redhat.com> In-Reply-To: <1452426622-4471-40-git-send-email-mst@redhat.com> Content-Type: text/plain; charset="windows-1252" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 10/01/16 14:21, Michael S. Tsirkin wrote: > drivers/xen/events/events_fifo.c uses rmb() to communicate with the > other side. > > For guests compiled with CONFIG_SMP, smp_rmb would be sufficient, so > rmb() here is only needed if a non-SMP guest runs on an SMP host. > > Switch to the virt_rmb barrier which serves this exact purpose. > > Pull in asm/barrier.h here to make sure the file is self-contained. > > Suggested-by: David Vrabel > Signed-off-by: Michael S. Tsirkin Acked-by: David Vrabel David