Skip to content

Commit

Permalink
xen/privcmd: print SIGBUS faults
Browse files Browse the repository at this point in the history
Print more detail about privcmd mapping faults for debugging.

[ Impact: debug ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge committed Oct 20, 2010
1 parent 35f8c1c commit 441c741
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/xen/xenfs/privcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 441c741

Please sign in to comment.