lkml.org 
[lkml]   [2010]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/11] xen/gntdev: add VM_PFNMAP to vma
    Date
    From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

    These pages are from other domains, so don't have any local PFN.
    VM_PFNMAP is the closest concept Linux has to this.

    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    drivers/xen/gntdev.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
    index 45898d4..cf61c7d 100644
    --- a/drivers/xen/gntdev.c
    +++ b/drivers/xen/gntdev.c
    @@ -574,6 +574,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)
    vma->vm_flags |= VM_RESERVED;
    vma->vm_flags |= VM_DONTCOPY;
    vma->vm_flags |= VM_DONTEXPAND;
    + vma->vm_flags |= VM_PFNMAP;

    vma->vm_private_data = map;
    map->vma = vma;
    --
    1.5.6.5


    \
     
     \ /
      Last update: 2010-12-15 14:45    [W:0.030 / U:30.324 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site