From: "Jan Beulich" Subject: Re: [PATCH xen v2] xen: arm: fully implement multicall interface. Date: Tue, 08 Apr 2014 08:13:21 +0100 Message-ID: <5343BDB10200007800006687@nat28.tlf.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1396883924.22845.132.camel@kazak.uk.xensource.com> Content-Disposition: inline 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: 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 07.04.14 at 17:18, wrote: > On Mon, 2014-04-07 at 16:13 +0100, Jan Beulich wrote: >> >> On x86 we actually decided quite a long while ago to try to avoid >> >> domain_crash_synchronous() whenever possible. > > I meant to ask why this was? > > I'm supposing that the for(;;) do_softirqs is not considered very > nice... That plus it misguides you into not writing proper error path code. >> You'd want to return some error indication, avoid anything else to be >> done that might confusion on a dead domain (read: abort the entire >> multicall), > > Hrm, that will involve frobbing around with the common do_multicall code > since it currently doesn't consider the possibility of do_multicall_call > failing in a fatal way. But then again - is there anything wrong with actually carrying out the multicall (with truncated arguments), resulting in the domain dying only slightly later? >> and on the hypercall exit path the vCPU would be taken off >> the scheduler, i.e. you run your normal call tree to completion and >> you're guaranteed that the vCPU in question won't make it back into >> guest context. > > What about other vcpus? I suppose they get nobbled as and when they > happen to enter the hypervisor? Sure - via domain_shutdown() they all get vcpu_pause_nosync()'ed, i.e. they're being forced into the hypervisor if not already there. Jan