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

[Xen-devel] [PATCH 12/12] xen/gntdev: provide a set of pages for each VMA

From: Jenny Herbert <jennifer.herbert@xxxxxxxxxx>

For each VMA for grant maps, provide the correct array of pages so
get_user_pages() on foreign mappings works in PV guests.

Signed-off-by: Jenny Herbert <jennifer.herbert@xxxxxxxxxx>
Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx>
 drivers/xen/gntdev.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index 5d73fe8..09e7863 100644
--- a/drivers/xen/gntdev.c
+++ b/drivers/xen/gntdev.c
@@ -870,6 +870,8 @@ static int gntdev_mmap(struct file *flip, struct 
vm_area_struct *vma)
                                            vma->vm_end - vma->vm_start,
                                            set_grant_ptes_as_special, NULL);
+               vma->pages = map->pages;
        return 0;

Xen-devel mailing list



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