1. 30 4月, 2019 1 次提交
  2. 16 4月, 2019 2 次提交
  3. 04 3月, 2019 1 次提交
  4. 07 2月, 2019 1 次提交
  5. 30 7月, 2018 1 次提交
  6. 27 7月, 2018 4 次提交
  7. 26 7月, 2018 2 次提交
    • M
      lxc: Don't mangle @cfg refs in virLXCProcessBuildControllerCmd · e6d3e46b
      Michal Privoznik 提交于
      The config object is refed but unrefed only on error which leaves
      refcount unbalanced on successful return.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      e6d3e46b
    • M
      lxc: Don't leak @veths in virLXCProcessStart · 696a9faa
      Michal Privoznik 提交于
      The individual strings are freed, but the array is never freed.
      
       8 bytes in 1 blocks are definitely lost in loss record 28 of 1,098
          at 0x4C2CE3F: malloc (vg_replace_malloc.c:298)
          by 0x4C2F1BF: realloc (vg_replace_malloc.c:785)
          by 0x52C9C92: virReallocN (viralloc.c:245)
          by 0x52C9D88: virExpandN (viralloc.c:294)
          by 0x23414D99: virLXCProcessSetupInterfaces (lxc_process.c:552)
          by 0x23417457: virLXCProcessStart (lxc_process.c:1356)
          by 0x2341F71C: lxcDomainCreateWithFiles (lxc_driver.c:1088)
          by 0x2341F805: lxcDomainCreate (lxc_driver.c:1123)
          by 0x55917EB: virDomainCreate (libvirt-domain.c:6534)
          by 0x1367D1: remoteDispatchDomainCreate (remote_daemon_dispatch_stubs.h:4434)
          by 0x1366EA: remoteDispatchDomainCreateHelper (remote_daemon_dispatch_stubs.h:4410)
          by 0x546FDF1: virNetServerProgramDispatchCall (virnetserverprogram.c:437)
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      696a9faa
  8. 27 6月, 2018 1 次提交
  9. 12 6月, 2018 1 次提交
  10. 04 5月, 2018 3 次提交
    • J
      conf: Clean up object referencing for Add and Remove · b04629b6
      John Ferlan 提交于
      When adding a new object to the domain object list, there should
      have been 2 virObjectRef calls made one for each list into which
      the object was placed to match the 2 virObjectUnref calls that
      would occur during Remove as part of virHashRemoveEntry when
      virObjectFreeHashData is called when the element is removed from
      the hash table as set up in virDomainObjListNew.
      
      Some drivers (libxl, lxc, qemu, and vz) handled this inconsistency
      by calling virObjectRef upon successful return from virDomainObjListAdd
      in order to use virDomainObjEndAPI when done with the returned @vm.
      While others (bhyve, openvz, test, and vmware) handled this via only
      calling virObjectUnlock upon successful return from virDomainObjListAdd.
      
      This patch will "unify" the approach to use virDomainObjEndAPI
      for any @vm successfully returned from virDomainObjListAdd.
      
      Because list removal is so tightly coupled with list addition,
      this patch fixes the list removal algorithm to return the object
      as entered - "locked and reffed".  This way, the callers can then
      decide how to uniformly handle add/remove success and failure.
      This removes the onus on the caller to "specially handle" the
      @vm during removal processing.
      
      The Add/Remove logic allows for some logic simplification such
      as in libxl where we can Remove the @vm directly rather than
      needing to set a @remove_dom boolean and removing after the
      libxlDomainObjEndJob completes as the @vm is locked/reffed.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      b04629b6
    • M
      lxc/: Remove spaces after casts · aa2c1a16
      Martin Kletzander 提交于
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      aa2c1a16
    • D
      nwfilter: pass vm name in when instantiating filters · 23ed8eb2
      Daniel P. Berrangé 提交于
      The vm name is not needed for any functional requirement, but it will be
      useful when debugging problems to identify which VM is associated with a
      filter, since UUID is not human friendly.
      Reviewed-by: NJiri Denemark <jdenemar@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      23ed8eb2
  11. 12 4月, 2018 1 次提交
  12. 10 4月, 2018 1 次提交
  13. 02 4月, 2018 1 次提交
  14. 09 2月, 2018 1 次提交
  15. 05 10月, 2017 1 次提交
  16. 25 7月, 2017 2 次提交
  17. 16 6月, 2017 1 次提交
  18. 22 10月, 2016 1 次提交
  19. 13 10月, 2016 1 次提交
    • M
      src: Treat PID as signed · b7d2d4af
      Michal Privoznik 提交于
      This initially started as a fix of some debug printing in
      virCgroupDetect. However it turned out that other places suffer
      from the similar problem. While dealing with pids, esp. in cases
      where we cannot use pid_t for ABI stability reasons, we often
      chose an unsigned integer type. This makes no sense as pid_t is
      signed.
      Also, new syntax-check rule is introduced so we won't repeat this
      mistake.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      b7d2d4af
  20. 09 9月, 2016 1 次提交
  21. 19 7月, 2016 2 次提交
  22. 02 7月, 2016 1 次提交
  23. 27 6月, 2016 2 次提交
  24. 06 6月, 2016 2 次提交
    • J
      Do not check for domain liveness in virDomainObjSetDefTransient · 8c40ede4
      Ján Tomko 提交于
      Remove the live attribute and mark the definition as transient
      whether the domain is runing or not.
      
      There were only two callers left calling with live=false:
      * testDomainStartState, where the domain already is active
        because we assigned vm->def->id just a few lines above the call
      * virDomainObjGetPersistentDef, which now only calls
        virDomainObjSetDefTransient for an active domain
      8c40ede4
    • J
      Clean up redundant usage of virDomainObjSetDefTransient · 9b111048
      Ján Tomko 提交于
      Commit 45ec297d from November 2010:
          Make state driver device hotplug/update actually transient
      added virDomainObjSetDefTransient calls to the domain startup
      function in several drivers.
      
      In November 2011, commit 8866eed0:
          Set aliases for LXC/UML console devices
      added a call earlier in the startup function, without removing the
      existing ones.
      
      Also, in the UML driver it seems the function never did anything
      useful - vm->def->id is set asynchronnously in umlNotifyEvent.
      At the time of calling virDomainObjSetDefTransient with live=false,
      vm->def->id was likely still -1, making the call a no-op.
      9b111048
  25. 25 5月, 2016 1 次提交
    • L
      lxc: support <interface type='ethernet'> · 002b7704
      Laine Stump 提交于
      This is identical to type='bridge', but without the "connect to a
      bridge" part, so it can be handled by using the same functions (and
      often even the same cases in switch statements), after renaming
      virLXCProcessSetupInterfaceBridged() to virLXCProcessInterfaceTap()
      and enhancing it to skip bridge-related items when brname == NULL.
      
      To be truly useful, we need to support setting the ip address on the
      host side veth as well as guest side veth (already supported for
      type='bridge'), as well as setting the peer address for both.
      
      The <script> element (supported by type='ethernet' in qemu) isn't
      supported in this patch. An error is logged at domain start time if it
      is encountered. This may be changed in a later patch.
      002b7704
  26. 20 5月, 2016 1 次提交
  27. 11 5月, 2016 1 次提交
    • L
      util: set vlan tag for macvtap passthrough mode on SRIOV VFs · 75db9997
      Laine Stump 提交于
      SRIOV VFs used in macvtap passthrough mode can take advantage of the
      SRIOV card's transparent vlan tagging. All the code was there to set
      the vlan tag, and it has been used for SRIOV VFs used for hostdev
      interfaces for several years, but for some reason, the vlan tag for
      macvtap passthrough devices was stubbed out with a -1.
      
      This patch moves a bit of common validation down to a lower level
      (virNetDevReplaceNetConfig()) so it is shared by hostdev and macvtap
      modes, and updates the macvtap caller to actually send the vlan config
      instead of -1.
      75db9997
  28. 19 4月, 2016 1 次提交
    • C
      lxc: explicitly error on interface type=ethernet · 27f2b747
      Cole Robinson 提交于
      It isn't implemented and does not work:
      
      error: internal error: guest failed to start: /usr/lib/libvirt/libvirt_lxc: option '--veth' requires an argument
      syntax: /usr/lib/libvirt/libvirt_lxc [OPTIONS] ...
      
      We previously threw an explicit error, but this changed in
      22cff52a , which I suspect was
      untested for LXC
      27f2b747
  29. 04 3月, 2016 1 次提交
    • M
      virLXCProcessMonitorInitNotify: Initialize @inode · f3c47aaf
      Michal Privoznik 提交于
      This is an error message I've just seen. Fix it by initializing
      @inode.
      
        CC       lxc/libvirt_driver_lxc_impl_la-lxc_process.lo
      lxc/lxc_process.c: In function 'virLXCProcessMonitorInitNotify':
      lxc/lxc_process.c:767:23: error: 'inode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           virDomainAuditInit(vm, initpid, inode);
                             ^
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f3c47aaf