All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Jan Beulich <JBeulich@novell.com>
Cc: Xen devel list <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Elf loader fixes
Date: Wed, 22 Feb 2006 14:33:51 +0100	[thread overview]
Message-ID: <43FC683F.1050801@suse.de> (raw)
In-Reply-To: <43FC6C62.76F0.0078.0@novell.com>

Jan Beulich wrote:
> I'm afraid this won't work for 64-bits, because of the way the vsyscall page gets set up there. If you dump the program
> headers you'll see that the respective segment is at an address close to the top of the address space, which would make
> the image appear to need nearly 2 Gb of memory (making the load fail if there's less than that available to the
> domain).

Yep, will not work work as-is, the domain builder needs more fixes for that.

> Also, I'm unclear why you need to make persistent the physical address information for the dom0 case, and hence why the
> bug compatibility hack is needed there.

Well, the libxc loader needs it to be able to load both old kernels and
kernels with correct physical addresses in the phdr.

The dom0 loader doesn't really need it, at least on x32, right now it
doesn't look at the physical addresses anyway.  Instead it depends on
the VIRT_BASE hack to get it right.  It's sort of documentation only ;)

For x64 it will certainly be needed to get the memory size calculations
right (use physical not virtual addresses) and fix the issue you've
outlined above that way.

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-02-22 13:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-22 11:37 [PATCH] Elf loader fixes Gerd Hoffmann
2006-02-22 12:51 ` Jan Beulich
2006-02-22 13:33   ` Gerd Hoffmann [this message]
2006-02-22 15:12   ` Gerd Hoffmann
2006-02-22 15:30     ` Jan Beulich
2006-02-22 16:10       ` Gerd Hoffmann
2006-02-22 16:11         ` Ronald G Minnich
2006-02-22 16:25         ` Jacob Gorm Hansen
     [not found] <E1F6x4v-0001lS-2n@host-192-168-0-1-bcn-london>
2006-02-22 18:17 ` Joe Bonasera
2006-02-23 11:15   ` Gerd Hoffmann
2006-03-01  9:48     ` Christian Limpach
2006-03-01 15:00       ` Gerd Hoffmann
2006-03-06 13:40       ` 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=43FC683F.1050801@suse.de \
    --to=kraxel@suse.de \
    --cc=JBeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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.