From: ebiederm@xmission.com (Eric W. Biederman)
To: Gerd Hoffmann <kraxel@suse.de>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Fix ELF entry point (i386)
Date: Tue, 07 Mar 2006 10:55:24 -0700 [thread overview]
Message-ID: <m1y7zm16nn.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <440D8D97.6000300@suse.de> (Gerd Hoffmann's message of "Tue, 07 Mar 2006 14:41:43 +0100")
Gerd Hoffmann <kraxel@suse.de> writes:
>> Currently my assumptions are:
>>
>> Standalone executables load at the physical not the virtual addresses.
>> Standalone executables start executing at a physical address and not at
>> a virtual address.
>
> Well, that is true for real hardware. xen guest kernels are booted with
> paging already enabled and thus the entry point is in virtual memory,
> and I'm trying to figure how to handle that best (both for initial boot
> and kexec).
>
> xen uses a special xen header anyway to give the domain builder a hint
> how the initial page tables should look like (they look simliar to what
> head.S creates on real hardware). That can also be used to figure the
> correct virtual entry point from the physical one. It probably even
> makes more sense to do that (instead of writing the virtual address into
> the entry point) as the xen domain builder doesn't look at the virtual
> addresses in the ELF headers too. It uses PAGE_OFFSET+paddr instead.
> That keeps the differences between real and virtual hardware small ...
Ok. The unmerged Xen case.
I have some pending patches that make a bzImage a ET_DYN executable.
Would that be interesting to you? Especially if that would just mean
your initial page tables got to set physical == virtual?
I believe Xen does expose the actual physical addresses to the guest.
Either that or this is a case where Xen probably needs to take a
different path in the build system.
Eric
next prev parent reply other threads:[~2006-03-07 17:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-22 11:09 Gerd Hoffmann
2006-03-05 16:34 ` Eric W. Biederman
2006-03-06 13:16 ` Gerd Hoffmann
2006-03-06 19:11 ` Eric W. Biederman
2006-03-07 13:41 ` Gerd Hoffmann
2006-03-07 17:55 ` Eric W. Biederman [this message]
2006-03-10 9:58 ` Gerd Hoffmann
2006-05-11 13:05 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1y7zm16nn.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome