summaryrefslogtreecommitdiffstats
path: root/drivers/xen/gntdev.c
diff options
context:
space:
mode:
authorDaniel De Graaf2011-12-14 21:12:11 +0100
committerKonrad Rzeszutek Wilk2011-12-20 23:07:27 +0100
commit7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f (patch)
tree52e6dfc37a288e7181503d3f6596ce569d725b89 /drivers/xen/gntdev.c
parentxenbus: Use grant-table wrapper functions (diff)
downloadkernel-qcow2-linux-7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f.tar.gz
kernel-qcow2-linux-7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f.tar.xz
kernel-qcow2-linux-7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f.zip
xen/grant-table: Support mappings required by blkback
Add support for mappings without GNTMAP_contains_pte. This was not supported because the unmap operation assumed that this flag was being used; adding a parameter to the unmap operation to allow the PTE clearing to be disabled is sufficient to make unmap capable of supporting either mapping type. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> [v1: Fix cleanpatch warnings] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/gntdev.c')
-rw-r--r--drivers/xen/gntdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index f52f661f8f82..99d8151c824a 100644
--- a/drivers/xen/gntdev.c
+++ b/drivers/xen/gntdev.c
@@ -314,7 +314,8 @@ static int __unmap_grant_pages(struct grant_map *map, int offset, int pages)
}
}
- err = gnttab_unmap_refs(map->unmap_ops + offset, map->pages + offset, pages);
+ err = gnttab_unmap_refs(map->unmap_ops + offset, map->pages + offset,
+ pages, true);
if (err)
return err;