|
@@ -380,10 +380,6 @@ static struct vm_operations_struct privcmd_vm_ops = {
|
|
|
|
|
|
|
|
static int privcmd_mmap(struct file *file, struct vm_area_struct *vma)
|
|
static int privcmd_mmap(struct file *file, struct vm_area_struct *vma)
|
|
|
{
|
|
{
|
|
|
- /* Unsupported for auto-translate guests. */
|
|
|
|
|
- if (xen_feature(XENFEAT_auto_translated_physmap))
|
|
|
|
|
- return -ENOSYS;
|
|
|
|
|
-
|
|
|
|
|
/* DONTCOPY is essential for Xen because copy_page_range doesn't know
|
|
/* DONTCOPY is essential for Xen because copy_page_range doesn't know
|
|
|
* how to recreate these mappings */
|
|
* how to recreate these mappings */
|
|
|
vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY | VM_PFNMAP;
|
|
vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY | VM_PFNMAP;
|