1. 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
  2. 02 8月, 2017 1 次提交
  3. 28 7月, 2017 4 次提交
  4. 27 7月, 2017 25 次提交
  5. 26 7月, 2017 6 次提交