From: confucius <henanwxr@hotmail.com>
To: xen-devel@lists.xensource.com
Subject: Re: Manual differ from source code about Unrestricted Guest
Date: Tue, 7 Jun 2011 22:01:58 -0700 (PDT) [thread overview]
Message-ID: <1307509318197-4466268.post@n5.nabble.com> (raw)
In-Reply-To: <1307463598.775.655.camel@zakaz.uk.xensource.com>
Thank you, Ian and Tim.
But I am still blurry about Ian's explain, as follow:
"AIUI although the guest is in unpaged mode the _host_ is not and
therefore a pagetable is required from somewhere."
I konw the host is set to paging and protected mode, so the host(VMM) need a
page table itself.But identity map table is pointed by GUEST_CR3, not by
HOST_CR3. The follow is:
xen-4.0/arch/x86/hvm/vmx/vmx.c
static void vmx_update_guest_cr(...)
{
....
switch ( cr )
{
case 0: ....
case 2: ....
case 3:
if ( paging_mode_hap(v->domain) )
{
if ( !hvm_paging_enabled(v) )
v->arch.hvm_vcpu.hw_cr[3] =
v->domain->arch.hvm_domain.params[HVM_PARAM_IDENT_PT];
vmx_load_pdptrs(v);
}
__vmwrite(GUEST_CR3, v->arch.hvm_vcpu.hw_cr[3]);
hvm_asid_flush_vcpu(v);
break;
}
}
>From such codes, I found GUEST_CR3 not HOST_CR3 point to the identity map
table with unpaged mode,
so I am confused by Ian's explain.
--
View this message in context: http://xen.1045712.n5.nabble.com/Manual-differ-from-source-code-about-Unrestricted-Guest-tp4462113p4466268.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
next prev parent reply other threads:[~2011-06-08 5:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 15:41 Manual differ from source code about Unrestricted Guest confucius
2011-06-07 16:19 ` Ian Campbell
2011-06-08 5:01 ` confucius [this message]
2011-06-08 8:08 ` Ian Campbell
2011-06-07 20:33 ` Tim Deegan
2011-06-08 5:33 ` confucius
2011-06-08 8:21 ` Tim Deegan
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=1307509318197-4466268.post@n5.nabble.com \
--to=henanwxr@hotmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).