From: Gerd Knorr <kraxel@suse.de>
To: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com, Michael Vrable <mvrable@cs.ucsd.edu>
Subject: Re: Shadow Code Reorganization
Date: 26 Jul 2005 14:44:29 +0200 [thread overview]
Message-ID: <87u0ihwxci.fsf@bytesex.org> (raw)
In-Reply-To: <A95E2296287EAD4EB592B5DEEFCE0E9D28275D@liverpoolst.ad.cl.cam.ac.uk>
"Ian Pratt" <m+Ian.Pratt@cl.cam.ac.uk> writes:
> The shadow32.c file (formerly shadow.c) still exists because it's had
> more testing than the new file, and we want both in the tree until we're
> convinced there's been no regression between the two. We'll then delete
> shadow32 and compile shadow.c in 32 bit mode. Base any new development
> on the new shadow.c
While we are at it and I'll go work on shadow mode as well soon some
followup questions ;)
* "normal" shadow mode is almost identical to shadow mode off,
i.e. the guest does machine<=>phys translations. The guest hasn't
to mark pages containing page tables r/o because xen can do that in
the shadow tables.
* In "translated" shadow mode the guest kernel handles a linear
physical address space starting at addr zero and xen does the
machine<=>phys translations when copying guest tables into the
shadow page tables.
* "external" is translated shadow mode + separated address space,
i.e. no hypervisor window in the address space, used for vt.
Correct so far?
Enabling/switching shadow modes works by dropping all shadow tables,
start with a zero-ed toplevel page directory (almost, except
hypervisor window) and update the shadow pagetable tree as faults are
coming in. Correct?
But it's not clear to me how the transition between "normal" and
"translated" shadow mode works. Does that need support by the guest
os?
Gerd
--
panic("it works"); /* avoid being flooded with debug messages */
next prev parent reply other threads:[~2005-07-26 12:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 21:53 Shadow Code Reorganization Ian Pratt
2005-07-26 12:44 ` Gerd Knorr [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-07-27 9:51 Ian Pratt
2005-07-26 21:15 Ian Pratt
2005-07-27 7:27 ` Gerd Knorr
2005-07-24 20:42 Michael Vrable
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=87u0ihwxci.fsf@bytesex.org \
--to=kraxel@suse.de \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=mvrable@cs.ucsd.edu \
--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.