1. 27 6月, 2016 3 次提交
    • 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
    • L
      global: consistently use IP rather than Ip in identifiers · 22a6873a
      Laine Stump 提交于
      I'm tired of mistyping this all the time, so let's do it the same all
      the time (similar to how we changed all "Pci" to "PCI" awhile back).
      
      (NB: I've left alone some things in the esx and vbox drivers because
      I'm unable to compile them and they weren't obviously *not* a part of
      some API. I also didn't change a couple of variables named,
      e.g. "somethingIptables", because they were derived from the name of
      the "iptables" command)
      22a6873a
  2. 25 6月, 2016 6 次提交
  3. 24 6月, 2016 13 次提交
  4. 23 6月, 2016 4 次提交
    • C
      qemu: command: Error on accel2d · 7490fdec
      Cole Robinson 提交于
      qemu doesn't have any accel2d support wired up. Explicitly error
      if a user tries it out, or typos the accel3d option
      7490fdec
    • C
      qemu: command: Error on accel3d with non-virtio · 9a4703a3
      Cole Robinson 提交于
      We should be raising an error if accel3d is present for any
      non-virtio video as well, incase someone tries it for say 'qxl'
      9a4703a3
    • N
      qemu: make monitor command API available during async jobs · 6606ea96
      Nikolay Shirokovskiy 提交于
        One can not issue monitor commands manually during async calls thru
      designated API while this could be useful for testing/debugging purposes.
      qemuDomainQemuMonitorCommand uses job of type QEMU_JOB_MODIFY and any async
      call disable parallel execution of this type of job. The only state that is
      changed is taint variable. AFAIU the only place we can mess is resetting
      taint flag in qemuProcessStop routine under some async job. But this can not
      happen thanx to both virDomainObjIsActive check in qemuDomainQemuMonitorCommand
      and resetting active status in qemuProcessStop before taint flag.
      
        Change job type to QEMU_JOB_QUERY and thus make the API call available for
      most of async jobs.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      6606ea96
    • J
      Add newDomain parameter to qemuDomainAssignAddresses · 8b04ce59
      Ján Tomko 提交于
      Pass 'true' if we are not dealing with a migration.
      8b04ce59
  5. 22 6月, 2016 14 次提交