summaryrefslogtreecommitdiff
path: root/drivers/xen
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-03-06 17:56:59 (GMT)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-10-20 23:22:31 (GMT)
commit441c7416b55d3d48b4aaafc5bdd804092387d877 (patch)
tree628131f9abe21d7b9534a6185f57ab263579cacc /drivers/xen
parent35f8c1c343f2918ea24f05282d14e711887d8278 (diff)
downloadlinux-fsl-qoriq-441c7416b55d3d48b4aaafc5bdd804092387d877.tar.xz
xen/privcmd: print SIGBUS faults
Print more detail about privcmd mapping faults for debugging. [ Impact: debug ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/xenfs/privcmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c
index c7192f3..6b602f5 100644
--- a/drivers/xen/xenfs/privcmd.c
+++ b/drivers/xen/xenfs/privcmd.c
@@ -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;
}