1. 13 10月, 2016 2 次提交
  2. 12 10月, 2016 32 次提交
  3. 11 10月, 2016 6 次提交
    • P
      qemu: Reuse virDomainDeGetVcpusTopology to calculate total vcpu count · 043ba4a4
      Peter Krempa 提交于
      Rather than multiplying sockets, cores, and threads use the new helper
      for getting the vcpu count resulting from the topology.
      043ba4a4
    • P
      conf: Sanitize cpu topology numbers · da0d82d1
      Peter Krempa 提交于
      Make sure that the topology results into a sane number of cpus (up to
      UINT_MAX) so that it can be sanely compared to the vcpu count of the VM.
      
      Additionally the helper added in this patch allows to fetch the total
      number the topology results to so that it does not have to be
      reimplemented later.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1378290
      da0d82d1
    • J
      util: Remove need for local 'nelems' · 6aba5346
      John Ferlan 提交于
      Since it's only used in loop - just go direct.
      6aba5346
    • J
      tests: Need to initialize data · e5c7ce8c
      John Ferlan 提交于
      If not initialized and the virAsprintf to jsonreply or fulllablel fails,
      then the call to qemuMonitorTestFree will take stack data.
      e5c7ce8c
    • J
      vsh: Fix some issues in auto completion code · f6a4ccdc
      John Ferlan 提交于
      1. Move the declaration of const vshCmdDef *help - it should be at the
         top of the "if" rather than in the middle.
      
      2. Change a comparison from && to || - without doing so we could crash
         on commands like 'virsh list' which would allow completion of some
         non -- option based on whatever was found in the current working
         directory and then as soon as that was completed, the next <tab>
         would crash since "opt" would be returned as NULL, but the check
         was dereferencing "&& opt->type"
      
      3. Before dereferencing opt->completer, be sure opt isn't NULL.
      f6a4ccdc
    • J
      util: Resolve memory leaks in virLogParse{Output|Filter} · 6de78c63
      John Ferlan 提交于
      In both virLogParseOutput and virLogParseFilter, rather than returning
      NULL, goto cleanup since it's possible that for each the first condition
      passes, but the || condition doesn't and thus we leak memory.
      6de78c63