]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Make nodeGetInfo report the correct number of NUMA nodes.
authorChris Lalancette <clalance@redhat.com>
Thu, 11 Mar 2010 20:45:11 +0000 (15:45 -0500)
committerChris Lalancette <clalance@redhat.com>
Fri, 12 Mar 2010 13:38:34 +0000 (08:38 -0500)
commit83988bd43b293c65be674a03a778c21f93553c32
treede77beaa81426caaf7b6eea2e451c70ba7a1421e
parent3ebbc241a1052eea18bd1fb97325f5ba996b974d
Make nodeGetInfo report the correct number of NUMA nodes.

The nodeGetInfo code was always assuming that machine had a
single NUMA node, which is not correct.  The good news is that
libnuma gives us this information pretty easily, so let's
properly report it.

NOTE: With recent hardware starting to support CPU hot-add
and hot-remove, both this code and the nodeCapsInitNUMA()
code are quickly going to become obsolete.  We'll have to
think of a more dynamic solution for dealing with NUMA
nodes and CPUs that can come and go at will.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/nodeinfo.c