Re: [PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-07 Thread Paolo Bonzini
On 08/05/2013 06:59 AM, Xiao Guangrong wrote: Current code always uses arch.mmu to check the reserved bits on guest gpte which is valid only for L1 guest, we should use arch.nested_mmu instead when we translate gva to gpa for the L2 guest Fix it by using @mmu instead since it is adapted to the

Re: [PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-07 Thread Paolo Bonzini
On 08/05/2013 06:59 AM, Xiao Guangrong wrote: Current code always uses arch.mmu to check the reserved bits on guest gpte which is valid only for L1 guest, we should use arch.nested_mmu instead when we translate gva to gpa for the L2 guest Fix it by using @mmu instead since it is adapted to the

Re: [PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-05 Thread Gleb Natapov
On Mon, Aug 05, 2013 at 12:59:19PM +0800, Xiao Guangrong wrote: > Current code always uses arch.mmu to check the reserved bits on guest gpte > which is valid only for L1 guest, we should use arch.nested_mmu instead when > we translate gva to gpa for the L2 guest > > Fix it by using @mmu instead

Re: [PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-05 Thread Gleb Natapov
On Mon, Aug 05, 2013 at 12:59:19PM +0800, Xiao Guangrong wrote: Current code always uses arch.mmu to check the reserved bits on guest gpte which is valid only for L1 guest, we should use arch.nested_mmu instead when we translate gva to gpa for the L2 guest Fix it by using @mmu instead since

[PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-04 Thread Xiao Guangrong
Current code always uses arch.mmu to check the reserved bits on guest gpte which is valid only for L1 guest, we should use arch.nested_mmu instead when we translate gva to gpa for the L2 guest Fix it by using @mmu instead since it is adapted to the current mmu mode automatically The bug can be

[PATCH] KVM: MMU: fix check the reserved bits on the gpte of L2

2013-08-04 Thread Xiao Guangrong
Current code always uses arch.mmu to check the reserved bits on guest gpte which is valid only for L1 guest, we should use arch.nested_mmu instead when we translate gva to gpa for the L2 guest Fix it by using @mmu instead since it is adapted to the current mmu mode automatically The bug can be