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

Ján Tomko jtomko at redhat.com
Thu Jun 5 15:32:01 UTC 2014


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.

Jan

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


More information about the libvir-list mailing list