From: Ian Campbell Subject: Re: [RFC 01/19] xen/arm: guest_physmap_remove_page: Print a warning if we fail to unmap the page Date: Thu, 3 Jul 2014 11:52:18 +0100 Message-ID: <1404384738.14865.67.camel@kazak.uk.xensource.com> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> <1402935486-29136-2-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X2eco-0004wl-F9 for xen-devel@lists.xenproject.org; Thu, 03 Jul 2014 10:52:22 +0000 In-Reply-To: <1402935486-29136-2-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2014-06-16 at 17:17 +0100, Julien Grall wrote: > The function guest_physmap_remove_page does't have a return value. With > the change "arch/arm: add consistency check to REMOVE p2m changes", > apply_p2m_changes can unlikely fail. Looking at v9 of that patch I don't see it adding any new failures, is this comment (I suppose written against an older version) still accurate? > Warn the user in this case. Given that apply_p2m_changes can fail it seems reasonable to log regardless of the above: Acked-by: Ian Campbell Two questions: Would it be better to instead ensure that apply_p2m_changes always logs on failure? I suppose it would be more able to give a specific message. On failure do we retain any reference counts to prevent these pages getting reused? Ian.