1. 12 8月, 2017 1 次提交
  2. 10 8月, 2017 7 次提交
  3. 08 8月, 2017 6 次提交
  4. 07 8月, 2017 11 次提交
  5. 06 8月, 2017 2 次提交
  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
  7. 04 8月, 2017 3 次提交
  8. 03 8月, 2017 9 次提交
    • C
      qemu: command: explicitly error for non-x86 default CPU · 64665fa8
      Cole Robinson 提交于
      The code only currently handles writing an x86 default -cpu
      argument, and doesn't know anything about other architectures.
      Let's make this explicit rather than leaving ex. qemu ppc64 to
      throw an error about -cpu qemu64
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      64665fa8
    • 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
    • P
      util: hash: Make virHashCodeGen mockable · 0b1ecf7b
      Peter Krempa 提交于
      Export the function from the util module so that dynamic linking can
      override it.
      0b1ecf7b
    • P
      util: hash: Include stdbool.h in the header file · 8982f3ab
      Peter Krempa 提交于
      The functions declared in virhash.h return bool, but stdbool.h was not
      included.
      8982f3ab
    • 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
    • J
      qemu: Check for existence of provided *_tls_x509_cert_dir · dc4c2f75
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1458630
      
      Introduce virQEMUDriverConfigTLSDirResetDefaults in order to check
      if the defaultTLSx509certdir was changed, then change the default
      for any other *TLSx509certdir that was not set to the default default.
      
      Introduce virQEMUDriverConfigValidate to validate the existence of
      any of the *_tls_x509_cert_dir values that were uncommented/set,
      incuding the default.
      
      Update the qemu.conf description for default to describe the consequences
      if the default directory path does not exist.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      dc4c2f75
    • J
      docs: Fix syntax-check error · 89475046
      John Ferlan 提交于
      Commit id '94d2d642' caused a syntax-error check to fail:
      
      docs/Makefile.am:276:	$(AM_V_GEN)sed -e '/<span id="php_placeholder"><\/span>/r '"$(srcdir)/$@.code.in" \
      maint.mk: Wrap long lines in Makefiles
      cfg.mk:721: recipe for target 'sc_prohibit_long_lines' failed
      make: *** [sc_prohibit_long_lines] Error 1
      make: *** Waiting for unfinished jobs....
      
      Altered the line to put another line wrap between sed and -e
      89475046