]> xenbits.xensource.com Git - libvirt.git/commit
nodeinfo: Add old kernel compatibility to nodeGetPresentCPUBitmap()
authorAndrea Bolognani <abologna@redhat.com>
Mon, 20 Jul 2015 16:37:24 +0000 (18:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Jul 2015 08:14:01 +0000 (10:14 +0200)
commit37f73e4ad5b049edbd92951330db2c071ca93b87
treef1f50ffe957180a2e9bafac3521c5cbe1cb96cb2
parenta2e2add1f1e253b5ba150446980aa32a161dc107
nodeinfo: Add old kernel compatibility to nodeGetPresentCPUBitmap()

If the cpu/present file is not available, we assume that the kernel
is too old to support non-consecutive CPU ids and return a bitmap
with all the bits set to represent this fact. This assumption is
already exploited in nodeGetCPUCount().

This means users of this API can expect the information to always
be available unless an error has occurred, and no longer need to
treat the NULL return value as a special case.

The error message has been updated as well.
src/nodeinfo.c