1. 23 2月, 2017 5 次提交
    • N
      vz: make more accurate closing connection to sdk · 0518aae3
      Nikolay Shirokovskiy 提交于
      Current code for example can call unsubscribe if connection
      succeeds but subscribing fails. This will probabaly lead
      only to spurious error messages without any actual inconsistencies
      but nevertheless.
      0518aae3
    • A
      qemu: Allow multiple bridges when pci-bridges is not available · 011d5465
      Andrea Bolognani 提交于
      qemuDomainAssignPCIAddresses() hardcoded the assumption
      that the only way to support devices on a non-zero bus is
      to add one or more pci-bridges; however, since we now
      support a large selection of PCI controllers that can be
      used instead, the assumption is no longer true.
      
      Moreover, this check was always redundant, because the
      only sensible time to check for the availability of
      pci-bridge is when building the QEMU command line, and
      such a check is of course already in place.
      
      In fact, there were *two* such checks, but since one of
      the two was relying on the incorrect assumption explained
      above, and it was redundant anyway, it has been dropped.
      011d5465
    • A
      conf: Make switch statements more strict · 77edbf51
      Andrea Bolognani 提交于
      When switching over the values in the virDomainControllerModelPCI
      enumeration, make sure the proper cast is in place so that the
      compiler can warn us when the coverage is not exaustive.
      
      For the same reason, remove the 'default' case from one of the
      existing switch statements.
      77edbf51
    • A
      qemu: Make switch statements more strict · 50d35953
      Andrea Bolognani 提交于
      When switching over the values in the virDomainControllerModelPCI
      enumeration, make sure the proper cast is in place so that the
      compiler can warn us when the coverage is not exaustive.
      
      For the same reason, fold some unstructured checks (performed by
      comparing directly against some values in the enumeration) inside
      an existing switch statement.
      50d35953
    • A
      conf: Remove dead code · c6a0fb8e
      Andrea Bolognani 提交于
      The switch in virDomainPCIControllerModelToConnectType()
      had some code that, while techically part of the
      _PCIE_SWITCH_DOWNSTREAM_PORT case, was in fact dead due
      to the early return.
      
      Get rid of the dead code, and fix the inaccurate function
      description while at it.
      c6a0fb8e
  2. 22 2月, 2017 10 次提交
  3. 21 2月, 2017 24 次提交
  4. 20 2月, 2017 1 次提交
    • P
      Disallow inclusion of files from src/conf into src/utils · b4c73106
      Peter Krempa 提交于
      The utils code should stay separated from other code (except for very
      well justified cases). Unfortunately commit 272769be
      made it trivial to break the separation (and not get slapped by the
      syntax-check rule) by adding -I src/conf to the CFLAGS for utils.
      
      Remove this shortcut and except the two offenders from the syntax check
      so that the codebase can be kept separated.
      b4c73106