Re: [PATCH v2 10/12] KVM: MMU: unify the code of walking pte list

2013-01-28 Thread Xiao Guangrong
On 01/27/2013 09:28 PM, Gleb Natapov wrote: >> >> @@ -1256,19 +1243,18 @@ static int kvm_set_pte_rmapp(struct kvm *kvm, >> unsigned long *rmapp, >> >> if (pte_write(*ptep)) { >> drop_spte(kvm, sptep); >> -sptep = rmap_get_first(*rmapp, &iter);

Re: [PATCH v2 10/12] KVM: MMU: unify the code of walking pte list

2013-01-27 Thread Gleb Natapov
On Wed, Jan 23, 2013 at 06:09:34PM +0800, Xiao Guangrong wrote: > Walking parent spte and walking ramp have same logic, this patch introduces > for_each_spte_in_pte_list to integrate their code > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/mmu.c | 199 > ++---