[libvirt] [PATCH] bhyve: implement domainGetCPUStats

Roman Bogorodskiy bogorodskiy at gmail.com
Thu Apr 24 09:14:13 UTC 2014


  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)?

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140424/2e021af1/attachment-0001.sig>


More information about the libvir-list mailing list