WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [patch] calculate dom0 metaphysical load address co

To: Jes Sorensen <jes@xxxxxxx>
Subject: Re: [Xen-ia64-devel] [patch] calculate dom0 metaphysical load address correctly
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 24 May 2007 11:42:56 +0900
Cc: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 May 2007 19:41:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4652E84D.1060407@xxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4652E84D.1060407@xxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Tue, May 22, 2007 at 02:55:41PM +0200, Jes Sorensen wrote:
> This one is needed to handle system where metaphysical doesn't start
> at 0x4000000.

Hi Jes.
elilo tries the physical address given by its elf header at first,
then tries to relocate the image only when administrater allows elilo
to relocate explicitly with warning message.
Although I'm not sure how this relocation affects because Linux/ia64
kernel image is position independent in (pseudo) physical address,
could you try something like the following pseudo code?

        phys_load_offset = 0
        if (rough check elf.pstart in EFI table) {
                if (relocation isn't allowed /* default is not-allowed */)
                        panic();
                warn!
                /*
                 * comment...
                 */
                phys_load_offset = xen_pstart - elf.pstart;
        }

thanks,
-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel