diff options
Diffstat (limited to 'include/xen/grant_table.h')
-rw-r--r-- | include/xen/grant_table.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h index 694dcaf266e6..7ad033dbc845 100644 --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h | |||
@@ -178,17 +178,28 @@ int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes, | |||
178 | grant_status_t **__shared); | 178 | grant_status_t **__shared); |
179 | void arch_gnttab_unmap(void *shared, unsigned long nr_gframes); | 179 | void arch_gnttab_unmap(void *shared, unsigned long nr_gframes); |
180 | 180 | ||
181 | extern unsigned long xen_hvm_resume_frames; | 181 | struct grant_frames { |
182 | xen_pfn_t *pfn; | ||
183 | unsigned int count; | ||
184 | void *vaddr; | ||
185 | }; | ||
186 | extern struct grant_frames xen_auto_xlat_grant_frames; | ||
182 | unsigned int gnttab_max_grant_frames(void); | 187 | unsigned int gnttab_max_grant_frames(void); |
188 | int gnttab_setup_auto_xlat_frames(phys_addr_t addr); | ||
189 | void gnttab_free_auto_xlat_frames(void); | ||
183 | 190 | ||
184 | #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr)) | 191 | #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr)) |
185 | 192 | ||
186 | int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, | 193 | int gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, |
187 | struct gnttab_map_grant_ref *kmap_ops, | ||
188 | struct page **pages, unsigned int count); | 194 | struct page **pages, unsigned int count); |
195 | int gnttab_map_refs_userspace(struct gnttab_map_grant_ref *map_ops, | ||
196 | struct gnttab_map_grant_ref *kmap_ops, | ||
197 | struct page **pages, unsigned int count); | ||
189 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, | 198 | int gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, |
190 | struct gnttab_map_grant_ref *kunmap_ops, | ||
191 | struct page **pages, unsigned int count); | 199 | struct page **pages, unsigned int count); |
200 | int gnttab_unmap_refs_userspace(struct gnttab_unmap_grant_ref *unmap_ops, | ||
201 | struct gnttab_map_grant_ref *kunmap_ops, | ||
202 | struct page **pages, unsigned int count); | ||
192 | 203 | ||
193 | /* Perform a batch of grant map/copy operations. Retry every batch slot | 204 | /* Perform a batch of grant map/copy operations. Retry every batch slot |
194 | * for which the hypervisor returns GNTST_eagain. This is typically due | 205 | * for which the hypervisor returns GNTST_eagain. This is typically due |