aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-12-02 08:17:00 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:39 -0500
commit186a3e526ac1b4063a723f90ae4893beedb24fc6 (patch)
tree3c82f8c60afca12987165c5749b6940c008a7fb7
parentcb84b55f6cde26c7c17beaf87da08645ae6ccbf9 (diff)
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 <avi@redhat.com>
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 89a49fb46a27..4f499d7f7106 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -662,6 +662,7 @@ static void rmap_remove(struct kvm *kvm, u64 *spte)
662 prev_desc = desc; 662 prev_desc = desc;
663 desc = desc->more; 663 desc = desc->more;
664 } 664 }
665 pr_err("rmap_remove: %p %llx many->many\n", spte, *spte);
665 BUG(); 666 BUG();
666 } 667 }
667} 668}