diff options
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/grant_table.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h index 11e27c3af3cb..ba0d77529a29 100644 --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h | |||
@@ -189,4 +189,16 @@ int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, | |||
189 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, | 189 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, |
190 | struct page **pages, unsigned int count, bool clear_pte); | 190 | struct page **pages, unsigned int count, bool clear_pte); |
191 | 191 | ||
192 | /* Perform a batch of grant map/copy operations. Retry every batch slot | ||
193 | * for which the hypervisor returns GNTST_eagain. This is typically due | ||
194 | * to paged out target frames. | ||
195 | * | ||
196 | * Will retry for 1, 2, ... 255 ms, i.e. 256 times during 32 seconds. | ||
197 | * | ||
198 | * Return value in each iand every status field of the batch guaranteed | ||
199 | * to not be GNTST_eagain. | ||
200 | */ | ||
201 | void gnttab_batch_map(struct gnttab_map_grant_ref *batch, unsigned count); | ||
202 | void gnttab_batch_copy(struct gnttab_copy *batch, unsigned count); | ||
203 | |||
192 | #endif /* __ASM_GNTTAB_H__ */ | 204 | #endif /* __ASM_GNTTAB_H__ */ |