From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Han, Huaitong" Subject: Re: [PATCH V6 4/5] xen/mm: Clean up pfec handling in gva_to_gfn Date: Wed, 27 Jan 2016 10:13:21 +0000 Message-ID: <1453889609.4038.17.camel@intel.com> References: <1453188659-8908-1-git-send-email-huaitong.han@intel.com> <1453188659-8908-5-git-send-email-huaitong.han@intel.com> <20160126143002.GB24854@deinos.phlegethon.org> <1453879352.4038.12.camel@intel.com> <20160127093417.GA38759@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160127093417.GA38759@deinos.phlegethon.org> Content-Language: en-US Content-ID: <9C596CCC3E17584E85F40C911D59AC7F@intel.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: "tim@xen.org" , "george.dunlap@citrix.com" Cc: "andrew.cooper3@citrix.com" , "keir@xen.org" , "wei.liu2@citrix.com" , "jbeulich@suse.com" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2016-01-27 at 09:34 +0000, Tim Deegan wrote: > Hi, > > At 07:22 +0000 on 27 Jan (1453879344), Han, Huaitong wrote: > > On Tue, 2016-01-26 at 14:30 +0000, Tim Deegan wrote: > > > This seems OK. But can you please: > > > - Add this new adjustment once, in paging_gva_to_gfn(), instead > > > of > > > adding it to each implementation; and > > > - Adjust the comment above the declaration of > > > paging_gva_to_gfn() in > > > paging.h to describe this new behaviour. > > Although adding adjustment in paging_gva_to_gfn can reduce code > > duplication, adding it to each implementation is more readable, > > becasue > > other sections of pfec are handled in each implementation. > > True, but since paging_gva_to_gfn() is already non-trivial and this > is a different kind of adjustment, I'd still like it done there. > I'll leave this to George's discretion as x86/mm maintainer. > > But in any case, please add the comment describing the new semantics. To George: What is your opinion on Tim's comment? To Tim: I will update the codes and the comment in patch serial V8. > Cheers, > > Tim.