Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751498AbbBXGPE (ORCPT ); Tue, 24 Feb 2015 01:15:04 -0500 Received: from cantor2.suse.de ([195.135.220.15]:38777 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbbBXGPC (ORCPT ); Tue, 24 Feb 2015 01:15:02 -0500 Message-ID: <54EC16E4.4060207@suse.com> Date: Tue, 24 Feb 2015 07:15:00 +0100 From: Juergen Gross User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: David Vrabel , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, konrad.wilk@oracle.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com Subject: Re: [Xen-devel] [PATCH 05/13] xen: simplify xen_set_identity_and_remap() by using global variables References: <1424242326-26611-1-git-send-email-jgross@suse.com> <1424242326-26611-6-git-send-email-jgross@suse.com> <54E6270E.6040105@cantab.net> In-Reply-To: <54E6270E.6040105@cantab.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 28 On 02/19/2015 07:10 PM, David Vrabel wrote: > > > On 18/02/2015 06:51, Juergen Gross wrote: >> xen_set_identity_and_remap() is used to prepare remapping of memory >> conflicting with the E820 map. It is tracking the pfn where to remap >> new memory via a local variable which is passed to a subfunction >> which in turn returns the new value for that variable. >> >> Additionally the targeted maximum pfn is passed as a parameter to >> sub functions. >> >> Simplify that construct by using just global variables in the >> source for that purpose. This will make things simpler when we need >> those values later, too. > > I'm not convinced this actually simplifies anything. Perhaps I should have emphasised the last sentence a bit more. I really need the global variables when deferring the remap operation. Juergen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/