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-devel

Re: [Xen-devel] [PATCH] Elf loader fixes

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Elf loader fixes
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 22 Feb 2006 17:10:42 +0100
Cc: Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 22 Feb 2006 16:10:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43FC919C.76F0.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <43FC4CF6.2010603@xxxxxxx> <43FC6C62.76F0.0078.0@xxxxxxxxxx> <43FC7F59.7030503@xxxxxxx> <43FC919C.76F0.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5 (X11/20060111)
>> The elf kernel loader certainly doesn't look like it cares much
>> about virtual address (other than VIRT_BASE) ...
> 
> Correct. And the same applies to boot loaders.

Well, the difference between xen and other boot loaders is that xen
boots the kernel with paging already enabled ...

Right now it's completely broken: the loader works only with virtual
addresses in the paddr header field.  It can't stay that way, especially
if we'll want to have kexec working with xenlinux kernels some day ;)

As I see things there are basically two ways to fixup this: Either
create a simple linear mapping using paddr + VIRT_BASE, which would be
pretty close to the current behaviour (and other boot loaders). Or do a
complete virtual memory setup, which probably can't be done without
major changes in the domain builder ...

cheers,

  Gerd

-- 
Gerd 'just married' Hoffmann <kraxel@xxxxxxx>
I'm the hacker formerly known as Gerd Knorr.
http://www.suse.de/~kraxel/just-married.jpeg

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