1. 22 3月, 2018 1 次提交
    • J
      libxl: don't hardcode scheduler weight · 83edaf44
      Jim Fehlig 提交于
      Long ago in commit dfa1e1dd 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: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      83edaf44
  2. 22 2月, 2018 6 次提交
  3. 09 12月, 2017 1 次提交
  4. 13 11月, 2017 1 次提交
  5. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  6. 05 8月, 2017 1 次提交
    • J
      libxl: Add a test suite for libxl_domain_config generator · d8e8b63d
      Jim Fehlig 提交于
      The libxl library allows a libxl_domain_config object to be serialized
      from/to a JSON string. Use this to allow testing of the XML to
      libxl_domain_config conversion process. Test XML is converted to
      libxl_domain_config, which is then serialized to json. A json template
      corresponding to the test XML is converted to a libxl_domain_config
      object using libxl_domain_config_from_json(), and then serialized
      back to json using libxl_domain_config_to_json(). The two json
      docs are then compared.
      
      Using libxl to convert the json template to a libxl_domain_config
      object and then back to json provides a simple way to account for
      any changes or additions to the json representation across Xen
      releases.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      [update to v3.5.0-rc1, improve error reporting, use /bin/true emulator]
      Signed-off-by: NMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
      d8e8b63d