From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 2/3] xen/domain_page: Convert copy/clear_domain_page() to using mfn_t Date: Wed, 1 Jul 2015 17:09:25 +0100 Message-ID: <559410B5.4070201@citrix.com> References: <1435758095-20821-1-git-send-email-Ben.Catterall@citrix.com> <1435758095-20821-3-git-send-email-Ben.Catterall@citrix.com> <5593F1CC.4040207@citrix.com> <55941029.3050804@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZAKZo-0005II-RZ for xen-devel@lists.xenproject.org; Wed, 01 Jul 2015 16:09:32 +0000 In-Reply-To: <55941029.3050804@citrix.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: David Vrabel , Ben Catterall , xen-devel@lists.xenproject.org Cc: keir@xen.org, ian.campbell@citrix.com, George Dunlap , tim@xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org On 01/07/15 17:07, David Vrabel wrote: > On 01/07/15 14:57, Andrew Cooper wrote: >> On 01/07/15 14:41, Ben Catterall wrote: >>> From: Andrew Cooper >>> >>> Signed-off-by: Andrew Cooper >>> [Convert grant_table.c to pass mfn_t types and fix ARM compiling] >>> >>> Signed-off-by: Ben Catterall >> Reviwed-by: Andrew Cooper for the additions >> beyond my half of the patch. >> >> Also CC'ing George and David as maintainers of areas touched. > For this sort of tree-wide mechanical change I wouldn't generally > expected to need acks/reviews from specific subsystem maintainers. Fair enough. >>> --- a/xen/common/kimage.c >>> +++ b/xen/common/kimage.c >>> @@ -77,7 +77,7 @@ static struct page_info *kimage_alloc_zeroed_page(unsigned memflags) >>> if ( !page ) >>> return NULL; >>> >>> - clear_domain_page(page_to_mfn(page)); >>> + clear_domain_page(_mfn(page_to_mfn(page))); > Seems odd that page_to_mfn() doesn't return the correct type and needs > the "cast". page_to_mfn() and all the other similar helpers are also on the list of stuff needing cleaning up. The intermediate _mfn() call will eventually disappear, but updating everything together is massive task. ~Andrew