]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: don't error out when cgroups don't exist
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Jul 2014 07:55:29 +0000 (09:55 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Jul 2014 13:09:54 +0000 (15:09 +0200)
commit0c04906fa8872e4f7cdb19f59cbcb26b9bd02b0e
tree6e8f40677529bc17e083a289d535123e48389c81
parentfd59f6c83e5f3dbb44ad93de0568f9f3158fbb4d
qemu: don't error out when cgroups don't exist

When creating cgroups for vcpu and emulator threads whilst starting a
domain, we explicitly skip creating those cgroups in case priv->cgroup
is NULL (cgroups not supported) because SetAffinity() serves the same
purpose.  If the host supports only some cgroups (the ones we need are
either unmounted or disabled in qemu.conf), we error out with weird
message even though we could continue starting the domain.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1097028

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_cgroup.c