lkml.org 
[lkml]   [2010]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 16/22] KVM: MMU: Track page fault data in struct vcpu
On Tue, May 04, 2010 at 05:50:50AM -0400, Avi Kivity wrote:
> On 05/04/2010 12:45 PM, Avi Kivity wrote:
> >
> >
> > Just a silly bug. kvm_pdptr_read() can cause a guest memory read on
> > svm, in this case with the mmu lock taken. I'll post something to fix
> > it.
>
> I guess this was not reported because most svm machines have npt, and
> this requires npt=0 to trigger. Nonpae paging disables npt, so you were
> hit. Interestingly, nsvm makes it more likely to appear, since npt on
> i386+pae will need the pdptrs.

Hmm, actually it happened on 32 bit with npt enabled. I think this
can trigger when mmu_alloc_roots is called for an pae guest because it
accidentially tries read the root_gfn from the guest before it figures
out that it runs with tdp and omits the gfn read from the guest.
I need to touch this for nested-npt and will look into a way improving
this.

Joerg




\
 
 \ /
  Last update: 2010-05-04 14:03    [W:0.048 / U:27.588 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site