From: "Jan Beulich" Subject: Re: [PATCH xen v2] xen: arm: fully implement multicall interface. Date: Tue, 08 Apr 2014 12:29:35 +0100 Message-ID: <5343F9BF02000078000069BF@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> <5343BDB10200007800006687@nat28.tlf.novell.com> <1396955902.22845.217.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: <1396955902.22845.217.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 08.04.14 at 13:18, wrote: > On Tue, 2014-04-08 at 08:13 +0100, Jan Beulich wrote: >> But then again - is there anything wrong with actually carrying >> out the multicall (with truncated arguments), resulting in the >> domain dying only slightly later? > > My concern was that this truncation happens naturally when running on a > 32-bit hypervisor (since the actual hypercall implementations take > 32-bit arguments internally). Meaning that the issue would be hidden > until you move that kernel to a 64-bit hypervisor (with 64-bit hypercall > arguments internally) at which point it mysteriously starts failing > because some previously unnoticed garbage shows up in the top half of > the argument. Right - I understand all that. I wasn't suggesting to remove the domain_crash(), just that by using the non-synchronous variant you'd get the crash at the end of the multicall (or when it gets preempted) instead of at the beginning. The effect to the guest and programmer should be the same - the guest is dead and the programmer (hopefully) goes looking for the problem. Jan