All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Fix ELF entry point (i386)
Date: Tue, 07 Mar 2006 14:41:43 +0100	[thread overview]
Message-ID: <440D8D97.6000300@suse.de> (raw)
In-Reply-To: <m1r75f8k21.fsf@ebiederm.dsl.xmission.com>

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

cheers,

  Gerd

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

  reply	other threads:[~2006-03-07 13:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-22 11:09 [PATCH] Fix ELF entry point (i386) 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 [this message]
2006-03-07 17:55         ` Eric W. Biederman
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=440D8D97.6000300@suse.de \
    --to=kraxel@suse.de \
    --cc=ebiederm@xmission.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.