Re: Always false condition in rmap_add

2010-11-11 Thread Joerg Roedel
On Thu, Nov 11, 2010 at 06:38:47PM +, Prasad Joshi wrote: > Hello All, > > I have question on code of rmap_add > > Here is the code of the function > >  613 static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) >  614 { > > 624 rmapp = gfn_to_rmap(vcpu->kvm, gfn, sp->role.lev

Always false condition in rmap_add

2010-11-11 Thread Prasad Joshi
Hello All, I have question on code of rmap_add Here is the code of the function  613 static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn)  614 { 624 rmapp = gfn_to_rmap(vcpu->kvm, gfn, sp->role.level);  625 if (!*rmapp) {  626 rmap_printk("rmap_add: %p %llx 0->1\n",