From: Gerd Knorr <kraxel@suse.de>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel List <xen-devel@lists.xensource.com>
Subject: Re: Hypercall interface changes for PAE
Date: Tue, 31 May 2005 22:38:33 +0200 [thread overview]
Message-ID: <20050531203833.GC28168@bytesex> (raw)
In-Reply-To: <e9a279cfe1f147b0d1fdb752f0900a32@cl.cam.ac.uk>
On Tue, May 31, 2005 at 08:23:38PM +0100, Keir Fraser wrote:
>
> On 31 May 2005, at 20:02, Gerd Knorr wrote:
>
> >That certainly would be the way to go if we want to have
> >different interfaces for PAE and non-PAE. I'm not sure it
> >is a good idea to have different hypercall interfaces for
> >PAE and non-PAE cases in the first place.
> >
> >What does this mean for the tools? Would these also be
> >either PAE or non-PAE then?
>
> At least some parts of the tools (e.g., libxc) will need re-building
> for PAE as they know about the structure of pagetables (2-level vs.
> 3-level and so on). Either that or we need to compile both cases into
> the library and auto-switch between implementations of some functions
> at run time. Either way, this problem isn't solved by making the mmu
> hypercalls 'binary compatible' across pae/non-pae.
Disclaimer: Havn't even looked at the tools code yet.
I'd expect with a identical interface we'll only have to add a
PAE-enabled domain builder to boot domU (there are multiple
already anyway, right?), whereas with different interfaces the
split goes down to the shared lib which provides the hypercall
interface to the tools.
Point is I expect it being much easier to switch at runtime
between pae and non-pae in the tools when the hypercall
interface is identical. I might be wrong on this though.
> If we really do care about compatibility across pae/non-pae, I would do
> this by making the pte_val a u64 in all cases rather than splitting pfn
> from flags.
Agreed.
> >What about the option to maybe run non-PAE guests in PAE-xen
> >in some translated shadow mode? That wouldn't work then.
> >I don't think this would be a big problem though ...
>
> I think we can live without this. But even if not then we haven't burnt
> our bridges -- we could redirect those few hypercalls to a very slim
> compatibility layer.
I'd prefeare 64-bit everythere over a compatibility layer.
What about VT/Pacifica btw? As far I know the x86_64 guys plan
to allow 32-bit vmx guests, right? I think to make that work
xen must be able to translate non-PAE page table entries into
x86_64 tables (which are very simliar to PAE). If this
translation code is present anyway it's probably only a small
step to allow non-PAE guests in PAE mode as well. If we get
this almost for free we might just implement it, although I see
this more as a "nice-to-have" feature that something really
important.
Gerd
--
-mm seems unusually stable at present.
-- akpm about 2.6.12-rc3-mm3
next prev parent reply other threads:[~2005-05-31 20:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-30 12:52 network (irq?) problems in unstable Gerd Knorr
2005-05-30 13:36 ` Keir Fraser
2005-05-31 10:18 ` Gerd Knorr
2005-05-31 10:59 ` Keir Fraser
2005-05-31 11:36 ` Gerd Knorr
2005-05-31 18:21 ` Hypercall interface changes for PAE Keir Fraser
2005-05-31 18:26 ` Keir Fraser
2005-05-31 19:02 ` Gerd Knorr
2005-05-31 19:23 ` Keir Fraser
2005-05-31 20:38 ` Gerd Knorr [this message]
2005-05-31 21:18 ` Keir Fraser
2005-05-31 21:40 ` Keir Fraser
2005-05-31 22:25 ` David Hopwood
2005-05-31 18:32 ` Jonathan S. Shapiro
2005-05-31 18:37 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2005-05-31 22:42 Ian Pratt
2005-06-01 9:17 ` Gerd Knorr
2005-06-01 9:30 Ian Pratt
2005-06-01 10:04 ` Keir Fraser
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=20050531203833.GC28168@bytesex \
--to=kraxel@suse.de \
--cc=Keir.Fraser@cl.cam.ac.uk \
--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.