]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add a new param 'vcpu_time' to virDomainGetCPUStats
authorHu Tao <hutao@cn.fujitsu.com>
Wed, 9 May 2012 08:41:37 +0000 (16:41 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 17 May 2012 18:42:06 +0000 (12:42 -0600)
commitd29a7aaa1a2db03c6ef5aaec99b765f7327f3fcf
tree982ebfe2c9a5eca2d002ca3912dc6133b708aa4c
parentd9a269bc7450cd88eea0fa8befb70cab8525be87
Add a new param 'vcpu_time' to virDomainGetCPUStats

Currently virDomainGetCPUStats gets total cpu usage, which consists
of:

  1. vcpu usage: the physical cpu time consumed by virtual cpu(s) of
     domain
  2. hypervisor: `total cpu usage' - `vcpu usage'

The param 'vcpu_time' is for getting vcpu usages.
include/libvirt/libvirt.h.in
tools/virsh.c