Re: [libvirt] [PATCH 09/10] util: Remove cbm_mask from virResctrlInfoPerType

2018-06-07 Thread Ján Tomko
On Thu, Jun 07, 2018 at 03:54:30PM +0200, Martin Kletzander wrote: It was used just temporarily to do a calculation, no need to keep that around. Also use virBitmap in the code instead of reimplementing two of its existing functions. And move the counting part next to where the value is read.

[libvirt] [PATCH 09/10] util: Remove cbm_mask from virResctrlInfoPerType

2018-06-07 Thread Martin Kletzander
It was used just temporarily to do a calculation, no need to keep that around. Also use virBitmap in the code instead of reimplementing two of its existing functions. And move the counting part next to where the value is read. Signed-off-by: Martin Kletzander --- src/util/virresctrl.c | 37