All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 00/23] Add KVM support for PPC64 (970) host
Date: Wed, 08 Jul 2009 10:24:01 +0000	[thread overview]
Message-ID: <1247048641.6066.184.camel@pasglop> (raw)
In-Reply-To: <1246976262-4826-1-git-send-email-agraf@suse.de>

On Wed, 2009-07-08 at 13:04 +0300, Avi Kivity wrote:
> 
> In this case how can hooking the hashes work?
> 
> kvm obtains pages by calling get_user_pages_fast() so you can have a 
> page in the shadow hash which is not present in the host hash.
> 
I'm not sure why we would have a problem with that actually. But again,
it depends how Alex does his stuff...

We -must- keep track that a given Linux PTE was hashed, we must not put
something into the hash without keeping that track or bad things will
happen such as potential duplicates etc...

We have fields in the PTE for that though I would have to understand
how Alex handles translated entries there.

If a guest entry is in the real hash, we thus must have some tracking
in the linux PTE that this guest entry is there to properly invalidate
it when the PTE is invalidated.

Now we could probably use the mmu_notifiers for that, but we have
existing mechanism to do that tracking and I think we might just
be able to re-use them, but of course, that needs to be looked at it
more details.

Cheers,
Ben.



  parent reply	other threads:[~2009-07-08 10:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07 14:17 [PATCH 00/23] Add KVM support for PPC64 (970) hosts Alexander Graf
2009-07-07 15:44 ` Arnd Bergmann
2009-07-07 15:49 ` Alexander Graf
2009-07-07 15:54 ` Avi Kivity
2009-07-07 15:56 ` Alexander Graf
2009-07-07 16:08 ` Avi Kivity
2009-07-08  6:17 ` Benjamin Herrenschmidt
2009-07-08  6:22 ` Benjamin Herrenschmidt
2009-07-08  6:42 ` Benjamin Herrenschmidt
2009-07-08  7:35 ` Alexander Graf
2009-07-08  8:01 ` Benjamin Herrenschmidt
2009-07-08  8:06 ` Avi Kivity
2009-07-08  8:19 ` [PATCH 00/23] Add KVM support for PPC64 (970) host Benjamin Herrenschmidt
2009-07-08  8:28 ` [PATCH 00/23] Add KVM support for PPC64 (970) hosts Alexander Graf
2009-07-08  8:43 ` [PATCH 00/23] Add KVM support for PPC64 (970) host Avi Kivity
2009-07-08  9:51 ` Benjamin Herrenschmidt
2009-07-08 10:04 ` Avi Kivity
2009-07-08 10:24 ` Benjamin Herrenschmidt [this message]
2009-07-08 11:10 ` [PATCH 00/23] Add KVM support for PPC64 (970) hosts Benjamin Herrenschmidt
2009-07-08 12:29 ` Alexander Graf
2009-07-08 21:40 ` Benjamin Herrenschmidt
2009-07-22 22:58 ` Olof Johansson
2009-07-22 23:02 ` Olof Johansson

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=1247048641.6066.184.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=kvm-ppc@vger.kernel.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.