aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk2011-03-15 10:23:57 -0400
committerKonrad Rzeszutek Wilk2011-03-16 10:05:35 -0400
commitb6f3067985f12d514187059fb10fe3c877f87cb2 (patch)
treeb41cf045fc3fa7b37186ea627fd87862ef8cf3ab /include
parent803eb047a28d239809fff1f87274cdaa94e0d8ea (diff)
xen-balloon: Add interface to retrieve ballooned pages
Pages that have been ballooned are useful for other Xen drivers doing grant table actions, because these pages have valid struct page/PFNs but have no valid MFN so are available for remapping. Acked-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> [v2: Deal with rebasing on top of modified balloon code] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/xen/balloon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/balloon.h b/include/xen/balloon.h
index f72e4794ec77..a2b22f01a51d 100644
--- a/include/xen/balloon.h
+++ b/include/xen/balloon.h
@@ -20,3 +20,6 @@ struct balloon_stats {
extern struct balloon_stats balloon_stats;
void balloon_set_new_target(unsigned long target);
+
+int alloc_xenballooned_pages(int nr_pages, struct page** pages);
+void free_xenballooned_pages(int nr_pages, struct page** pages);