1. 28 8月, 2018 2 次提交
    • J
      qemu: initialize variables in qemuParseCommandLine · ea119118
      Ján Tomko 提交于
      Commit 6700062f introduced a jump to error which skipped the
      initialization of def:
      
      qemu/qemu_parse_command.c:1870:9: error: variable 'def' is
      used uninitialized whenever 'if' condition is true
            [-Werror,-Wsometimes-uninitialized]
          if (!(qemuCaps = virQEMUCapsCacheLookup(capsCache, progargv[0])))
      
      Initialize def to fix this warning and qemuCaps, to prevent
      a future error like this.
      Signed-off-by: NJán Tomko <jtomko@redhat.com>
      ea119118
    • D
      qemu: fix default machine for argv -> xml convertor · 6700062f
      Daniel P. Berrangé 提交于
      Historically the argv -> xml convertor wanted the same default machine
      as we'd set when parsing xml. The latter has now changed, however, to
      use a default defined by libvirt. The former needs fixing to again
      honour the default QEMU machine.
      
      This exposed a bug in handling for the aarch64 target, as QEMU does not
      define any default machine. Thus we should not having been accepting
      argv without a -machine provided.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      6700062f
  2. 17 8月, 2018 3 次提交
  3. 04 5月, 2018 1 次提交
  4. 18 4月, 2018 1 次提交
  5. 10 4月, 2018 1 次提交
  6. 25 11月, 2017 1 次提交
  7. 13 11月, 2017 1 次提交
  8. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  9. 19 10月, 2017 2 次提交
  10. 18 10月, 2017 1 次提交
  11. 16 10月, 2017 1 次提交
  12. 11 10月, 2017 1 次提交
  13. 10 10月, 2017 1 次提交
  14. 04 10月, 2017 1 次提交
  15. 22 9月, 2017 1 次提交
  16. 20 9月, 2017 2 次提交
  17. 27 8月, 2017 3 次提交
  18. 24 7月, 2017 1 次提交
  19. 21 7月, 2017 1 次提交
  20. 18 4月, 2017 1 次提交
    • P
      qemu: refactor qemuDomainMachine* functions · ac97658d
      Pavel Hrdina 提交于
      Introduce new wrapper functions without *Machine* in the function
      name that take the whole virDomainDef structure as argument and
      call the existing functions with *Machine* in the function name.
      
      Change the arguments of existing functions to *machine* and *arch*
      because they don't need the whole virDomainDef structure and they
      could be used in places where we don't have virDomainDef.
      Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
      ac97658d
  21. 09 3月, 2017 1 次提交
  22. 03 3月, 2017 1 次提交
    • A
      qemu: Use ARCH_IS_X86() more · 4b338729
      Andrea Bolognani 提交于
      In a few cases, we checked for VIR_ARCH_X86_64 and
      VIR_ARCH_I686 separately: change all those to use the
      ARCH_IS_X86() macro instead.
      4b338729
  23. 24 2月, 2017 1 次提交
  24. 25 11月, 2016 1 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
  25. 21 11月, 2016 5 次提交
  26. 22 10月, 2016 1 次提交
  27. 20 10月, 2016 1 次提交
    • J
      qemu: Introduce qemuDomainChardevPrivatePtr · 5f2a1327
      John Ferlan 提交于
      Modeled after the qemuDomainHostdevPrivatePtr (commit id '27726d8c'),
      create a privateData pointer in the _virDomainChardevDef to allow storage
      of private data for a hypervisor in order to at least temporarily store
      secret data for usage during qemuBuildCommandLine.
      
      NB: Since the qemu_parse_command (qemuParseCommandLine) code is not
      expecting to restore the secret data, there's no need to add code
      code to handle this new structure there.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      5f2a1327
  28. 26 9月, 2016 1 次提交
  29. 22 9月, 2016 1 次提交