]> xenbits.xensource.com Git - libvirt.git/commit
libxl: fix node ranges in libxlNodeGetCellsFreeMemory()
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 9 Aug 2013 09:05:58 +0000 (11:05 +0200)
committerJim Fehlig <jfehlig@suse.com>
Fri, 9 Aug 2013 16:02:34 +0000 (10:02 -0600)
commit625980cc54f9e56cf892189d69cf946dd6bf2ce8
tree31539f6345f3667b4a0a28e598de470a4b23c181
parent70024dc9192038575ab5217ac35080b038e5b13e
libxl: fix node ranges in libxlNodeGetCellsFreeMemory()

introduced by cs 4b9eec50fe2c23343 ("libxl: implement per
NUMA node free memory reporting"). What was wrong was that
libxl_get_numainfo() put in nr_nodes the actual number of
host NUMA nodes, not the highest node ID (like libnuma's
numa_max_node() does instead).

While at it, turn the failure of libxl_get_numainfo() from
a simple warning to a proper error, as requested during the
review of another patch of the original series.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Cc: Daniel P. Berrange <berrange@redhat.com>
src/libxl/libxl_driver.c