1. 24 1月, 2013 7 次提交
    • J
      parallels: Resolve some resource leaks · 50dc7015
      John Ferlan 提交于
      Be sure to VIR_FREE(accel) and moved virDomainVideoDefFree() within no_memory
      label to be consistent
      
      Resolve resource leak in parallelsApplyIfaceParams() when the 'oldnet' is
      allocated locally. Also virCommandFree(cmd) as necessary.
      50dc7015
    • P
      test: Add support for thread and core information for the test driver · e3818b2a
      Peter Krempa 提交于
      This patch adds demo processor topology information for the test driver.
      e3818b2a
    • P
      capabilities: Add additional data to the NUMA topology info · 79a003f9
      Peter Krempa 提交于
      This patch adds data gathering to the NUMA gathering files and adds
      support for outputting the data. The test driver and xend driver need to
      be adapted to fill sensible data to the structure in a future patch.
      79a003f9
    • P
      capabilities: Switch CPU data in NUMA topology to a struct · 87b4c10c
      Peter Krempa 提交于
      This will allow storing additional topology data in the NUMA topology
      definition.
      
      This patch changes the storage type and fixes fallout of the change
      across the drivers using it.
      
      This patch also changes semantics of adding new NUMA cell information.
      Until now the data were re-allocated and copied to the topology
      definition. This patch changes the addition function to steal the
      pointer to a pre-allocated structure to simplify the code.
      87b4c10c
    • P
    • V
      S390: Enhance memballoon handling for virtio-s390 · 053e813a
      Viktor Mihajlovski 提交于
      The way in that memory balloon suppression was handled for S390
      is flawed for a number or reasons.
      1. Just preventing the default balloon to be created in the case
         of VIR_ARCH_S390[X] is not sufficient. An explicit memballoon
         element in the guest definition will still be honored, resulting
         both in a -balloon option and the allocation of a PCI bus address,
         neither being supported.
      2. Prohibiting balloon for S390 altogether at a domain_conf level
         is no good solution either as there's work in progress on the QEMU
         side to implement a virtio-balloon device, although in
         conjunction with a new machine type. Suppressing the balloon
         should therefore be done at the QEMU driver level depending
         on the present capabilities.
      
      Therefore we remove the conditional suppression of the default
      balloon in domain_conf.c.
      Further, we are claiming the memballoon device for virtio-s390
      during device address assignment to prevent it from being considered
      as a PCI device.
      Finally, we suppress the generation of the balloon command line option
      if this is a virtio-s390 machine.
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      053e813a
    • V
      qemu: Re-add driver unlock to qemuDomainSendKey · 7b3a9f75
      Viktor Mihajlovski 提交于
      Should have been done in commit 56fd5134 already, but was missed
      due to oversight: qemuDomainSendKey didn't release the driver lock
      in its cleanup section. This fixes an issue introduced by commit
      8c5d2bad.
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      7b3a9f75
  2. 23 1月, 2013 23 次提交
  3. 22 1月, 2013 10 次提交
    • J
      storage: Add coverity[dead_error_condition] to avoid error · 5f579c0c
      John Ferlan 提交于
      The local redefinition of PED_PARTITION_PROTECTED results in the error
      but is not a problem especially if the built code doesn't have the latest
      definitions.
      5f579c0c
    • J
      network: Add coverity[leaked_handle] to ignore error · 011d4005
      John Ferlan 提交于
      On error, the 'tapfd' in networkStartNetworkVirtual() is synonymous
      with 'macTapIfName' and will be closed in the appropriate error path.
      011d4005
    • J
      remote: Avoid coverity[leaked_storage] message. · 9cc0f8d5
      John Ferlan 提交于
      Upon successful return of virNetClientStreamEventAddCallback() the
      allocated cbdata field will be freed by virNetClientStreamEventRemoveCallback()
      as cbOpaque using the free function remoteStreamCallbackFree().
      9cc0f8d5
    • J
      qemu: Add coverity[negative_returns] tag · 6c2e4c38
      John Ferlan 提交于
      This avoids "Event negative_returns: A negative constant "-1" is passed as
      an argument to a parameter that cannot be negative.".  The called function
      uses -1 to determine whether it needs to traverse all the hostdevs.
      6c2e4c38
    • J
      rpc: Add coverity[dead_error_begin] tag · 28cd3dc4
      John Ferlan 提交于
      Coverity misses the nuance of VIR_FREE(privkey) setting privkey = NULL when
      if (!(virFileExists(privkey))) is true and thus declares the code dead.
      28cd3dc4
    • J
      xen: Add coverity[ptr_arith] and [sign_extension] tags · 8b55992f
      John Ferlan 提交于
      The old cpu bitmap setting algorithm causes a couple of complaints which
      have been tagged.
      8b55992f
    • J
      nodeinfo: Add coverity[dead_error_begin] and [returned_null] tags · 316ed412
      John Ferlan 提交于
      The use of switch statements inside a bounded for loop resulted in some
      false positives regarding the "default:" label which cannot be reached
      since each of the other case statements use the possible for loop values.
      A [dead_error_begin] was added before the default label.
      
      Commit id ebdbe25a adjusted the algorithm and the caller guarantees that
      the 'params' will have a '_' in the name being searched. Add the [returned_null]
      tag to the two instances.
      316ed412
    • J
      lxc: Add coverity[dead_error_begin] tag in switch stmts · 15666e02
      John Ferlan 提交于
      The use of switch statements inside a bounded for loop resulted in some
      false positives regarding the "default:" label which cannot be reached
      since each of the other case statements use the possible for loop values.
      15666e02
    • J
      xend: Address some Coverity false positives · 751bb8ce
      John Ferlan 提交于
      The various _for_i loops with both u.s.car and u.s.cdr were being reported
      as COPY_PASTE errors by Coverity.  This just quiets those messages.
      751bb8ce
    • J
      selinux: Resolve resource leak using the default disk label · 05cc0351
      John Ferlan 提交于
      Commit id a994ef2d changed the mechanism to store/update the default
      security label from using disk->seclabels[0] to allocating one on the
      fly. That change allocated the label, but never saved it.  This patch
      will save the label. The new virDomainDiskDefAddSecurityLabelDef() is
      a copy of the virDomainDefAddSecurityLabelDef().
      05cc0351