]> xenbits.xensource.com Git - libvirt.git/commit
Show the real cpu shares value in live XML
authorJán Tomko <jtomko@redhat.com>
Tue, 4 Mar 2014 12:56:24 +0000 (13:56 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 26 Mar 2014 09:10:13 +0000 (10:10 +0100)
commit97814d8ab342c18297c7b39f3b5c208cbc47b038
treee27e2724e8eb49a72f7bf7d3a32a8400c4b52889
parentbdffab0d5c52d31bd71422b0b69665efb6650953
Show the real cpu shares value in live XML

Currently, the Linux kernel treats values of '0' and '1' as
the minimum of 2. Values larger than the maximum are changed
to the maximum.

Re-reading the shares value after setting it reflects this in
the live domain XML.
src/lxc/lxc_cgroup.c
src/lxc/lxc_driver.c
src/qemu/qemu_cgroup.c
src/qemu/qemu_driver.c