From: Will Deacon Subject: Re: [PATCH 2/3] xen/arm64: resync atomics and spinlock asm with Linux Date: Mon, 29 Jul 2013 19:05:49 +0100 Message-ID: <20130729180549.GO32383@mudshark.cambridge.arm.com> References: <1374247170.13645.100.camel@kazak.uk.xensource.com> <1374247210-20994-2-git-send-email-ian.campbell@citrix.com> <20130729160244.GM37169@ocelot.phlegethon.org> <1375114382.11701.21.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1375114382.11701.21.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "julien.grall@citrix.com" , Catalin Marinas , "stefano.stabellini@eu.citrix.com" , Tim Deegan , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, Jul 29, 2013 at 05:13:02PM +0100, Ian Campbell wrote: > On Mon, 2013-07-29 at 17:02 +0100, Tim Deegan wrote: > > But I don't understand the new 'memory' clobbers around in this patch. > > Or rather, I don't understand why there are memory clobbers but not > > DMBs. The acquire/release instructions imply half barriers, but GCC may still re-order instructions across them unless we include the memory clobber. Will