From: Stefano Stabellini Subject: Re: [PATCH v6 4/5] xen: introduce XENMEM_exchange_and_pin and XENMEM_unpin Date: Mon, 30 Sep 2013 13:30:03 +0100 Message-ID: References: <1380298560-29352-4-git-send-email-stefano.stabellini@eu.citrix.com> <5249462002000078000F7E33@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VQcch-0001Yz-Vy for xen-devel@lists.xenproject.org; Mon, 30 Sep 2013 12:30:48 +0000 In-Reply-To: <5249462002000078000F7E33@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: xen-devel , tim@xen.org, keir@xen.org, Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 30 Sep 2013, Jan Beulich wrote: > >>> On 27.09.13 at 18:15, Stefano Stabellini wrote: > > Changes in v6: > > - do not change error paths; > > - crash the guest on pinning failure; > > Isn't that a little harsh? I agree that this is harsh, but it's quite difficult to undo the page exchange that was previously done up to the point of failure. And a pinning error can only be caused by a misbehaviour of the guest. Overall this is a simple solution to a difficult problem. I'll make the changes according to all the comments, thanks.