[PATCHv2 0/2] Fix zero cpu shares handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Treat 0 as a valid value for cputune shares.

v1: https://www.redhat.com/archives/libvir-list/2014-March/msg00215.html
v2:
squashed the fixup that was sent as a separate patch to the first commit
and fixed two more occurences (one of them pointed out by Martin)

Ján Tomko (2):
  Treat zero cpu shares as a valid value
  Show the real cpu shares value in live xml

 src/conf/domain_conf.c                             | 12 ++++----
 src/conf/domain_conf.h                             |  1 +
 src/lxc/lxc_cgroup.c                               | 13 ++++++--
 src/lxc/lxc_driver.c                               |  8 ++++-
 src/lxc/lxc_native.c                               |  8 +++--
 src/parallels/parallels_driver.c                   |  1 +
 src/qemu/qemu_cgroup.c                             | 14 ++++++---
 src/qemu/qemu_command.c                            |  2 +-
 src/qemu/qemu_driver.c                             | 13 ++++++--
 src/vmx/vmx.c                                      |  3 +-
 .../qemuxml2argv-cputune-zero-shares.args          |  5 ++++
 .../qemuxml2argv-cputune-zero-shares.xml           | 35 ++++++++++++++++++++++
 tests/qemuxml2argvtest.c                           |  1 +
 tests/qemuxml2xmltest.c                            |  1 +
 14 files changed, 97 insertions(+), 20 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-cputune-zero-shares.args
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-cputune-zero-shares.xml

-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]