1. 10 8月, 2017 4 次提交
  2. 08 8月, 2017 1 次提交
    • J
      introduce virConfReadString · e9f32227
      Ján Tomko 提交于
      Rewrite virConfReadMem to take a null-terminated string.
      All the callers were calling strlen on it anyway.
      e9f32227
  3. 07 8月, 2017 4 次提交
  4. 06 8月, 2017 1 次提交
  5. 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
  6. 03 8月, 2017 4 次提交
    • C
      qemu: command: rework adding of default cpu model · 05583fcb
      Cole Robinson 提交于
      Certain XML features that aren't in the <cpu> block map to -cpu
      flags on the qemu cli. If one of these is specified but the user
      didn't explicitly pass an XML <cpu> model, we need to format a
      default model on the command line.
      
      The current code handles this by sprinkling this default cpu handling
      among all the different flag string formatting. Instead, switch it
      to do this just once.
      
      This alters some test output slightly: the previous code would
      write the default -cpu in some cases when no flags were actually
      added, so the output was redundant.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      05583fcb
    • J
      conf: fix formatting of smartcard devices · b4f7793c
      Ján Tomko 提交于
      My commit 0c1d8632 broke formatting of passthrough smartcard devices:
      <smartcard mode='passthrough' type='spicevmc'/>
      
      resulted in invalid XML:
          <smartcard mode='passthrough'>
             type='spicevmc'>
            <address type='ccid' controller='0' slot='0'/>
          </smartcard>
      
      Split out chardev source formatting function into two -
      one formatting the attributes and other formatting the subelements.
      Reported-by: NCole Robinson <crobinso@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      b4f7793c
    • P
      tests: deterministichash: Make hash tables arch-independent · f536b0dd
      Peter Krempa 提交于
      It turns out that our implementation of the hashing function is
      endian-dependent and thus if used on various architectures the testsuite
      may have different results. Work this around by mocking virHashCodeGen
      to something which does not use bit operations instead of just setting a
      deterministic seed.
      f536b0dd
    • N
      qemu: command: align disk serial check to schema · cc6d43bb
      Nikolay Shirokovskiy 提交于
      Disk serial schema has extra '.+' allowed characters in comparison
      with check in code. Looks like there is no reason for that as qemu
      allows any character AFAIK for serial. This discrepancy is originated
      in commit id '85d15b51' where the ability to add serial was added.
      
      Alter the disk-serial test to add a disk with all the possible
      characters listed as the serial value.
      cc6d43bb
  7. 02 8月, 2017 1 次提交
  8. 28 7月, 2017 4 次提交
  9. 27 7月, 2017 20 次提交