aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/mm.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-11 13:03:57 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-07-11 13:03:57 +0100
commit4871e12b20d9c720ba781ce6564170bcc97fec27 (patch)
tree308fa8584b5cd5128270ef9b5bdc5b5e48e6cc97 /xen/include/xen/mm.h
parent929990b94033a5e32fbe24dce79dd6cdfae1d565 (diff)
downloadxen-4871e12b20d9c720ba781ce6564170bcc97fec27.tar.gz
xen-4871e12b20d9c720ba781ce6564170bcc97fec27.tar.bz2
xen-4871e12b20d9c720ba781ce6564170bcc97fec27.zip
Add new domctl hypercall to expose current heap values. This
functionality is needed for probing how much memory is available in a given node prior to VM creation. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r--xen/include/xen/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h
index a94d4efdb0..a5183fd125 100644
--- a/xen/include/xen/mm.h
+++ b/xen/include/xen/mm.h
@@ -61,6 +61,8 @@ struct page_info *__alloc_domheap_pages(
struct domain *d, unsigned int cpu, unsigned int order,
unsigned int memflags);
void free_domheap_pages(struct page_info *pg, unsigned int order);
+unsigned long avail_domheap_pages_region(
+ unsigned int node, unsigned int min_width, unsigned int max_width);
unsigned long avail_domheap_pages(void);
#define alloc_domheap_page(d) (alloc_domheap_pages(d,0,0))
#define free_domheap_page(p) (free_domheap_pages(p,0))