xen/privcmd: print SIGBUS faults
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 6 Mar 2009 17:56:59 +0000 (09:56 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 20 Oct 2010 23:22:31 +0000 (16:22 -0700)
Print more detail about privcmd mapping faults for debugging.

[ Impact: debug ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/xenfs/privcmd.c

index c7192f314f868eeb828738f04ef19c15f23cf2a1..6b602f505363a956e0a453a6317a41539300a3e6 100644 (file)
@@ -403,6 +403,10 @@ static long privcmd_ioctl(struct file *file,
 #ifndef HAVE_ARCH_PRIVCMD_MMAP
 static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
 {
+       printk(KERN_DEBUG "privcmd_fault: vma=%p %lx-%lx, pgoff=%lx, uv=%p\n",
+              vma, vma->vm_start, vma->vm_end,
+              vmf->pgoff, vmf->virtual_address);
+
        return VM_FAULT_SIGBUS;
 }