Re: [PATCH 08/12] KVM: MMU: introduce nulls desc

2013-08-28 Thread Xiao Guangrong
On 08/28/2013 04:40 PM, Gleb Natapov wrote: >> static unsigned long *__gfn_to_rmap(gfn_t gfn, int level, >> @@ -1200,7 +1221,7 @@ static u64 *rmap_get_first(unsigned long rmap, struct >> rmap_iterator *iter) >> */ >> static u64 *rmap_get_next(struct rmap_iterator *iter) >> { >> -if

Re: [PATCH 08/12] KVM: MMU: introduce nulls desc

2013-08-28 Thread Gleb Natapov
On Tue, Jul 30, 2013 at 09:02:06PM +0800, Xiao Guangrong wrote: > It likes nulls list and we use the pte-list as the nulls which can help us to > detect whether the "desc" is moved to anther rmap then we can re-walk the rmap > if that happened > > Signed-off-by: Xiao Guangrong > --- >

Re: [PATCH 08/12] KVM: MMU: introduce nulls desc

2013-08-28 Thread Gleb Natapov
On Tue, Jul 30, 2013 at 09:02:06PM +0800, Xiao Guangrong wrote: It likes nulls list and we use the pte-list as the nulls which can help us to detect whether the desc is moved to anther rmap then we can re-walk the rmap if that happened Signed-off-by: Xiao Guangrong

Re: [PATCH 08/12] KVM: MMU: introduce nulls desc

2013-08-28 Thread Xiao Guangrong
On 08/28/2013 04:40 PM, Gleb Natapov wrote: static unsigned long *__gfn_to_rmap(gfn_t gfn, int level, @@ -1200,7 +1221,7 @@ static u64 *rmap_get_first(unsigned long rmap, struct rmap_iterator *iter) */ static u64 *rmap_get_next(struct rmap_iterator *iter) { -if (iter-desc) { +

[PATCH 08/12] KVM: MMU: introduce nulls desc

2013-07-30 Thread Xiao Guangrong
It likes nulls list and we use the pte-list as the nulls which can help us to detect whether the "desc" is moved to anther rmap then we can re-walk the rmap if that happened Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 35 --- 1 file changed, 28

[PATCH 08/12] KVM: MMU: introduce nulls desc

2013-07-30 Thread Xiao Guangrong
It likes nulls list and we use the pte-list as the nulls which can help us to detect whether the desc is moved to anther rmap then we can re-walk the rmap if that happened Signed-off-by: Xiao Guangrong xiaoguangr...@linux.vnet.ibm.com --- arch/x86/kvm/mmu.c | 35