From: Wei Liu Subject: Re: [RFC][PATCH 10/13] tools: extend XENMEM_set_memory_map Date: Mon, 13 Apr 2015 12:02:31 +0100 Message-ID: <20150413110231.GD17670@zion.uk.xensource.com> References: <1428657724-3498-1-git-send-email-tiejun.chen@intel.com> <1428657724-3498-11-git-send-email-tiejun.chen@intel.com> <20150410100132.GB16939@zion.uk.xensource.com> <552B256F.2060400@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <552B256F.2060400@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: "Chen, Tiejun" Cc: kevin.tian@intel.com, Wei Liu , ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, JBeulich@suse.com, yang.z.zhang@intel.com, Ian.Jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, Apr 13, 2015 at 10:09:51AM +0800, Chen, Tiejun wrote: [...] > >Hardcoded value? > > Yes. Actually, we intend to use this to present that lowmem entry, > > tools/firmware/hvmloader/e820.c: > > /* Low RAM goes here. Reserve space for special pages. */ > ... > e820[nr].addr = 0x100000; > I don't like the idea of having two hardcoded values in different locations. Please put this value into a header file and reference it here and in hvmloader. Wei.