Re: [PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set

2010-11-16 Thread Xiao Guangrong
On 11/15/2010 05:17 PM, Avi Kivity wrote: On 11/15/2010 07:41 AM, Xiao Guangrong wrote: On 11/14/2010 06:56 PM, Avi Kivity wrote: On 11/12/2010 12:34 PM, Xiao Guangrong wrote: We can past the page fault to guest directly if gpte's reserved is set How can that work?

Re: [PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set

2010-11-15 Thread Avi Kivity
On 11/15/2010 07:41 AM, Xiao Guangrong wrote: On 11/14/2010 06:56 PM, Avi Kivity wrote: On 11/12/2010 12:34 PM, Xiao Guangrong wrote: We can past the page fault to guest directly if gpte's reserved is set How can that work? shadow_notrap_nonpresent_pte causes a fault with

Re: [PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set

2010-11-14 Thread Avi Kivity
On 11/12/2010 12:34 PM, Xiao Guangrong wrote: We can past the page fault to guest directly if gpte's reserved is set How can that work? shadow_notrap_nonpresent_pte causes a fault with PFEC.P=PFEC.RSVD=0, while we need PFEC.P=PFEC.RSVD=1. Signed-off-by: Xiao

Re: [PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set

2010-11-14 Thread Xiao Guangrong
On 11/14/2010 06:56 PM, Avi Kivity wrote: On 11/12/2010 12:34 PM, Xiao Guangrong wrote: We can past the page fault to guest directly if gpte's reserved is set How can that work? shadow_notrap_nonpresent_pte causes a fault with PFEC.P=PFEC.RSVD=0, while we need PFEC.P=PFEC.RSVD=1. Ah, i

[PATCH 3/4] KVM: MMU: notrap it if gpte's reserved is set

2010-11-12 Thread Xiao Guangrong
We can past the page fault to guest directly if gpte's reserved is set Signed-off-by: Xiao Guangrong xiaoguangr...@cn.fujitsu.com --- arch/x86/kvm/paging_tmpl.h | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h