From: Tim Deegan Subject: Re: [PATCH] switch hypercall restart indication from -EAGAIN to -ERESTART Date: Thu, 15 May 2014 13:24:09 +0200 Message-ID: <20140515112409.GD40104@deinos.phlegethon.org> References: <5370EDB40200007800011718@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wktlp-0006iY-PL for xen-devel@lists.xenproject.org; Thu, 15 May 2014 11:24:17 +0000 Content-Disposition: inline In-Reply-To: <5370EDB40200007800011718@mail.emea.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: Kevin Tian , Keir Fraser , suravee.suthikulpanit@amd.com, Ian Jackson , Eddie Dong , Ian Campbell , Stefano Stabellini , Aravind Gopalakrishnan , Jun Nakajima , xen-devel , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org At 14:50 +0100 on 12 May (1399902612), Jan Beulich wrote: > -EAGAIN being a return value we want to return to the actual caller in > a couple of cases makes this unsuitable for restart indication, and x86 > already developed two cases where -EAGAIN could not be returned as > intended due to this (which is being fixed here at once). > > Signed-off-by: Jan Beulich Definitely an improvement on what's there, so: Reviewed-by: Tim Deegan Some of the paths are a bit complex now, e.g. a preemption point being reported as EINTR by __put_page_type(), translated to ERESTART by relinquish_memory(), then to EAGAIN by domain_kill(). Are there cases where we want to return EINTR to the guest, or could we maybe use it everywhere and drop ERESTART? Tim.