From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLUnM-0007NT-FI for qemu-devel@nongnu.org; Fri, 09 Jan 2009 22:45:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLUnK-0007MT-Sx for qemu-devel@nongnu.org; Fri, 09 Jan 2009 22:45:56 -0500 Received: from [199.232.76.173] (port=47671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLUnK-0007MQ-N9 for qemu-devel@nongnu.org; Fri, 09 Jan 2009 22:45:54 -0500 Received: from bart.se.axis.com ([195.60.68.10]:34809) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLUnK-0007GI-Ay for qemu-devel@nongnu.org; Fri, 09 Jan 2009 22:45:54 -0500 Received: from bart.se.axis.com (bart.se.axis.com [127.0.0.1]) by bart.se.axis.com (Postfix) with ESMTP id 958F06402F for ; Sat, 10 Jan 2009 04:45:50 +0100 (CET) Received: from axis.com (edgar.se.axis.com [10.93.151.1]) by bart.se.axis.com (Postfix) with ESMTP id 7EA4F64025 for ; Sat, 10 Jan 2009 04:45:50 +0100 (CET) Date: Sat, 10 Jan 2009 04:45:50 +0100 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [PATCH][RFC] elf loader: use the virtual address Message-ID: <20090110034550.GA26952@edgar.se.axis.com> References: <20090109154756.GA27086@volta.aurel32.net> <761ea48b0901090757j7277ecbfo74dd1b6415fbeaa8@mail.gmail.com> <49677A28.5030602@aurel32.net> <200901091638.59346.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200901091638.59346.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno On Fri, Jan 09, 2009 at 03:38:58PM -0800, Paul Brook wrote: > > For PowerPC, the kernel needs to be started with address translation > > enabled (that's even true for the firmware), and thus the kernel loaded > > at the virtual address. > > This sounds wrong. I agree. It sounds to me like if powerpc linux changed their linking to produce elf files with correct physical addresses and that makes it hard for qemu to support both the new and the old images. Maybe ppc could use the low/highaddr arguments to find out if the kernel objects really needs to use hte -0xc00000000 offset or no? my guess is that older kernels need that offset but that the newer ones dont.