From: "Jan Beulich" Subject: Re: [V1 PATCH 04/11] PVH dom0: create update_memory_mapping() function Date: Tue, 12 Nov 2013 16:12:13 +0000 Message-ID: <5282616D02000078001028A4@nat28.tlf.novell.com> References: <1383960215-22444-1-git-send-email-mukesh.rathor@oracle.com> <1383960215-22444-5-git-send-email-mukesh.rathor@oracle.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 1VgGZe-0007Xb-My for xen-devel@lists.xenproject.org; Tue, 12 Nov 2013 16:12:18 +0000 In-Reply-To: <1383960215-22444-5-git-send-email-mukesh.rathor@oracle.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: Mukesh Rathor Cc: xen-devel , keir.xen@gmail.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 09.11.13 at 02:23, Mukesh Rathor wrote: > Note, iomem_access_permitted can't be moved to the function > because current doesn't point to dom0 in construct_dom0. And it would be rather pointless to try to check this. For Dom0 you just need to make sure you don't call the function for inappropriate ranges. > +static long update_memory_mapping(struct domain *d, unsigned long gfn, Is there any code path really returning something that doesn't fit in an int? > + unsigned long mfn, unsigned long nr_mfns, > + bool_t add) > +{ > + unsigned long i; > + long ret; Same question here. Jan