diff options
author | Dan Magenheimer <dan.magenheimer@oracle.com> | 2012-12-10 11:15:53 +0000 |
---|---|---|
committer | Dan Magenheimer <dan.magenheimer@oracle.com> | 2012-12-10 11:15:53 +0000 |
commit | 1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5 (patch) | |
tree | ee94213bc075524ee82cb8873c88d8bca0716977 /xen/include/xen/mm.h | |
parent | e93e0d9d73ce77bd1f3471af68a194b47e0e8c45 (diff) | |
download | xen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.tar.gz xen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.tar.bz2 xen-1c3b9dd61dabb6415fad0c0ae432a4a78bfca7f5.zip |
xen: centralize accounting for domain tot_pages
Provide and use a common function for all adjustments to a
domain's tot_pages counter in anticipation of future and/or
out-of-tree patches that must adjust related counters
atomically.
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r-- | xen/include/xen/mm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index 64a0cc15f2..00b191527f 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -48,6 +48,8 @@ void free_xenheap_pages(void *v, unsigned int order); #define alloc_xenheap_page() (alloc_xenheap_pages(0,0)) #define free_xenheap_page(v) (free_xenheap_pages(v,0)) +unsigned long domain_adjust_tot_pages(struct domain *d, long pages); + /* Domain suballocator. These functions are *not* interrupt-safe.*/ void init_domheap_pages(paddr_t ps, paddr_t pe); struct page_info *alloc_domheap_pages( |