[libvirt] [PATCH] bhyve: implement domainGetCPUStats

Ján Tomko jtomko at redhat.com
Thu Apr 24 09:53:36 UTC 2014


On 04/24/2014 11:14 AM, Roman Bogorodskiy wrote:
>   Ján Tomko wrote:
> 
>> On 04/22/2014 07:44 PM, Roman Bogorodskiy wrote:
>>> For per CPU stats, implement virBhyveGetDomainPercpuStats() that
>>> uses bhyvectl tool to obtain the guest's vcpu stats.
>>>
>>
>> In virDomainGetCPUStats API, the start_cpu and ncpus parameters refer to host
>> CPUs, not the vcpus.
> 
> Looks like I misunderstood the API. :-(
> 
> In other words, this API operates with the host CPUs? So if user calls
> it with e.g. start_cpu = 2 and ncpus = 2, I should return info on how
> much time host CPUs 2 and 3 spend on the given domain (as the opposite
> to how much time domain's vcpu 2 and vcpu 3 were busy)?
> 

Yes.

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/20140424/43176947/attachment-0001.sig>


More information about the libvir-list mailing list