[libvirt] [PATCH 6/6] Implement pretty flag for vcpuinfo and nodecpumap

Eric Blake eblake at redhat.com
Thu Jun 5 15:35:07 UTC 2014


On 06/05/2014 09:32 AM, Ján Tomko wrote:
> On 06/05/2014 05:09 PM, Eric Blake wrote:
>> On 06/05/2014 05:25 AM, Ján Tomko wrote:
>>> Report CPU affinities / online CPUs in human-readable form (0-2,4)
>>> instead of yy-y when this flag is present.
>>
>> Nit on the commit message: Wouldn't 0-2,4 map to yyy-y ? And it's
>> unusual to pick 5 vcpus, 4 or 8 is more common...
>>
> 
> These are host CPUs, so it would probably be: 'yyy-y---' (if it has 8 CPUs).
> 
> I have (over?)simplified the proposal from the bz:
> CPU Affinity:   y: 0-3
>                 -: 4-127
> 
> and only included the CPUs the vcpu is pinned to, which means the total CPU
> count can't be determined from the output.

Maybe:

0-2,4 (out of 8)

so that we aren't losing the total CPU count?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140605/78726d45/attachment-0001.sig>


More information about the libvir-list mailing list