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

Eric Blake eblake at redhat.com
Mon Sep 16 14:28:53 UTC 2013


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.

-- 
Eric Blake   eblake 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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130916/8c274384/attachment-0001.sig>


More information about the libvir-list mailing list