]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: ppc: Report bad GFNs
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 21 May 2008 23:22:55 +0000 (18:22 -0500)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:22:41 +0000 (21:22 +0300)
This code shouldn't be hit anyways, but when it is, it's useful to have a
little more information about the failure.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/powerpc/kvm/44x_tlb.c

index 1c48d6164bd5b451aa83a8752cf826ef677d1486..75dff7cfa814130a465098ea880c1f05cbf882e5 100644 (file)
@@ -145,7 +145,7 @@ void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 gvaddr, gfn_t gfn, u64 asid,
        down_read(&current->mm->mmap_sem);
        new_page = gfn_to_page(vcpu->kvm, gfn);
        if (is_error_page(new_page)) {
-               printk(KERN_ERR "Couldn't get guest page!\n");
+               printk(KERN_ERR "Couldn't get guest page for gfn %lx!\n", gfn);
                kvm_release_page_clean(new_page);
                up_read(&current->mm->mmap_sem);
                return;