summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2017-11-02 05:19:18 -0400
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2017-11-06 15:50:17 -0500
commit56c9c700c4399858e50971d98ac44b5842b06a87 (patch)
tree5638993f152d66b55eceb9b06abc486c18087b4b /include/xen
parentb988b8ff072ab04abd62d10d3fe44ec544be8a7d (diff)
xen: limit grant v2 interface to the v1 functionality
As there is currently no user for sub-page grants or transient grants remove that functionality. This at once makes it possible to switch from grant v2 to grant v1 without restrictions, as there is no loss of functionality other than the limited frame number width related to the switch. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/grant_table.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/xen/grant_table.h b/include/xen/grant_table.h
index dd6c7a32ee32..2e37741f6b8d 100644
--- a/include/xen/grant_table.h
+++ b/include/xen/grant_table.h
@@ -84,24 +84,6 @@ int gnttab_resume(void);
84 84
85int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, 85int gnttab_grant_foreign_access(domid_t domid, unsigned long frame,
86 int readonly); 86 int readonly);
87int gnttab_grant_foreign_access_subpage(domid_t domid, unsigned long frame,
88 int flags, unsigned page_off,
89 unsigned length);
90int gnttab_grant_foreign_access_trans(domid_t domid, int flags,
91 domid_t trans_domid,
92 grant_ref_t trans_gref);
93
94/*
95 * Are sub-page grants available on this version of Xen? Returns true if they
96 * are, and false if they're not.
97 */
98bool gnttab_subpage_grants_available(void);
99
100/*
101 * Are transitive grants available on this version of Xen? Returns true if they
102 * are, and false if they're not.
103 */
104bool gnttab_trans_grants_available(void);
105 87
106/* 88/*
107 * End access through the given grant reference, iff the grant entry is no 89 * End access through the given grant reference, iff the grant entry is no
@@ -148,13 +130,6 @@ void gnttab_cancel_free_callback(struct gnttab_free_callback *callback);
148 130
149void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, 131void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid,
150 unsigned long frame, int readonly); 132 unsigned long frame, int readonly);
151int gnttab_grant_foreign_access_subpage_ref(grant_ref_t ref, domid_t domid,
152 unsigned long frame, int flags,
153 unsigned page_off,
154 unsigned length);
155int gnttab_grant_foreign_access_trans_ref(grant_ref_t ref, domid_t domid,
156 int flags, domid_t trans_domid,
157 grant_ref_t trans_gref);
158 133
159/* Give access to the first 4K of the page */ 134/* Give access to the first 4K of the page */
160static inline void gnttab_page_grant_foreign_access_ref_one( 135static inline void gnttab_page_grant_foreign_access_ref_one(