1. 12 1月, 2016 14 次提交
  2. 11 1月, 2016 12 次提交
  3. 10 1月, 2016 6 次提交
  4. 09 1月, 2016 8 次提交
    • C
      tests: qemuxml2xml: Wire up QEMUCaps usage · 8d48ce02
      Cole Robinson 提交于
      Future changes will make some of these tests dependent on specific
      QEMUCaps flags, so wire up the basic handling. Flags will be added
      in future patches.
      8d48ce02
    • C
      tests: add genericxml2xmltest · af3bd44f
      Cole Robinson 提交于
      For testing hypervisor independent XML handling. Right now it's just
      populated with an example test case.
      af3bd44f
    • C
      tests: qemuxml2xml: drop early file loading · f8ce0143
      Cole Robinson 提交于
      For the standard active/inactive XML testing, if we leave the file loading
      up to the generic XML2XML infrastructure, we get the benefit of
      VIR_TEST_REGENERATE_OUTPUT, at the price of a few more disk reads. Seems
      worth it.
      f8ce0143
    • C
      tests: Share domain XML2XML compare helper · 5770c170
      Cole Robinson 提交于
      This creates a shared function in testutils.c that consolidates all
      the slightly different implementations.
      5770c170
    • C
      tests: Fix running schematests directly from topdir · ace4aecd
      Cole Robinson 提交于
      Previously it failed like:
      
      $ ./tests/domainschematest
      ./tests/domainschematest: line 4: ./test-lib.sh: No such file or directory
      ace4aecd
    • C
      tests: Add newlines with VIR_TEST_REGENERATE_OUTPUT · 825d357a
      Cole Robinson 提交于
      Since test files are formatted predictably nowadays, we can make
      VIR_TEST_REGENERATE_OUTPUT handle most cases for us with a simple
      replacement. test-wrap-argv.pl is still canon, but this bit makes
      it easier to confirm test output changes during active development.
      825d357a
    • J
      libxl: support vif outgoing bandwidth QoS · f988ecfb
      Jim Fehlig 提交于
      The libxl_device_nic structure supports specifying an outgoing rate
      limit based on a time interval and bytes allowed per interval. In xl
      config a rate limit is specified as "<RATE>/s@<INTERVAL>". INTERVAL
      is optional and defaults to 50ms.
      
      libvirt expresses outgoing limits by average (required), peak, burst,
      and floor attributes in units of KB/s. This patch supports the outgoing
      bandwidth limit by converting the average KB/s to bytes per interval
      based on the same default interval (50ms) used by xl.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      f988ecfb
    • J
      xenconfig: support vif bandwidth in xm and xl parser and formatter · ec63000a
      Jim Fehlig 提交于
      Both xm and xl config have long supported specifying vif rate
      limiting, e.g.
      
      vif = [ 'mac=00:16:3E:74:3d:76,bridge=br0,rate=10MB/s' ]
      
      Add support for mapping rate to and from <bandwidth> in the xenconfig
      parser and formatter. rate is mapped to the required 'average' attribute
      of the <outbound> element, e.g.
      
        <interface type='bridge'>
          ...
          <bandwidth>
            <outbound average='10240'/>
          </bandwidth>
        </interface>
      
      Also add a unit test to check the conversion logic.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      ec63000a