From: Ian Campbell Subject: Re: initial ballooning amount on HVM+PoD Date: Mon, 20 Jan 2014 15:23:32 +0000 Message-ID: <1390231412.20516.66.camel@kazak.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W5GhN-0008TI-C3 for xen-devel@lists.xenproject.org; Mon, 20 Jan 2014 15:23:37 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Boris Ostrovsky Cc: George.Dunlap@eu.citrix.com, xen-devel@lists.xenproject.org, keir@xen.org, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-01-20 at 07:19 -0800, Boris Ostrovsky wrote: > ----- Ian.Campbell@citrix.com wrote: > > > > > > > > > I previously had a patch to use memblock_phys_mem_size(), but when > > I saw > > > > Boris switch to get_num_physpages() I thought that would be OK, > > but I > > > > didn't look into it very hard. Without checking I suspect they > > return > > > > pretty much the same think and so memblock_phys_mem_size will have > > the > > > > same issue you observed (which I confess I haven't yet gone back > > and > > > > understood). > > > > > > If there's no reserved memory in that range, I guess ARM might > > > be fine as is. > > > > Hrm I'm not sure what a DTB /memreserve/ statement turns into wrt the > > memblock stuff and whether it is included in phys_mem_size -- I think > > that stuff is still WIP upstream (i.e. the kernel currently ignores > > such > > things, IIRC there was a fix but it was broken and reverted to try > > again > > and then I've lost track). > > > FWIW, when I was looking at this code I also first thought of using > memblock but IIRC I wasn't convinced that we always have > CONFIG_HAVE_MEMBLOCK set so I ended up with physmem_size(). FWIW it's select'd by CONFIG_X86 and CONFIG_ARM and overall by about half of all architectures. So I suppose it depends where your threshold for caring about future architecture ports lies... Ian.