diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-15 10:23:57 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-16 10:05:35 -0400 |
commit | b6f3067985f12d514187059fb10fe3c877f87cb2 (patch) | |
tree | b41cf045fc3fa7b37186ea627fd87862ef8cf3ab /include/xen | |
parent | 803eb047a28d239809fff1f87274cdaa94e0d8ea (diff) | |
download | linux-b6f3067985f12d514187059fb10fe3c877f87cb2.tar.gz linux-b6f3067985f12d514187059fb10fe3c877f87cb2.tar.bz2 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')
-rw-r--r-- | include/xen/balloon.h | 3 |
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); |