Re: [PATCH 1/2] KVM: test: add the test case to check PFEC on prefetch pte path

Xiao Guangrong
2011-01-04T02:48:33Z

On 01/03/2011 11:11 PM, Avi Kivity wrote:
> On 12/23/2010 10:10 AM, Xiao Guangrong wrote:
>> Check page fault error code on prefetch pte path
>>
>
> Can you point out the commit which fixed this failure? I'd like to backport it if it's simple enough.
>

The commit is 3ddf6c06e13e:

commit 3ddf6c06e13ef7842e58815d28ec88faae19c8db
Author: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Date: Wed Nov 17 12:11:41 2010 +0800

KVM: MMU: don't mark spte notrap if reserved bit set

If reserved bit is set, we need inject the #PF with PFEC.RSVD=1,
but shadow_notrap_nonpresent_pte injects #PF with PFEC.RSVD=0 only

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>