[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56938E06.9050702@citrix.com>
Date: Mon, 11 Jan 2016 11:12:06 +0000
From: David Vrabel <david.vrabel@...rix.com>
To: "Michael S. Tsirkin" <mst@...hat.com>,
<linux-kernel@...r.kernel.org>
CC: Peter Zijlstra <peterz@...radead.org>,
Arnd Bergmann <arnd@...db.de>, <linux-arch@...r.kernel.org>,
Andrew Cooper <andrew.cooper3@...rix.com>,
Russell King - ARM Linux <linux@....linux.org.uk>,
<virtualization@...ts.linux-foundation.org>,
Stefano Stabellini <stefano.stabellini@...citrix.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>, "H. Peter Anvin" <hpa@...or.com>,
Joe Perches <joe@...ches.com>,
David Miller <davem@...emloft.net>,
<linux-ia64@...r.kernel.org>, <linuxppc-dev@...ts.ozlabs.org>,
<linux-s390@...r.kernel.org>, <sparclinux@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-metag@...r.kernel.org>, <linux-mips@...ux-mips.org>,
<x86@...nel.org>, <user-mode-linux-devel@...ts.sourceforge.net>,
<adi-buildroot-devel@...ts.sourceforge.net>,
<linux-sh@...r.kernel.org>, <linux-xtensa@...ux-xtensa.org>,
<xen-devel@...ts.xenproject.org>,
"Konrad Rzeszutek Wilk" <konrad.wilk@...cle.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Julien Grall <julien.grall@...rix.com>,
"Ross Lagerwall" <ross.lagerwall@...rix.com>,
Stefano Stabellini <stefano.stabellini@...rix.com>,
Wei Liu <wei.liu2@...rix.com>
Subject: Re: [PATCH v3 39/41] xen/events: use virt_xxx barriers
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 <david.vrabel@...rix.com>
> Signed-off-by: Michael S. Tsirkin <mst@...hat.com>
Acked-by: David Vrabel <david.vrabel@...rix.com>
David
Powered by blists - more mailing lists