libvirt/src/libxl
Jim Fehlig 83edaf4435 libxl: don't hardcode scheduler weight
Long ago in commit dfa1e1dd53 the scheduler weight was accidentally
hardcoded to 1000. Weight is a setting with no unit since it is
relative to the weight of other domains. If no weight is specified,
libxl defaults to 256.

Instead of hardcoding the weight to 1000, honor any <shares> specified
in <cputune>. libvirt's notion of shares is synonomous to libxl's
scheduler weight setting. If shares is unspecified, defer default
weight setting to libxl.

Removing the hardcoded weight required some test fixup. While at it,
add an explicit test for <shares> conversion to scheduler weight.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-03-21 15:12:24 -06:00
..
libvirtd_libxl.aug libxl: keepalive messages support 2016-02-09 21:14:12 -07:00
libxl_capabilities.c cpu: Drop unused parameter from cpuDecode 2017-10-16 09:21:52 +02:00
libxl_capabilities.h libxl: implement connectGetDomainCapabilities 2016-06-13 14:13:17 -06:00
libxl_conf.c libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
libxl_conf.h port allocator: make port range constant object 2018-02-22 13:52:45 +01:00
libxl_domain.c port allocator: remove range check in release function 2018-02-22 13:52:45 +01:00
libxl_domain.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libxl_driver.c libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl_driver.h libxl: Use standard format for source file copyright notice 2013-09-03 23:53:48 -06:00
libxl_logger.c libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_logger.h libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_migration.c libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl_migration.h libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl.conf docs: Fix typo deamon -> daemon 2017-09-04 15:07:17 +02:00
Makefile.inc.am make: split libxl driver build rules into libxl/Makefile.inc.am 2018-02-23 13:14:26 +00:00
test_libvirtd_libxl.aug.in libxl: keepalive messages support 2016-02-09 21:14:12 -07:00