From: Avi Kivity Date: Wed, 2 Dec 2009 13:17:00 +0000 (+0200) Subject: KVM: MMU: Report spte not found in rmap before BUG() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4f82d569133ce8c21b7ee5247fb76ea499772f2a;p=users%2Fdwmw2%2Flinux.git KVM: MMU: Report spte not found in rmap before BUG() 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 --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4c3e5b2314cb1..c43c2ab66bca5 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -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(); } }