diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-04-07 16:22:05 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-04-07 16:22:05 +0100 |
commit | 4d6e834ba9ca29c92af3bd18980cde71fd68d304 (patch) | |
tree | 0a70b38f07de9f5be02fb1eadc81ccc4543591c5 /xen/common/page_alloc.c | |
parent | 35e9666fc49c2e30753f671b1e8f72501b4c1409 (diff) | |
download | xen-4d6e834ba9ca29c92af3bd18980cde71fd68d304.tar.gz xen-4d6e834ba9ca29c92af3bd18980cde71fd68d304.tar.bz2 xen-4d6e834ba9ca29c92af3bd18980cde71fd68d304.zip |
Host Numa information in dom0
'xm info' command now also gives the cpu topology & host numa
information. This will be later used to build guest numa support. The
patch basically changes physinfo sysctl, and adds topology_info &
numa_info sysctls, and also changes the python & libxc code
accordingly.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'xen/common/page_alloc.c')
-rw-r--r-- | xen/common/page_alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 01cd3e119d..53437a461a 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -1256,6 +1256,12 @@ unsigned long avail_domheap_pages(void) -1); } +unsigned long avail_node_heap_pages(unsigned int nodeid) +{ + return avail_heap_pages(MEMZONE_XEN, NR_ZONES -1, nodeid); +} + + static void pagealloc_info(unsigned char key) { unsigned int zone = MEMZONE_XEN; |