]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Use virNodeGetCPUMap if possible
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Tue, 13 Nov 2012 12:54:39 +0000 (13:54 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 15 Nov 2012 16:06:54 +0000 (09:06 -0700)
commit2bbe624e1d7055f0144ca9edb379708fb3d7f6de
tree40d72a7854d937bf0f813d9e460631020a20f05b
parenta0db65663c8e9512abe743387fa4898f2d8eca26
virsh: Use virNodeGetCPUMap if possible

Modified the places where virNodeGetInfo was used for the purpose
of obtaining the maximum node CPU number. Transparently falling
back to virNodeGetInfo in case of failure.
Wrote utility function vshNodeGetCPUCount to compute node CPU
number.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
tools/virsh-domain.c