[libvirt] [PATCH] bhyve: implement domainGetCPUStats

Ján Tomko jtomko at redhat.com
Wed Apr 30 13:08:47 UTC 2014


On 04/30/2014 02:57 PM, Daniel P. Berrange wrote:
> On Wed, Apr 30, 2014 at 02:51:18PM +0200, Ján Tomko wrote:
>>
>> The apps should check how many stat parameters are supported for a given pCPU
>> by calling virDomainGetCPUStats with nparams=0 and/or check the actual number
>> of stats returned.
>>
>> Could we return valid results for total CPU stats (start_cpu = -1) and just
>> not return any for all other start_cpu values?
> 
> Wouldn't that just be duplicating what we already provide via the
> virDomainGetInfo cpuTime field ? If so it doesn't seem like we need
> to add this feature to virDomainGetCPUStats too ?
> 

Right, it's possible but not really useful.

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/20140430/faed3532/attachment-0001.sig>


More information about the libvir-list mailing list