public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Roedel, Joerg" <Joerg.Roedel@amd.com>
To: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory
Date: Thu, 4 Aug 2011 11:49:00 +0200	[thread overview]
Message-ID: <20110804094900.GU5176@amd.com> (raw)
In-Reply-To: <4E37EED8.6030203@redhat.com>

On Tue, Aug 02, 2011 at 08:34:32AM -0400, Avi Kivity wrote:
> On 08/02/2011 12:31 PM, Roedel, Joerg wrote:
> > On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote:
> > >  On 07/29/2011 02:31 PM, Roedel, Joerg wrote:
> > >  >  On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote:
> > >  >  >   Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded.
> > >  >  >   On SVM, it is not possible to implement this, but on VMX this is possible
> > >  >  >   and was indeed implemented until nested SVM changed this to unconditionally
> > >  >  >   read PDPTEs dynamically.  This has noticable impact when running PAE guests.
> > >  >  >
> > >  >  >   Fix by changing the MMU to read PDPTRs from the cache, falling back to
> > >  >  >   reading from memory for the nested MMU.
> > >  >  >
> > >  >  >   Signed-off-by: Avi Kivity<avi@redhat.com>
> > >  >
> > >  >  Hmm, interesting. Sorry for breaking it. I tested the patch on nested
> > >  >  svm, it works fine.
> > >
> > >  Does pae-on-pae work for you?
> >
> > Only tested pae-on-longmode. I'll see if I can find my 32bit
> > installation again and test this too.
> 
> I wanted to test it since any mixup in where the PTPTRs were taken from 
> would be readily apparent.  But it crashes even without the patch.

Hmm, it works here on a Phenom II X6 box with and without the patch.
Host was your master-branch with pae enabled. The l1-guest was a vanilla
3.0-pae kernel and the l2-guest ran with 3.0-pae and 3.0-nonpae kernels.


	Joerg

-- 
AMD Operating System Research Center

Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632


  parent reply	other threads:[~2011-08-04  9:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28  8:36 [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory Avi Kivity
2011-07-29 11:31 ` Roedel, Joerg
2011-07-31  8:08   ` Avi Kivity
2011-08-02  9:31     ` Roedel, Joerg
2011-08-02 12:34       ` Avi Kivity
2011-08-02 13:11         ` Roedel, Joerg
2011-08-04  9:49         ` Roedel, Joerg [this message]
2011-08-05 15:14 ` Marcelo Tosatti

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=20110804094900.GU5176@amd.com \
    --to=joerg.roedel@amd.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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