|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 03/11] xen/gntdev: add VM_PFNMAP to vma
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
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@xxxxxxxxxx>
---
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/11] xen: allow usermode to map granted pages, Stefano Stabellini
- [Xen-devel] [PATCH 01/11] xen: define gnttab_set_map_op/unmap_op, stefano . stabellini
- [Xen-devel] [PATCH 03/11] xen/gntdev: add VM_PFNMAP to vma,
stefano . stabellini <=
- [Xen-devel] [PATCH 02/11] xen/gntdev: allow usermode to map granted pages, stefano . stabellini
- [Xen-devel] [PATCH 05/11] xen: add m2p override mechanism, stefano . stabellini
- [Xen-devel] [PATCH 06/11] xen: gntdev: move use of GNTMAP_contains_pte next to the map_op, stefano . stabellini
- [Xen-devel] [PATCH 04/11] xen: move p2m handling to separate file, stefano . stabellini
- [Xen-devel] [PATCH 07/11] xen/gntdev: stop using "token" argument, stefano . stabellini
- [Xen-devel] [PATCH 08/11] xen p2m: transparently change the p2m mappings in the m2p override, stefano . stabellini
- [Xen-devel] [PATCH 09/11] xen: introduce gnttab_map_refs and gnttab_unmap_refs, stefano . stabellini
- [Xen-devel] [PATCH 11/11] xen p2m: clear the old pte when adding a page to m2p_override, stefano . stabellini
|
|
|
|
|