From: "Jan Beulich" Subject: Re: [PATCH v2 7/8] xen: arm: use superpages in p2m when pages are suitably aligned Date: Mon, 16 Jun 2014 09:26:37 +0100 Message-ID: <539EC65D020000780001A818@mail.emea.novell.com> References: <1402504640.16332.50.camel@kazak.uk.xensource.com> <1402504804-29173-7-git-send-email-ian.campbell@citrix.com> <5398D5F6.1080707@linaro.org> <1402558252.31087.63.camel@dagon.hellion.org.uk> <53996C2C.4000900@linaro.org> <1402668515.25661.8.camel@kazak.uk.xensource.com> <539B38B2.2080105@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <539B38B2.2080105@linaro.org> 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: Julien Grall Cc: tim@xen.org, xen-devel@lists.xen.org, Keir Fraser , Ian Campbell , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 13.06.14 at 19:45, wrote: > On 13/06/14 15:08, Ian Campbell wrote: >> On Thu, 2014-06-12 at 10:00 +0100, Julien Grall wrote: >>> >>> On 12/06/14 08:30, Ian Campbell wrote: >>>> On Wed, 2014-06-11 at 23:19 +0100, Julien Grall wrote: >>>>> Hi Ian, >>>>> >>>>> While I was looking closer to this patch I found something strange. Why >>>>> all the callers of guest_physmap_add_page in the directory common don't >>>>> check that the function success to create the mapping? >>>> >>>> "directory common"? I don't get your meaning. >>> >>> Sorry, I meant xen/common/ >> >> I don't know the answer then. > > CC Jan and Keir. I hope one of them have a clue on this. The answer is likely the usual one: When this code got added, not enough care was taken to deal with possible errors. Adding error handling where it's missing is always a welcome thing. Jan