diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-03-06 12:56:59 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-10-20 19:22:31 -0400 |
commit | 441c7416b55d3d48b4aaafc5bdd804092387d877 (patch) | |
tree | 628131f9abe21d7b9534a6185f57ab263579cacc /drivers/xen/xenfs | |
parent | 35f8c1c343f2918ea24f05282d14e711887d8278 (diff) |
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/xenfs')
-rw-r--r-- | drivers/xen/xenfs/privcmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/xenfs/privcmd.c b/drivers/xen/xenfs/privcmd.c index c7192f314f86..6b602f505363 100644 --- a/drivers/xen/xenfs/privcmd.c +++ b/drivers/xen/xenfs/privcmd.c | |||
@@ -403,6 +403,10 @@ static long privcmd_ioctl(struct file *file, | |||
403 | #ifndef HAVE_ARCH_PRIVCMD_MMAP | 403 | #ifndef HAVE_ARCH_PRIVCMD_MMAP |
404 | static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf) | 404 | static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf) |
405 | { | 405 | { |
406 | printk(KERN_DEBUG "privcmd_fault: vma=%p %lx-%lx, pgoff=%lx, uv=%p\n", | ||
407 | vma, vma->vm_start, vma->vm_end, | ||
408 | vmf->pgoff, vmf->virtual_address); | ||
409 | |||
406 | return VM_FAULT_SIGBUS; | 410 | return VM_FAULT_SIGBUS; |
407 | } | 411 | } |
408 | 412 | ||