All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: Simon Kagstrom <simon.kagstrom@bth.se>
Cc: Xen devel list <xen-devel@lists.xensource.com>
Subject: Re: [RFC/patch] domain builder rewrite
Date: Tue, 13 Jun 2006 15:08:05 +0200	[thread overview]
Message-ID: <448EB8B5.5010205@suse.de> (raw)
In-Reply-To: <87hd2pkylj.wl%simon.kagstrom@bth.se>

> This sounds like useful stuff to me :-). A thing which I think would
> be good is to allow more flexible handling of the ELF files. In
> particular, it would be nice if it was possible to arrange the virtual
> address space more freely, i.e., loading an ELF-file like:
> 
>   [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
>   [ 0]                   NULL            00000000 000000 000000 00      0   0  0
>   [ 1] .text             PROGBITS        c0000000 02e000 1d9ce8 00 WAX  0   0 32
>   [ 2] .rodata           PROGBITS        c01d9d00 207d00 05b840 00   A  0   0 32
>   [ 3] header            PROGBITS        c0235540 263540 00004c 00   A  0   0  8
>   [ 4] .kstrtab          PROGBITS        c023558c 26358c 00077a 00   A  0   0  1
>   [ 5] __ksymtab         PROGBITS        c0235d08 263d08 000480 00   A  0   0  4
>   [ 6] .data             PROGBITS        90000000 001000 00d5a8 00  WA  0   0 4096
>   ...

> where the data and code are mapped to different locations in memory.

That is an unrelated problem.  It's certainly possible to do that,
probably even easier in the new framework.  On real hardware boot
loaders usually do _not_ setup that kind mappings though, that is the
job of the OS kernel.  And I think we should to that in xen the same
way, to make porting OS'es as simple as possible and also to keep the
code differences between native and xen guest as small as possible.

> I guess that the hypervisor really doesn't need to know about ELF
> images at all? To me it seems that it should be enough for it to get a
> suspended image built by the domain.

It needs to know to bootstrap domain 0 only, all other domains are
created by the tools, not the hypervisor itself.

cheers,

  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>
http://www.suse.de/~kraxel/julika-dora.jpeg

  reply	other threads:[~2006-06-13 13:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01 14:59 [RFC/patch] domain builder rewrite Gerd Hoffmann
2006-06-13 12:51 ` Simon Kagstrom
2006-06-13 13:08   ` Gerd Hoffmann [this message]
2006-06-13 13:54     ` Anthony Liguori
2006-06-13 15:15       ` 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=448EB8B5.5010205@suse.de \
    --to=kraxel@suse.de \
    --cc=simon.kagstrom@bth.se \
    --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.