From: Gerd Knorr <kraxel@bytesex.org>
To: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: [patch] pagetable cleanups
Date: Thu, 14 Apr 2005 17:01:50 +0200 [thread overview]
Message-ID: <20050414150150.GA28071@bytesex> (raw)
In-Reply-To: <E1DM3Pa-0002e4-00@mta1.cl.cam.ac.uk>
On Thu, Apr 14, 2005 at 01:25:19PM +0100, Michael A Fetterman wrote:
> Overall, I think the patch looks pretty good...
>
> A couple of comments:
>
> 1) There's no Signed-Off-By comment attached to this. Could you please
> provide one?
Yes, thats easy ;)
> 2) About your question at the bottom of construct_dom0: The current
> code there is intended to allow booting of dom0's with translate mode
> enabled. As such, it probably won't stay in the code base forever,
> but it was and is a useful hack.
Ah, ok.
> I'd like to just remove the halt you added there, OK?
Fine with me, I've added your changes instead.
> 3) HL2 tables are not tables of L2 entries. They contain L1 entries.
> They are essentially shadows of guest L2 pages, which will be used by
> Xen to get a linear-pagetable-like mapping of the guest's L1 pages.
Ah, *thats* the point of these beasts. The page manipulations done on
them look like l2 operations (well, they actually are as they really
point to l1 pages), that confused me ;)
> 4) There was probably a bunch of debate about this somewhere before,
> but I missed it. The macros which set/clear page table types don't
> obey C's pass-by-value calling semantics. That means that they can't
> be replaced with simple functions, if desired -- there would always
> have to be a macro layer.
Yep, I noticed that as well as the PAE versions became a bit more
complex and I tried to make them inline functions instead which didn't
work ...
I can change them to pass-by-reference instead, it's probably a good
idea. Hope gcc is clever enougth to see that it's the same after all
and doesn't generate extra code then.
> There's also no macros for creating L1E or L2E as expressions -- only
> statements which assign them. Perhaps this was intentional? It means
> that you end up declaring extra variables to hold essentially
> temporary values in a few places...
Yes, was intentionally. I think that isn't bad, it makes the code more
readable. And I think it actually is impossible to return structs in C,
you can only return a pointer to a struct, which would't help for the
"building entries as expressions" case.
> 5) I found a couple compilation problems when by compiling with debug=y...
Merged, thanks.
Current patch set is at http://dl.bytesex.org/patches/xen-2/ now
(issue #4 isn't adressed yet).
Gerd
next prev parent reply other threads:[~2005-04-14 15:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 18:58 [patch] pagetable cleanups Gerd Knorr
2005-04-14 12:25 ` Michael A Fetterman
2005-04-14 15:01 ` Gerd Knorr [this message]
2005-04-14 14:48 ` Mark Williamson
2005-04-14 18:27 ` Hollis Blanchard
2005-04-14 19:07 ` Anthony Liguori
2005-04-14 19:20 ` Hollis Blanchard
2005-04-14 19:30 ` Gerd Knorr
2005-04-14 16:47 ` Christian Limpach
-- strict thread matches above, loose matches on Subject: below --
2005-04-14 14:14 Ian Pratt
2005-04-14 15:11 Ian Pratt
2005-04-14 15:31 ` Gerd Knorr
2005-04-14 19:33 Ian Pratt
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=20050414150150.GA28071@bytesex \
--to=kraxel@bytesex.org \
--cc=Michael.Fetterman@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.