From: Gerd Hoffmann <kraxel@suse.de>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: Brendan Cully <brendan@cs.ubc.ca>,
Xen Development Mailing List <xen-devel@lists.xensource.com>,
xen-ppc-devel <xen-ppc-devel@lists.xensource.com>
Subject: Re: [XenPPC] Re: New domain builder in xen-unstable
Date: Thu, 15 Mar 2007 10:54:48 +0100 [thread overview]
Message-ID: <45F917E8.3010202@suse.de> (raw)
In-Reply-To: <1173477936.29309.133.camel@basalt>
Hollis Blanchard wrote:
> I can't just ifdef PowerPC's xc_linux_build back in, because libelf
> doesn't map page-by-page like the old ELF loader did. That means I need
> to pre-map the memory, which starts dragging in xc_dom infrastructure.
You don't need more xc_dom infrastructure, I've tried to make the libelf
bits independant of the xc_dom stoff for exactly that reason.
Have a look at the hvm loader (xc_hvm_build.c). It uses libelf too, it
has a loadelfimage() which maps the memory, calls elf_load_binary,
unmaps again. You could do that too.
Oh, and an example of page-by-page loading using libelf is in
xen/arch/ia64/xen/domain.c.
> What is the difference between dom->shadow_enable and
> xc_dom_feature_translated()?
It's identical now I think. In the early days (before split-off elf
handling code to libelf) I've tried to use the new domain builder for
hvm too, the logic whevener pfn->mfn translation is needed was a bit
more complex than just looking up shadow_enabled.
HTH,
Gerd
--
Gerd Hoffmann <kraxel@suse.de>
prev parent reply other threads:[~2007-03-15 9:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-26 13:43 New domain builder in xen-unstable Keir Fraser
2007-01-26 16:58 ` Hollis Blanchard
2007-01-26 17:04 ` Hollis Blanchard
2007-01-26 17:08 ` Keir Fraser
2007-01-29 13:20 ` Gerd Hoffmann
2007-03-06 20:56 ` Hollis Blanchard
2007-03-07 0:59 ` [XenPPC] " Brendan Cully
2007-03-07 8:27 ` Keir Fraser
2007-03-09 22:05 ` Hollis Blanchard
2007-03-15 9:54 ` Gerd Hoffmann [this message]
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=45F917E8.3010202@suse.de \
--to=kraxel@suse.de \
--cc=brendan@cs.ubc.ca \
--cc=hollisb@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ppc-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.