summaryrefslogtreecommitdiffstats
path: root/include/xen/balloon.h
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk2011-03-15 15:23:57 +0100
committerKonrad Rzeszutek Wilk2011-03-16 15:05:35 +0100
commitb6f3067985f12d514187059fb10fe3c877f87cb2 (patch)
treeb41cf045fc3fa7b37186ea627fd87862ef8cf3ab /include/xen/balloon.h
parentxen-balloon: Move core balloon functionality out of module (diff)
downloadkernel-qcow2-linux-b6f3067985f12d514187059fb10fe3c877f87cb2.tar.gz
kernel-qcow2-linux-b6f3067985f12d514187059fb10fe3c877f87cb2.tar.xz
kernel-qcow2-linux-b6f3067985f12d514187059fb10fe3c877f87cb2.zip
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/xen/balloon.h')
-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);