From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
To: tgh <tianguanhua@ncic.ac.cn>
Cc: xen-devel@lists.xensource.com
Subject: Re: question about the meaning of memory auto-translate and paravirtual and no pseudophysical overlay
Date: Sat, 07 Apr 2007 17:23:12 +0100 [thread overview]
Message-ID: <1175962992.12465.11.camel@trevor> (raw)
In-Reply-To: <46145C9C.7060009@ncic.ac.cn>
> * This scheme provides consistent function and variable names even when
> * different guests are running in different memory-management modes.
> * 1. A guest running in auto-translated mode (e.g.,
> shadow_mode_translate())
> * will have gpfn == gmfn and gmfn != mfn.
> * 2. A paravirtualised x86 guest will have gpfn != gmfn and gmfn == mfn.
> * 3. A paravirtualised guest with no pseudophysical overlay will have
> * gpfn == gpmfn == mfn.
> *
>
> what is the meaning about auto-translated mode,is it not the same with
> paravirtualised one ?
An auto-translated paravirtualised guest could be Xen-aware in its
memory management code but Xen would be hiding the underlying memory
layout from it. This is not the normal case - I'm not actually sure
it's supported these days, although it has worked in the past.
Essentially, though and autotranslated guest doesn't need to have any
awareness of the machine memory layout, it can just pretend its got all
the memory.
> does the auto-translated mode work for hvm and shadow mode? how does it
> work?
HVM also has a version of autotranslate mode (does it have another name
for HVM? I'm not sure...) - HVM guests always expect that they own
*all* the memory in the machine, so they need to have the real memory
layout concealed from them. This is done by shadowing the guest's
pagetables so that a gmfn->mfn translation can be applied to them before
inserting them into the real pagetables.
> and what is the mechanism about paravirtualised guest with no
> pseudophysical overlay?
This would be a guest that didn't use the abstraction of pseudophysical
addresses at all; it would just use virtual and (real) machine
addresses. I'm not sure if there are any guests that operate in this
way... Certainly the major heavyweight OSes all use this technique when
paravirtualised.
HTH,
Cheers,
Mark
next prev parent reply other threads:[~2007-04-07 16:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 3:27 About IO Liu, Huahang
2007-03-30 3:36 ` Li, Xin B
2007-04-03 1:57 ` Liu, Huahang
2007-04-03 6:29 ` Keir Fraser
2007-03-30 8:01 ` Guy Zana
2007-04-03 2:59 ` question about memory auto-translate and paravirtual and no pseudophysical overlay tgh
2007-04-05 2:19 ` question about the meaning of " tgh
2007-04-07 16:23 ` Mark Williamson [this message]
2007-04-09 12:59 ` tgh
2007-04-11 21:28 ` Mark Williamson
2007-04-12 0:50 ` tgh
2007-04-12 15:37 ` Mark Williamson
2007-04-13 0:34 ` tgh
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=1175962992.12465.11.camel@trevor \
--to=mark.williamson@cl.cam.ac.uk \
--cc=tianguanhua@ncic.ac.cn \
--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.