Re: [libvirt] [PATCH] cpustat: fix regression when cpus are offline

2012-10-26 Thread Eric Blake
On 10/26/2012 07:59 AM, Peter Krempa wrote: > On 10/25/12 22:57, Eric Blake wrote: >> It turns out that the cpuacct results properly account for offline >> cpus, and always returns results for every possible cpu, not just >> the online ones. So there is no need to check the map of online >> cpus i

Re: [libvirt] [PATCH] cpustat: fix regression when cpus are offline

2012-10-26 Thread Peter Krempa
On 10/25/12 22:57, Eric Blake wrote: It turns out that the cpuacct results properly account for offline cpus, and always returns results for every possible cpu, not just the online ones. So there is no need to check the map of online cpus in the first place, merely only a need to know the maximu

[libvirt] [PATCH] cpustat: fix regression when cpus are offline

2012-10-25 Thread Eric Blake
It turns out that the cpuacct results properly account for offline cpus, and always returns results for every possible cpu, not just the online ones. So there is no need to check the map of online cpus in the first place, merely only a need to know the maximum possible cpu. Meanwhile, virNodeGetC