All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mats Petersson <mats.petersson@citrix.com>
To: xen-devel@lists.xen.org
Subject: Re: CR3 Virtual Address
Date: Wed, 28 Nov 2012 15:06:00 +0000	[thread overview]
Message-ID: <50B62858.8040302@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.
As per Andy Cooper's answer, but further:
Exactly (or at least roughly) what are you trying to achieve?
You want to "remove" some memory from the hypervisor itself? Who/what 
will use this memory?
It is MUCH easier to advice on HOW to do something if we understand what 
you are actually trying to do.
>
> 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 Xen (VCPU's) true CR3 (for the "host" or "root" 
mode, as Intel calls it - this is the hypervisor itself). it is set from 
vcpu.arch.cr3. So the VMCS is available here, or the system would crash 
when it returns from guest operation.
>
> 3) Are there functions to perform the page walking on the hypervisor
>    page tables?
Yes. As per Andy Cooper's answer.

--
Mats
>
>
> Thank you for the attention,
>
>
> Best Regards.

  parent reply	other threads:[~2012-11-28 15:06 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
2012-11-28 15:06 ` Mats Petersson [this message]
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=50B62858.8040302@citrix.com \
    --to=mats.petersson@citrix.com \
    --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.