[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] xen/ia64 with dom0 vp model needs direct_remap_pfn_range() to be called



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID fb3d073b1cdf84a595fe31a82f332eeef8039637
# Parent  84780e2ea77581bc7ce60a242fe1d48db623dda2
xen/ia64 with dom0 vp model needs direct_remap_pfn_range() to be called
for IOCTL_PRIVCMD_MMAPBATCH.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 84780e2ea775 -r fb3d073b1cdf 
linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c
--- a/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Fri Apr 28 
14:38:39 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/privcmd/privcmd.c        Fri Apr 28 
14:42:53 2006 +0100
@@ -159,12 +159,14 @@ static int privcmd_ioctl(struct inode *i
        break;
 
        case IOCTL_PRIVCMD_MMAPBATCH: {
+#ifndef __ia64__
                mmu_update_t u;
+               uint64_t ptep;
+#endif
                privcmd_mmapbatch_t m;
                struct vm_area_struct *vma = NULL;
                unsigned long __user *p;
                unsigned long addr, mfn; 
-               uint64_t ptep;
                int i;
 
                if (copy_from_user(&m, udata, sizeof(m))) {
@@ -199,11 +201,9 @@ static int privcmd_ioctl(struct inode *i
                        if (get_user(mfn, p))
                                return -EFAULT;
 #ifdef __ia64__
-                       ret = remap_pfn_range(vma,
-                                             addr&PAGE_MASK,
-                                             mfn,
-                                             1<<PAGE_SHIFT,
-                                             vma->vm_page_prot);
+                       ret = direct_remap_pfn_range(vma, addr & PAGE_MASK,
+                                                    mfn, 1 << PAGE_SHIFT,
+                                                    vma->vm_page_prot, m.dom);
                        if (ret < 0)
                            goto batch_err;
 #else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.