From: Hollis Blanchard <hollisb@us.ibm.com>
To: Ewan Mellor <ewan@xensource.com>
Cc: xen-ia64-devel <xen-ia64-devel@lists.xensource.com>,
xen-devel <xen-devel@lists.xensource.com>,
xen-ppc-devel <xen-ppc-devel@lists.xensource.com>
Subject: architecture-specific stuff in xend
Date: Tue, 08 Aug 2006 10:34:25 -0500 [thread overview]
Message-ID: <1155051266.30116.152.camel@basalt.austin.ibm.com> (raw)
Hi Ewan, I'm almost ready to integrate some PPC-specific stuff into
xend, and I was wondering if you had a plan for how that should work.
First example: the device tree data structure we talked about a few
weeks ago. We will need to pass the config data to PPC code, probably in
XendDomainInfo.initDomain(), and then pass the resulting data structure
into libxc's xc_linux_load() somehow.
As another example, initDomain() already has some architecture hackage
in it for memory allocation. We think we'll need to modify that some
more in the future for PPC, possibly even changing the "order" argument
to xc.domain_memory_increase_reservation().
Rather than having these inline tests everywhere ("if os.uname()[4] in
('ia64', 'ppc64'):"), would it make more sense to have some sort of
"architecture" object, and do things like:
class Architecture:
def init_reservation(self, mem_kb):
return mem_kb
def init_reservation_order(self):
return 0
class ia64_Architecture(Architecture):
def init_reservation(self, mem_kb):
if 'hvm' in xc.xeninfo()['xen_caps']:
mem_kb += 4*1024;
return mem_kb
Sample use in XendDomainInfo.py:
from xen.xend import arch
...
init_reservation = arch.init_reservation(mem_kb)
I'm not sure how/where to instantiate the arch object though.
Does that make sense to you? The Architecture object would expand to
include every piece of arch-specific functionality we run across in the
future.
--
Hollis Blanchard
IBM Linux Technology Center
next reply other threads:[~2006-08-08 15:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 15:34 Hollis Blanchard [this message]
2006-08-08 15:59 ` [XenPPC] Re: [Xen-devel] architecture-specific stuff in xend John Levon
2006-08-08 16:15 ` Hollis Blanchard
2006-08-08 17:12 ` John Levon
2006-08-09 9:28 ` Ewan Mellor
2006-08-09 15:07 ` Hollis Blanchard
2006-08-09 16:18 ` Ewan Mellor
2006-08-10 21:12 ` [PATCH] " Hollis Blanchard
2006-08-10 21:27 ` John Levon
2006-08-11 22:59 ` Daniel Miles
2006-08-14 17:40 ` Hollis Blanchard
2006-08-15 2:14 ` Hollis Blanchard
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=1155051266.30116.152.camel@basalt.austin.ibm.com \
--to=hollisb@us.ibm.com \
--cc=ewan@xensource.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ia64-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.