KVM: MMU: Report spte not found in rmap before BUG()
authorAvi Kivity <avi@redhat.com>
Wed, 2 Dec 2009 13:17:00 +0000 (15:17 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:39 +0000 (12:35 -0300)
In the past we've had errors of single-bit in the other two cases; the
printk() may confirm it for the third case (many->many).

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c

index 89a49fb46a275e6eebcf2609f3870696b3a3945b..4f499d7f71062470e928bb22a19a597dadd82c65 100644 (file)
@@ -662,6 +662,7 @@ static void rmap_remove(struct kvm *kvm, u64 *spte)
                        prev_desc = desc;
                        desc = desc->more;
                }
+               pr_err("rmap_remove: %p %llx many->many\n", spte, *spte);
                BUG();
        }
 }