diff options
author | David Vrabel <david.vrabel@citrix.com> | 2015-01-05 09:13:41 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-01-28 09:03:10 -0500 |
commit | 853d0289340026b30f93fd0e768340221d4e605c (patch) | |
tree | 17d52ad1d7ae43007d8b664bbdba2a50db7dbb81 /include/xen | |
parent | d8ac3dd41aea245f65465449efc35dd3ac71e91d (diff) |
xen/grant-table: pre-populate kernel unmap ops for xen_gnttab_unmap_refs()
When unmapping grants, instead of converting the kernel map ops to
unmap ops on the fly, pre-populate the set of unmap ops.
This allows the grant unmap for the kernel mappings to be trivially
batched in the future.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/grant_table.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h index 3387465b9caa..7235d8f35459 100644 --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h | |||
@@ -167,7 +167,7 @@ int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, | |||
167 | struct gnttab_map_grant_ref *kmap_ops, | 167 | struct gnttab_map_grant_ref *kmap_ops, |
168 | struct page **pages, unsigned int count); | 168 | struct page **pages, unsigned int count); |
169 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, | 169 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, |
170 | struct gnttab_map_grant_ref *kunmap_ops, | 170 | struct gnttab_unmap_grant_ref *kunmap_ops, |
171 | struct page **pages, unsigned int count); | 171 | struct page **pages, unsigned int count); |
172 | 172 | ||
173 | /* Perform a batch of grant map/copy operations. Retry every batch slot | 173 | /* Perform a batch of grant map/copy operations. Retry every batch slot |