Displaying 2 results from an estimated 2 matches for "gntdev_alloc_map".
2011 Sep 08
1
[PATCH v4 1/2] xen: add an "highmem" parameter to alloc_xenballooned_pages
...vation(nr_pages - pgno,
+ highmem ? GFP_HIGHUSER : GFP_USER);
if (st != BP_DONE)
goto out_undo;
}
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index f914b26..7b9b1d1 100644
--- a/drivers/xen/gntdev.c
+++ b/drivers/xen/gntdev.c
@@ -123,7 +123,7 @@ static struct grant_map *gntdev_alloc_map(struct gntdev_priv *priv, int count)
NULL == add->pages)
goto err;
- if (alloc_xenballooned_pages(count, add->pages))
+ if (alloc_xenballooned_pages(count, add->pages, false /* lowmem */))
goto err;
for (i = 0; i < count; i++) {
diff --git a/include/xen/balloon.h b/inc...
2012 Mar 23
10
[hybrid] : mmap pfn space...
Hi Ian/Stefano,
So, I''m back to using pfn space from maxphysaddr below. Stefano, you
suggested ballooning, but that would be just too slow. There are lot of
pages to be mapped, 4k at a time during guest creation, and I am afraid
ballooning and hypercalls to populate EPT will be pretty slow.
OTOH, there is tons of address space available between max-physaddr and
max pfn in dom0. Stefano,