1. 12 1月, 2016 9 次提交
  2. 11 1月, 2016 12 次提交
  3. 10 1月, 2016 6 次提交
  4. 09 1月, 2016 13 次提交
    • 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
    • J
      xenconfig: support vif bandwidth in sexpr parser and formatter · 1dd34bbb
      Jim Fehlig 提交于
      The xen sexpr config format has long supported specifying vif rate
      limiting, e.g.
      
        (device
          (vif
            (mac '00:16:3e:1b:b1:47')
            (rate '10240KB/s')
            ...
          )
        )
      
      Add support for mapping rate to and from <bandwidth> in the xenconfig
      sexpr 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 unit tests to check the conversion logic.
      
      This patch benefits both the old xen driver and the libxl driver.
      Both drivers gain support for vif bandwidth when converting to/from
      domXML and xen-sxpr. In addition, the old xen driver will now be
      able to handle vif 'rate' setting when communicating with xend.
      1dd34bbb
    • C
      qemu: Fix crash when defining XML with bogus emulator · 3d92a000
      Cole Robinson 提交于
      We weren't checking for failure of qemuCaps lookup
      3d92a000
    • L
      util: add missing newline · 79ba1076
      Laine Stump 提交于
      Somehow I managed to backspace over the newline between the closing
      brace and goto cleanup; in commit 36e244f3.
      79ba1076
    • A
      117375ca
    • C
      a4af45c0