]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
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)
committerAvi Kivity <avi@redhat.com>
Wed, 2 Dec 2009 13:17:00 +0000 (15:17 +0200)
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 4c3e5b2314cb1c8ca94ff13909af2061b702466d..c43c2ab66bca526bb2dea9b2c2f3802e5d93b567 100644 (file)
@@ -664,6 +664,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();
        }
 }