From: Ian Campbell Subject: Re: [PATCH xen v2] xen: arm: fully implement multicall interface. Date: Tue, 8 Apr 2014 14:14:03 +0100 Message-ID: <1396962843.22845.228.camel@kazak.uk.xensource.com> References: <1396874925-751-1-git-send-email-ian.campbell@citrix.com> <5342C3E1020000780000632D@nat28.tlf.novell.com> <1396878166.22845.97.camel@kazak.uk.xensource.com> <5342DC9E02000078000063FC@nat28.tlf.novell.com> <1396883924.22845.132.camel@kazak.uk.xensource.com> <5343BDB10200007800006687@nat28.tlf.novell.com> <1396955902.22845.217.camel@kazak.uk.xensource.com> <5343F9BF02000078000069BF@nat28.tlf.novell.com> <1396957164.22845.223.camel@kazak.uk.xensource.com> <534411070200007800006A69@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534411070200007800006A69@nat28.tlf.novell.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: Jan Beulich Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, George Dunlap , julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-04-08 at 14:08 +0100, Jan Beulich wrote: > >>> On 08.04.14 at 13:39, wrote: > > Actually, you mentioned preempt. Does calling domain_crash() cause > > hypercall_preempt_check to return true? In that case do_multicall > > already does the right thing. That would involve domain_crash either > > causing a softirq or an evtchn upcall, which I don't see it doing > > though. Perhaps just adding a d->is_shutting_down check alongside the > > preempt check in the multicall would do the trick. > > Good point. And yes, a softirq is being raised implicitly: > domain_shutdown() calls vcpu_pause_nosync() for all the domain's > vCPU-s, which - via vcpu_sleep_nosync() - reaches the ->sleep() > callback of the individual schedulers, all of which raise the schedule > softirq if the subject vCPU is the one they're running on. That's good enough for me, I'll switch to domain_crash+return without worrying about the rest of the entries messing up the console. Cheers, Ian.