From: Tim Deegan Subject: Re: [PATCH] xen: arm: clear the exclusive monitor on exception return Date: Fri, 19 Jul 2013 18:06:13 +0100 Message-ID: <20130719170613.GA10092@ocelot.phlegethon.org> References: <1374059931-7508-1-git-send-email-ian.campbell@citrix.com> <20130717194821.GC80836@ocelot.phlegethon.org> <1374136284.26728.39.camel@kazak.uk.xensource.com> <20130718164825.GB94768@ocelot.phlegethon.org> <1374220414.26728.115.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: <1374220414.26728.115.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, xen-devel@lists.xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org At 08:53 +0100 on 19 Jul (1374224014), Ian Campbell wrote: > On Thu, 2013-07-18 at 17:48 +0100, Tim Deegan wrote: > > At 09:31 +0100 on 18 Jul (1374139884), Ian Campbell wrote: > > > As well as atomics our spin unlock (also inherited) is just a plain > > > store. > > > > Well, we already avoid having locks shared between interrupt/exception > > handlers and plain code, > > We do? Plain code can use the irqsave/restore variants if it wants to > coexist with irq handlers which take the same locks, can't they? e.g. > the gic lock is handled this way... If that's not valid then we might > have a problem ;-) Yes, but the irqsave variants are there explicitly to avoid the case where irq-disabled code touches a spinlock that plain code might be spinning on. I guess officially there's nothing stopping irq-disabled code from _unlocking_ a plain-code spinlock, so this covers that case. :) Tim.