]> git.ipfire.org Git - thirdparty/libvirt.git/commit
python: Use virNodeGetCPUMap where possible
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Tue, 13 Nov 2012 12:54:38 +0000 (13:54 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 15 Nov 2012 16:01:53 +0000 (09:01 -0700)
commita0db65663c8e9512abe743387fa4898f2d8eca26
tree549951f89e244a4148164b96af1137d7e6d62aab
parenta2b3d7cff8fa87f5e06cbc39ae03cf27b4e519d5
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>
python/libvirt-override.c