]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Don't ignore CPU tuning config if required cgroups are missing
authorJiri Denemark <jdenemar@redhat.com>
Wed, 29 Aug 2012 14:08:59 +0000 (16:08 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 31 Aug 2012 11:24:02 +0000 (13:24 +0200)
commit774eb45be6b8369616e306124c763a9ca866f3bc
treefdae0e4224b5da52ffc31a307e6f30be3e63f4bc
parentc3e7245af5e8b07c7f3d4c6548b10f0f2227f9e5
qemu: Don't ignore CPU tuning config if required cgroups are missing

When domain XML contains any of the elements for setting up CPU
scheduling parameters (period, quota, emulator_period, or
emulator_quota) we need cpu cgroup to enforce the configuration.
However, the existing code would just ignore silently such settings if
either cgroups were not available at all cpu cgroup was not available.
Moreover, APIs for manipulating CPU scheduler parameters were already
failing if cpu cgroup was not available. This patch makes cpu cgroup
mandatory for all domains that use CPU scheduling elements in their XML.
src/qemu/qemu_cgroup.c