libvirt/tests/libxlxml2domconfigdata
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
..
basic-hvm.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
basic-hvm.xml Misc XML schema fixes for libxl 2017-11-30 10:20:06 +00:00
basic-pv.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
basic-pv.xml
cpu-shares-hvm.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
cpu-shares-hvm.xml libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
moredevs-hvm.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
moredevs-hvm.xml
multiple-ip.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
multiple-ip.xml tests: add test for multiple IPs for libxl and xenconfig driver 2017-12-08 14:04:57 -07:00
variable-clock-hvm.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
variable-clock-hvm.xml libxl: add support for specifying clock offset and adjustment 2018-02-21 12:28:49 -07:00
vnuma-hvm.json libxl: don't hardcode scheduler weight 2018-03-21 15:12:24 -06:00
vnuma-hvm.xml Misc XML schema fixes for libxl 2017-11-30 10:20:06 +00:00