From: Konrad Rzeszutek Wilk Date: Fri, 21 Sep 2012 13:29:01 +0000 (-0400) Subject: Merge branch 'stable/for-linus-3.7' into linux-next X-Git-Tag: next-20120924~34^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4f55c300e360cd4ebbc4b465376b46bedae3d59;p=karo-tx-linux.git Merge branch 'stable/for-linus-3.7' into linux-next * stable/for-linus-3.7: xen/gndev: Xen backend support for paged out grant targets V4. --- f4f55c300e360cd4ebbc4b465376b46bedae3d59 diff --cc include/xen/grant_table.h index f19fff8650e9,ba0d77529a29..aecee9d112cb --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h @@@ -187,7 -187,18 +187,19 @@@ int gnttab_map_refs(struct gnttab_map_g 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, bool clear_pte); + struct gnttab_map_grant_ref *kunmap_ops, + struct page **pages, unsigned int count); + /* Perform a batch of grant map/copy operations. Retry every batch slot + * for which the hypervisor returns GNTST_eagain. This is typically due + * to paged out target frames. + * + * Will retry for 1, 2, ... 255 ms, i.e. 256 times during 32 seconds. + * + * Return value in each iand every status field of the batch guaranteed + * to not be GNTST_eagain. + */ + void gnttab_batch_map(struct gnttab_map_grant_ref *batch, unsigned count); + void gnttab_batch_copy(struct gnttab_copy *batch, unsigned count); + #endif /* __ASM_GNTTAB_H__ */