diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/xen/grant_table.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h index fea4954174f0..2b492b9637b3 100644 --- a/include/xen/grant_table.h +++ b/include/xen/grant_table.h | |||
@@ -62,6 +62,15 @@ int gnttab_resume(void); | |||
62 | 62 | ||
63 | int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, | 63 | int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, |
64 | int readonly); | 64 | int readonly); |
65 | int gnttab_grant_foreign_access_subpage(domid_t domid, unsigned long frame, | ||
66 | int flags, unsigned page_off, | ||
67 | unsigned length); | ||
68 | |||
69 | /* | ||
70 | * Are sub-page grants available on this version of Xen? Returns true if they | ||
71 | * are, and false if they're not. | ||
72 | */ | ||
73 | bool gnttab_subpage_grants_available(void); | ||
65 | 74 | ||
66 | /* | 75 | /* |
67 | * End access through the given grant reference, iff the grant entry is no | 76 | * End access through the given grant reference, iff the grant entry is no |
@@ -108,6 +117,10 @@ void gnttab_cancel_free_callback(struct gnttab_free_callback *callback); | |||
108 | 117 | ||
109 | void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, | 118 | void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, |
110 | unsigned long frame, int readonly); | 119 | unsigned long frame, int readonly); |
120 | int gnttab_grant_foreign_access_subpage_ref(grant_ref_t ref, domid_t domid, | ||
121 | unsigned long frame, int flags, | ||
122 | unsigned page_off, | ||
123 | unsigned length); | ||
111 | 124 | ||
112 | void gnttab_grant_foreign_transfer_ref(grant_ref_t, domid_t domid, | 125 | void gnttab_grant_foreign_transfer_ref(grant_ref_t, domid_t domid, |
113 | unsigned long pfn); | 126 | unsigned long pfn); |