[libvirt] [PATCH 2/3] python: Use virNodeGetCPUMap where possible

Eric Blake eblake at redhat.com
Wed Oct 31 01:28:41 UTC 2012


On 10/26/2012 07:19 AM, Viktor Mihajlovski wrote:
> 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.
> 
> Signed-off-by: Viktor Mihajlovski <mihajlov at linux.vnet.ibm.com>
> ---
>  python/libvirt-override.c | 100 ++++++++++++++++++++++++++++++++++------------
>  1 file changed, 74 insertions(+), 26 deletions(-)

Unlike patch 1/3/, this is the correct approach of using the only public
API for getting at the full number, and properly falling back to the
older API.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121030/d91b5149/attachment-0001.sig>


More information about the libvir-list mailing list