Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230849
b: refs/heads/master
c: 9329e76
h: refs/heads/master
i:
  230847: cfd36f9
v: v3
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Jan 11, 2011
1 parent ea7c3c9 commit 340f88b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 448f2831934381e9d3c4d93e700ba7bbe14612dc
refs/heads/master: 9329e7604fe915fd0201633d3c38adae307d56a5
8 changes: 5 additions & 3 deletions trunk/drivers/xen/gntdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,12 @@ static int find_grant_ptes(pte_t *pte, pgtable_t token,
BUG_ON(pgnr >= map->count);
pte_maddr = (u64)pfn_to_mfn(page_to_pfn(token)) << PAGE_SHIFT;
pte_maddr += (unsigned long)pte & ~PAGE_MASK;
gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr, map->flags,
gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr,
GNTMAP_contains_pte | map->flags,
map->grants[pgnr].ref,
map->grants[pgnr].domid);
gnttab_set_unmap_op(&map->unmap_ops[pgnr], pte_maddr, map->flags,
gnttab_set_unmap_op(&map->unmap_ops[pgnr], pte_maddr,
GNTMAP_contains_pte | map->flags,
0 /* handle */);
return 0;
}
Expand Down Expand Up @@ -569,7 +571,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)
vma->vm_private_data = map;
map->vma = vma;

map->flags = GNTMAP_host_map | GNTMAP_application_map | GNTMAP_contains_pte;
map->flags = GNTMAP_host_map | GNTMAP_application_map;
if (!(vma->vm_flags & VM_WRITE))
map->flags |= GNTMAP_readonly;

Expand Down

0 comments on commit 340f88b

Please sign in to comment.