]> xenbits.xensource.com Git - libvirt.git/commit
Store a virCgroupPtr instance in qemuDomainObjPrivatePtr
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Mar 2013 14:40:29 +0000 (14:40 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Apr 2013 16:35:31 +0000 (17:35 +0100)
commit632f78caaf7cbc0d120c0d6fc123da89fc7da516
treeb2a478cc3ce6f147f8d26143eaa1a0ad0422fc40
parentc9b8cdfec13b31e65bad47b94b89f09426c99c17
Store a virCgroupPtr instance in qemuDomainObjPrivatePtr

Instead of calling virCgroupForDomain every time we need
the virCgrouPtr instance, just do it once at Vm startup
and cache a reference to the object in qemuDomainObjPrivatePtr
until shutdown of the VM. Removing the virCgroupPtr from
the QEMU driver state also means we don't have stale mount
info, if someone mounts the cgroups filesystem after libvirtd
has been started

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_cgroup.h
src/qemu/qemu_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c