From: Andrew Cooper <andrew.cooper3@citrix.com>
To: xen-devel@lists.xen.org, emdel@playhack.net
Subject: Re: CR3 Virtual Address
Date: Wed, 28 Nov 2012 14:56:20 +0000 [thread overview]
Message-ID: <50B62614.1060801@citrix.com> (raw)
In-Reply-To: <CALKiAsHQaAC0JcP1zqkhENicCf2o-jsBUiBopyhuhvBUv__D+w@mail.gmail.com>
On 28/11/12 14:48, emdel wrote:
> Hello everybody,
>
> I have to work with the Xen 4.2 memory management code for a research
> project and I have some questions.
>
> 1) Since I have to change and/or remove some entries in the hypervisor
> page table, I would like to know the "virtual address" of the CR3
> register.
CR3 is a register, not memory mapped. Do you mean the virtual address
of the top level pagetable? That will depend on which mode you are
running in, and which CR3 you are actually looking for.
>
> 2) I would also like to know if the VMCS virtual address is mapped
> inside the
> page table pointed by the HOST_CR3.
The host cr3 is the set of pagetables to use when a VMEXIT happens. The
VCMS of the HVM guest in question will be mapped into this address space.
>
> 3) Are there functions to perform the page walking on the hypervisor
> page tables?
There are generic page walk functions, which can be used to walk the
hypervisor tables. Why do you want to do this?
~Andrew
>
>
> Thank you for the attention,
>
>
> Best Regards.
--
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com
next prev parent reply other threads:[~2012-11-28 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 14:48 CR3 Virtual Address emdel
2012-11-28 14:56 ` Andrew Cooper [this message]
2012-11-28 15:06 ` Mats Petersson
2012-11-28 18:20 ` emdel
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=50B62614.1060801@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=emdel@playhack.net \
--cc=xen-devel@lists.xen.org \
/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.