python: Use virNodeGetCPUMap where possibleCVE-2012-3411
commitca7f58d203971b219bb965f20500cf463fdbed58
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Tue, 13 Nov 2012 12:54:38 +0000 (13 13:54 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 15 Nov 2012 16:01:53 +0000 (15 09:01 -0700)
tree5e5b32770fb96439b0b836c063cdb30e14c3fdd4
parent15cfee2f5075cd6e3a8b57c0176cb8580caace48
python: Use virNodeGetCPUMap where 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 a utility function getPyNodeCPUCount for that purpose.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
libvirt-override.c