[XEN][LINUX] Remove autotranslate check from privcmd_mmap(). PowerPC dom0 is autotranslated and needs to be able to map domU memory. x86 doesn't use privileged autotranslated domains, and IA64 has their own privcmd_mmap(), so this doesn't affect them. Signed-off-by: Hollis Blanchard diff -r 50220a1b2aaf drivers/xen/privcmd/privcmd.c --- a/drivers/xen/privcmd/privcmd.c Thu Jun 21 07:49:49 2007 +0200 +++ b/drivers/xen/privcmd/privcmd.c Thu Jun 21 07:52:35 2007 +0200 @@ -229,12 +229,6 @@ static struct vm_operations_struct privc static int privcmd_mmap(struct file * file, struct vm_area_struct * vma) { -#ifndef __powerpc__ /* PowerPC has a trick to safely do this. */ - /* Unsupported for auto-translate guests. */ - if (xen_feature(XENFEAT_auto_translated_physmap)) - return -ENOSYS; -#endif - /* DONTCOPY is essential for Xen as copy_page_range is broken. */ vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY; vma->vm_ops = &privcmd_vm_ops;