]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
nodeinfo: Increase the num of CPU thread siblings to a larger value
authorWei Huang <wei@redhat.com>
Thu, 26 Mar 2015 04:48:13 +0000 (00:48 -0400)
committerJán Tomko <jtomko@redhat.com>
Fri, 27 Mar 2015 09:20:56 +0000 (10:20 +0100)
commitc13de016916c826ad4d35157ee6a52baee87ac22
treea6b1678397fee0abbbdc8b0c148dfb58e289c36c
parentdfc708750bb62cabd4617f3c0cf29beb27f28c28
nodeinfo: Increase the num of CPU thread siblings to a larger value

Current libvirt can only handle up to 1023 bytes when it
reads Linux sysfs topology/thread_siblings. This isn't enough for
Linux distributions that support a large value. This patch fixes
the problem by using VIR_ALLOC()/VIR_FREE(), instead of using a
fixed-size (1024) local char array. In the meanwhile
SYSFS_THREAD_SIBLINGS_LIST_LENGTH_MAX is increased to 8192 which
should be large enough for a foreseeable future.

Signed-off-by: Wei Huang <wei@redhat.com>
src/nodeinfo.c