From: Ian Campbell Subject: Re: [PATCH] xen/arm: Allocate memory for dom0 from the bottom with the 1:1 Workaround Date: Thu, 24 Oct 2013 15:05:18 +0100 Message-ID: <1382623518.22417.102.camel@hastur.hellion.org.uk> References: <1382439108-3669-1-git-send-email-julien.grall@linaro.org> <1382441211.18283.4.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1382441211.18283.4.camel@hastur.hellion.org.uk> 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: xen-devel@lists.xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, patches@linaro.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-10-22 at 12:26 +0100, Ian Campbell wrote: > On Tue, 2013-10-22 at 11:51 +0100, Julien Grall wrote: > > On Linux, the option CONFIG_ARM_PATCH_PHYS_VIRT (by default enabled) allows > > the Kernel to be loaded anywhere (or nearly) by patching the translation > > pv<->virt at boot time. > > > > The current solution in Linux assuming that the delta physical address - > > virtual address is always negative. A positive delta will destroy all the > > optimisation to modify only a part of the translation instruction (add/sub). > > > > By default, Xen is allocating memory from the top of memory and then > > goes down. To avoid booting issue with Linux, we must allocate memory > > from the bottom (ie starting from 0). > > > > Signed-off-by: Julien Grall > > Acked-by: Ian Campbell Applied.