From: Ian Campbell Subject: Re: [PATCH 2/2] xen/arm: implement smp_call_function Date: Tue, 16 Apr 2013 12:04:26 +0100 Message-ID: <1366110266.8399.168.camel@zakaz.uk.xensource.com> References: <1366044655-12353-1-git-send-email-julien.grall@citrix.com> <1366044655-12353-3-git-send-email-julien.grall@citrix.com> <1366104246.8399.130.camel@zakaz.uk.xensource.com> <516D2E02.8000003@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <516D2E02.8000003@citrix.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: Julien Grall Cc: Stefano Stabellini , "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-04-16 at 11:54 +0100, Julien Grall wrote: > On 04/16/2013 10:24 AM, Ian Campbell wrote: > > > On Mon, 2013-04-15 at 17:50 +0100, Julien Grall wrote: > >> Signed-off-by: Julien Grall > > > > This code is mostly copied from x86, perhaps we can just make it common > > code? > > > Indeed. > > > If we are going to duplicate it then can we at least make > > on_selected_cpus behave semantically the same. The x86 version handles > > masks which include the local processor explicitly, since interrupts are > > disabled I don't think we can rely on taking the interrupt locally, so > > as it stands the code will deadlock if you pass in the current cpu? > > > At the beginning of on_selected_cpus, we check that the interrupts are > enabled. Even, when the SGI is sent interrupts are not disabled. So > the code shouldn't deadlock. Ooops, right, I read the ASSERT wrongly and/or had the previous patch still in my head... Ian.