1. 25 8月, 2016 3 次提交
  2. 17 8月, 2016 1 次提交
  3. 16 8月, 2016 4 次提交
  4. 04 8月, 2016 3 次提交
  5. 03 8月, 2016 1 次提交
  6. 02 8月, 2016 5 次提交
  7. 01 8月, 2016 1 次提交
  8. 27 7月, 2016 4 次提交
  9. 25 7月, 2016 6 次提交
  10. 13 7月, 2016 1 次提交
  11. 12 7月, 2016 1 次提交
  12. 11 7月, 2016 3 次提交
  13. 07 7月, 2016 3 次提交
  14. 01 7月, 2016 1 次提交
  15. 30 6月, 2016 1 次提交
  16. 27 6月, 2016 2 次提交
    • L
      qemu: eliminate memory leaks when converting NetDefs to type='ethernet' · a71fd239
      Laine Stump 提交于
      in qemuConnectDomainXMLToNative. This function was only accounting for
      about 1/10 of all the allocated items in the NetDef prior to memseting
      it to all 0's. On top of that, it was going to great pains to learn
      the name of the bridge device, but then never doing anything useful
      with it (just putting it into data.ethernet.dev, which is *never* used
      when building a qemu commandline). (I think this again all started off
      as code with good intentions, but it was never completed, and instead
      was just Frankensteinically cargo-culted into the odd mish mash we
      have today).
      
      The resulting code is much simpler, produces exactly the same output,
      and doesn't leak memory.
      a71fd239
    • L
      qemu: don't set/clear NetDef IP addresses in qemuConnectDomainXMLToNative() · 91045092
      Laine Stump 提交于
      This patch removes the expanded and duplicated code that all sprung
      out of two well-intentioned-but-useless settings of
      net->data.(bridge|ethernet).ipaddr.
      
      qemu has never supported even a single IP address in the interface
      config, much less a list of them. All of the instances of "clearing
      out the IP addresses" that are now in this function originated with
      commit d8dbd6 "Basic domain XML conversions for Xen/QEMU drivers" in
      May 2009, but even then the single "ipaddr" in the struct for
      type='ethernet' and type='bridge' wasn't used in the qemu driver (only
      in xen and openvz). Since then anyone who added a new interface type
      also tacked on another unnecessary clearing of ipaddr, and when it was
      made into a list of IPs (so far supported only by the LXC driver) this
      simple setting was turned into a loop (well, multiple loops) to clear
      them all.
      91045092