Re: [libvirt] [PATCH v2] Report more correct information for cache control

2017-06-16 Thread Pavel Hrdina
On Fri, Jun 09, 2017 at 10:52:20AM +0200, Martin Kletzander wrote: > On some platforms the number of bits in the cbm_mask might not be > divisible by 4 (and not even by 2), so we need to properly count the > bits. Similar file, min_cbm_bits, is properly parsed and used, but if > the number is

Re: [libvirt] [PATCH v2] Report more correct information for cache control

2017-06-11 Thread Eli Qiao
Thanks martin, Looks good to me. On Friday, 9 June 2017 at 4:52 PM, Martin Kletzander wrote: > On some platforms the number of bits in the cbm_mask might not be > divisible by 4 (and not even by 2), so we need to properly count the > bits. Similar file, min_cbm_bits, is properly parsed and

[libvirt] [PATCH v2] Report more correct information for cache control

2017-06-09 Thread Martin Kletzander
On some platforms the number of bits in the cbm_mask might not be divisible by 4 (and not even by 2), so we need to properly count the bits. Similar file, min_cbm_bits, is properly parsed and used, but if the number is greater than one, we lose the information about granularity when reporting the