xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xen.org>
To: henanwxr <henanwxr@163.com>, xen-devel@lists.xensource.com
Subject: Re: hvmloader problems?
Date: Thu, 19 May 2011 17:46:06 +0100	[thread overview]
Message-ID: <C9FB07DE.2D78E%keir@xen.org> (raw)
In-Reply-To: <70f3555b.11c52.1300919d56b.Coremail.henanwxr@163.com>

On 19/05/2011 17:32, "henanwxr" <henanwxr@163.com> wrote:

> Hi all, I have some puzzle about hvmloader in the path /tools/firmware/, they
> are:
> 1: Is hvmloader running in non-root mode?

Yes.

> 2: If hvmloader runs in non-root mode, does it have its pagetable? when set
> GUEST_CR3 in vmcs?

It runs in 32-bit protected mode, but with paging disabled. Hence it never
sets GUEST_CR3.

> 3: How can I find the value of GUEST_RIP in vmcs is set to the entry point of
> hvmloader,when virtual machine do it first vm entry.

It doesn't get changed from its initial value of zero. Execution starts at
0x0 and immediately executes a JMP to the actual start address. The JMP is
inserted by tools/libxc/xc_hvm_build.c (just search in there for JMP).

 -- Keir

> Much Thanks!
>  
> - henanwxr
> 
> 
> 
> View this message in context: hvmloader problems?
> <http://xen.1045712.n5.nabble.com/hvmloader-problems-tp4410213p4410213.html>
> Sent from the Xen - Dev mailing list archive
> <http://xen.1045712.n5.nabble.com/Xen-Dev-f2473738.html>  at Nabble.com.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2011-05-19 16:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 16:32 hvmloader problems? henanwxr
2011-05-19 16:46 ` Keir Fraser [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-19 15:51 hvmloader problems? henanwxr

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=C9FB07DE.2D78E%keir@xen.org \
    --to=keir@xen.org \
    --cc=henanwxr@163.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).