]> xenbits.xensource.com Git - people/sstabellini/linux-pvhvm-deprecated.git/commitdiff
xen: allow privcmd for hvm guests
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 3 Jul 2012 17:12:17 +0000 (17:12 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 3 Jul 2012 17:12:17 +0000 (17:12 +0000)
Ian's initial XENMAPSPACE_gmfn_foreign implementation is enough to get
privcmd mmap to work for XENFEAT_auto_translated_physmap guests.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/xen/xenfs/privcmd.c

index c200b49ff6faa9fe1b700e24aa4b4cc5fa6b4915..5c2b9e927c4208ad76bc3b8bd9046aa7baab55b1 100644 (file)
@@ -387,13 +387,6 @@ static int privcmd_mmap(struct file *file, struct vm_area_struct *vma)
 {
        //printk(KERN_CRIT "privcmd_mmap\n");
 
-       /* Unsupported for auto-translate guests. */
-       if (xen_feature(XENFEAT_auto_translated_physmap))
-       {
-               printk(KERN_CRIT "privcmd_mmap -- no auto translated..\n");
-               return -ENOSYS;
-       }
-
        /* DONTCOPY is essential for Xen because copy_page_range doesn't know
         * how to recreate these mappings */
        vma->vm_flags |= VM_RESERVED | VM_IO | VM_DONTCOPY | VM_PFNMAP;