From: Ian Jackson Subject: Re: [PATCH v5 6/9] tools: arm: prepare domain builder for multiple banks of guest RAM Date: Thu, 22 May 2014 17:52:59 +0100 Message-ID: <21374.11115.834420.653586@mariner.uk.xensource.com> 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" 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 Cc: xen-devel@lists.xen.org, julien.grall@linaro.org, tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH v5 6/9] tools: arm: prepare domain builder for multiple banks of guest RAM"): > 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: Ian Jackson Ian.