Re: [libvirt] [PATCH v2 08/10] nodeinfo: Use nodeGetOnlineCPUBitmap() when parsing node

2015-07-22 Thread Andrea Bolognani
On Wed, 2015-07-22 at 10:34 +0200, Peter Krempa wrote: > > > @@ -432,6 +432,9 @@ virNodeParseNode(const char *sysfs_prefix, > > present_cpumap = nodeGetPresentCPUBitmap(sysfs_prefix); > > if (!present_cpumap) > > goto cleanup; > > +online_cpus_map = nodeGetOnlineCPUBitmap(sy

Re: [libvirt] [PATCH v2 08/10] nodeinfo: Use nodeGetOnlineCPUBitmap() when parsing node

2015-07-22 Thread Peter Krempa
On Mon, Jul 20, 2015 at 18:37:28 +0200, Andrea Bolognani wrote: > No need to look up the online status of each CPU separately when we > can get all the information in one go. > --- > src/nodeinfo.c | 16 +++- > 1 file changed, 7 insertions(+), 9 deletions(-) > > diff --git a/src/nodei

[libvirt] [PATCH v2 08/10] nodeinfo: Use nodeGetOnlineCPUBitmap() when parsing node

2015-07-20 Thread Andrea Bolognani
No need to look up the online status of each CPU separately when we can get all the information in one go. --- src/nodeinfo.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 7d0e6b0..c97dece 100644 --- a/src/nodeinfo.c +++