Re: [PATCH v2 03/12] KVM: MMU: simplify mmu_set_spte

2013-01-29 Thread Xiao Guangrong
On 01/30/2013 05:53 AM, Marcelo Tosatti wrote: > On Tue, Jan 29, 2013 at 10:55:24AM +0800, Xiao Guangrong wrote: >> On 01/29/2013 08:21 AM, Marcelo Tosatti wrote: >>> On Wed, Jan 23, 2013 at 06:05:29PM +0800, Xiao Guangrong wrote: In order to detecting spte remapping, we can simply check wheth

Re: [PATCH v2 03/12] KVM: MMU: simplify mmu_set_spte

2013-01-29 Thread Marcelo Tosatti
On Tue, Jan 29, 2013 at 10:55:24AM +0800, Xiao Guangrong wrote: > On 01/29/2013 08:21 AM, Marcelo Tosatti wrote: > > On Wed, Jan 23, 2013 at 06:05:29PM +0800, Xiao Guangrong wrote: > >> In order to detecting spte remapping, we can simply check whether the > >> spte has already been pointing to the

Re: [PATCH v2 03/12] KVM: MMU: simplify mmu_set_spte

2013-01-28 Thread Xiao Guangrong
On 01/29/2013 08:21 AM, Marcelo Tosatti wrote: > On Wed, Jan 23, 2013 at 06:05:29PM +0800, Xiao Guangrong wrote: >> In order to detecting spte remapping, we can simply check whether the >> spte has already been pointing to the pfn even if the spte is not the >> last spte, for middle spte is pointin

Re: [PATCH v2 03/12] KVM: MMU: simplify mmu_set_spte

2013-01-28 Thread Marcelo Tosatti
On Wed, Jan 23, 2013 at 06:05:29PM +0800, Xiao Guangrong wrote: > In order to detecting spte remapping, we can simply check whether the > spte has already been pointing to the pfn even if the spte is not the > last spte, for middle spte is pointing to the kernel pfn which can not > be mapped to use

[PATCH v2 03/12] KVM: MMU: simplify mmu_set_spte

2013-01-23 Thread Xiao Guangrong
In order to detecting spte remapping, we can simply check whether the spte has already been pointing to the pfn even if the spte is not the last spte, for middle spte is pointing to the kernel pfn which can not be mapped to userspace Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 28 ++