From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v5 6/9] tools: arm: prepare domain builder for multiple banks of guest RAM Date: Thu, 22 May 2014 11:18:06 +0100 Message-ID: <537DCEDE.3000008@linaro.org> References: <1400751582.11409.46.camel@kazak.uk.xensource.com> <1400752004-9731-6-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400752004-9731-6-git-send-email-ian.campbell@citrix.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: Ian Campbell , tim@xen.org, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Hi Ian, On 22/05/14 10:46, Ian Campbell wrote: > Prepare for adding more banks of guest RAM by renaming a bunch of defines > as RAM0 and replacing variables with arrays and introducing loops. > > Also in preparation switch to using GUEST_RAM0_BASE explicitly instead of > implicitly via dom->rambase_pfn (while asserting that they must be the same). > This makes the multiple bank case cleaner (although it looks a bit odd for > now). > > GUEST_RAM_BASE is defined as the address of the lowest RAM bank, it is used in > tools/libxl/libxl_dom.c to call xc_dom_rambase_init(). > > Lastly for now ramsize (total size) and rambank_size[0] (size of first bank) > are the same, but use the appropriate one for each context. > > Signed-off-by: Ian Campbell Acked-by: Julien Grall -- Julien Grall