summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-12-14 21:12:11 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-12-20 23:07:27 +0100
commit7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f (patch)
tree52e6dfc37a288e7181503d3f6596ce569d725b89 /include/xen
parentxenbus: Use grant-table wrapper functions (diff)
downloadlinux-7d17e84bb8356b1d9f4402dd82a0e270a3d59a4f.tar.xz
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 'include/xen')
-rw-r--r--include/xen/grant_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h
index f1e17b70588b..15f8a00ff003 100644
--- a/include/xen/grant_table.h
+++ b/include/xen/grant_table.h
@@ -185,6 +185,6 @@ int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops,
struct gnttab_map_grant_ref *kmap_ops,
struct page **pages, unsigned int count);
int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops,
- struct page **pages, unsigned int count);
+ struct page **pages, unsigned int count, bool clear_pte);
#endif /* __ASM_GNTTAB_H__ */