From: Ian Campbell Subject: Re: [PATCH 3/4] xen: arm: rearrange guest physical address space to increase max RAM Date: Wed, 9 Apr 2014 08:59:35 +0100 Message-ID: <1397030375.22845.279.camel@kazak.uk.xensource.com> References: <1396966739.22845.233.camel@kazak.uk.xensource.com> <1396966760-7752-3-git-send-email-ian.campbell@citrix.com> <534411CC.3050904@linaro.org> <1396970537.22845.253.camel@kazak.uk.xensource.com> <53441D4D.70602@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53441D4D.70602@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-04-08 at 17:01 +0100, Julien Grall wrote: > >> Also, can you make sure that the GNTTAB_SIZE is greater or equal to the > >> maximum number of frames (maybe by overriding max_nr_grant_frames)? > > > > It turns out that the current size corresponds to > > DEFAULT_MAX_NR_GRANT_FRAMES, which explains where it came from. > > I know it... a comment in the code here would be great to avoid loosing > 20mins every time we hit this define. Feel free to send a patch. > > If you want to change this to reserve say 1MB of address space (which is > > enough for 256 grant pages) or even more then please send a patch. > > > >> The current implementation on Linux only care about the number of frames > >> given by Xen, the size of the table in the DT is not used. So the range > >> may overlap to something else. > > > > That would be a guest bug, but nothing to do with this series. > > It's not really a guest bug ... we have an hypercall which provides the > GNTTAB size (see gnttab_query_size). > > It returns max_nr_grant_frames which can be modified by the Xen command > line. The tools could query this and use it to size the region, or we could just make the region be more than large enough. Patches welcome. Ian.