All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: chrisbenninger <chrisbenninger@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: MULTI_mmu_update, HYPERVISOR_mmu_update and pte entry
Date: Tue, 17 May 2011 15:29:05 -0700	[thread overview]
Message-ID: <4DD2F6B1.5080208@goop.org> (raw)
In-Reply-To: <BANLkTim1p6W=zq9MDoU+xkmrR2xvapQ4mA@mail.gmail.com>

On 05/12/2011 03:41 PM, chrisbenninger wrote:
> Hi, I am working on being able to determine which process owns a PTE
> being changed during each MMU update in 64-bit paravirtualized mode. I
> have a couple questions here.
>
> 1. When a linux DomU wants to make an update to a PTE, it calls
> HYPERVISOR_mmu_update? In my case it appears to be calling
> MULTI_mmu_update mostly. Are these two functions the only primary ways
> a VM will ask for an MMU update?

There's also update_va_mapping and direct writes to the pte which are
trapped and emulated.  However, I've got patches to drop the use of
update_va_mapping in pvops Linux, at least.

> 2. The mmu_update struct that comes along with a MMU update has a
> /unint64_t ptr/  which is a machine address to the PTE being changed.
> Is there any way to use this machine address and determine the pte_t
> or page from within a DomU?

>From within domU?  You could convert it back into a pseudo-phys address
and get the pfn, but its hard to connect a random pte page to a virtual
address or even connect it to an address space.

What are you trying to achieve?  Most usermode pte updates will be to
the current process.

    J

  reply	other threads:[~2011-05-17 22:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 22:41 MULTI_mmu_update, HYPERVISOR_mmu_update and pte entry chrisbenninger
2011-05-17 22:29 ` Jeremy Fitzhardinge [this message]
2011-05-18  5:25   ` Christopher Benninger
2011-05-18  5:47     ` Wei Liu
2011-05-18  8:09       ` Jeremy Fitzhardinge
2011-05-19 17:37         ` Christopher Benninger
2011-05-19 17:49           ` Jeremy Fitzhardinge

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=4DD2F6B1.5080208@goop.org \
    --to=jeremy@goop.org \
    --cc=chrisbenninger@gmail.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 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.