From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3Hm6-0000yV-Sq for qemu-devel@nongnu.org; Thu, 20 Nov 2008 17:13:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3Hm5-0000xx-4B for qemu-devel@nongnu.org; Thu, 20 Nov 2008 17:13:22 -0500 Received: from [199.232.76.173] (port=53325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3Hm5-0000xs-06 for qemu-devel@nongnu.org; Thu, 20 Nov 2008 17:13:21 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:38708) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3Hm4-0007G3-Qj for qemu-devel@nongnu.org; Thu, 20 Nov 2008 17:13:20 -0500 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e5.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id mAKMDFoi028421 for ; Thu, 20 Nov 2008 17:13:15 -0500 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mAKMDIGb163060 for ; Thu, 20 Nov 2008 17:13:18 -0500 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mAKMDIwj004091 for ; Thu, 20 Nov 2008 17:13:18 -0500 Received: from [9.53.41.42] (slate.austin.ibm.com [9.53.41.42]) by d01av03.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mAKMDId5003996 for ; Thu, 20 Nov 2008 17:13:18 -0500 Subject: Re: [Qemu-devel] [PATCH 3/5] uImage: return base load address From: Hollis Blanchard In-Reply-To: <4925DF47.3060102@codemonkey.ws> References: <1227209682-28842-1-git-send-email-hollisb@us.ibm.com> <3851918a9532af83d6598e33b527d3cdf30ab98f.1227209336.git.hollisb@us.ibm.com> <4925DF47.3060102@codemonkey.ws> Content-Type: text/plain Date: Thu, 20 Nov 2008 16:13:15 -0600 Message-Id: <1227219195.16341.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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 On Thu, 2008-11-20 at 16:05 -0600, Anthony Liguori wrote: > Hollis Blanchard wrote: > > Return the base address at which the image was loaded so that > callers may keep > > track of currently occupied guest memory. > > > > Why is it that you need this information if no other callers have needed > it before? As far as I can see, other users are making assumptions about maximum kernel size and simply hardcoding some addresses. For example arm_load_kernel() seems to always load the initrd at 8MB, regardless of where the ELF or uImage kernel was loaded. (In the case of a "flat" kernel, that's loaded at 0x1000, and probably isn't bigger than 8MB...) -- Hollis Blanchard IBM Linux Technology Center