From: Zachary Amsden Subject: Re: [RFC PATCH 07/35] Make LOAD_OFFSET defined by subarch Date: Wed, 10 May 2006 16:28:51 -0700 Message-ID: <44627733.4010305@vmware.com> References: <20060509084945.373541000@sous-sol.org> <20060509085150.509458000@sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060509085150.509458000@sous-sol.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Wright Cc: virtualization@lists.osdl.org, Christian Limpach , xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org, Ian Pratt List-Id: xen-devel@lists.xenproject.org Chris Wright wrote: > Change LOAD_OFFSET so that the kernel has virtual addresses in the elf header fields. > > Unlike bare metal kernels, Xen kernels start with virtual address > management turned on and thus the addresses to load to should be > virtual addresses. This patch interferes with using a traditional bootloader. The loader for Xen should be smarter - it already has VIRT_BASE from the xen_guest section, and can simply add the relocation to these header fields. This is unnecessary, and one of the many reasons a Xen kernel can't run in a normal environment. Zach