[libvirt] [PATCHv5 2/2] Adds support to param 'vcpu_time' in qemu_driver.

Eric Blake eblake at redhat.com
Fri May 18 14:55:32 UTC 2012


On 05/18/2012 03:09 AM, Hu Tao wrote:
> On Thu, May 17, 2012 at 03:56:48PM -0600, Eric Blake wrote:
>> From: Hu Tao <hutao at cn.fujitsu.com>
>>
>> This involves setting the cpuacct cgroup to a per-vcpu granularity,
>> as well as summing the each vcpu accounting into a common array.
>> Now that we are reading more than one cgroup file, we double-check
>> that cpus weren't hot-plugged between reads to invalidate our
>> summing.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>>
>> diff from v4: rewrite qemu code to use fewer malloc calls, fix
>> some logic bugs
>>

> 
> ACK.

Thanks for testing the common case, even if you didn't cover the case of
offline cpus.  I've gone ahead and pushed this.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list