[libvirt] [PATCHv2] cgroup: Move [qemu|lxc]GetCpuBWStatus to vicgroup.c and refactor it

Peter Krempa pkrempa at redhat.com
Mon Sep 16 14:42:48 UTC 2013


On 09/16/13 16:28, Eric Blake wrote:
> On 09/16/2013 03:33 AM, Peter Krempa wrote:
>> The function existed in two identical instances in lxc and qemu. Move it
>> to vircgroup.c and simplify it. Refactor the callers too.
>> ---
>>
>> Notes:
>>     Version 2:
>>     - added a fallback implementation that doesn't spam logs with errors
>>
>>  src/libvirt_private.syms |  1 +
>>  src/lxc/lxc_driver.c     | 52 +++++-------------------------------------------
>>  src/qemu/qemu_driver.c   | 51 +++++------------------------------------------
>>  src/util/vircgroup.c     | 38 +++++++++++++++++++++++++++++++++++
>>  src/util/vircgroup.h     |  2 ++
>>  5 files changed, 51 insertions(+), 93 deletions(-)
> 
> ACK.
> 

Pushed; Thanks.

Peter

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


More information about the libvir-list mailing list