From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932475AbcAKLMQ (ORCPT ); Mon, 11 Jan 2016 06:12:16 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:50154 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759544AbcAKLMN (ORCPT ); Mon, 11 Jan 2016 06:12:13 -0500 X-IronPort-AV: E=Sophos;i="5.20,552,1444694400"; d="scan'208";a="330353750" Message-ID: <56938E06.9050702@citrix.com> Date: Mon, 11 Jan 2016 11:12:06 +0000 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 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" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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