1. 17 4月, 2019 1 次提交
  2. 22 3月, 2019 1 次提交
  3. 28 1月, 2019 1 次提交
    • M
      lib: Use more of VIR_STEAL_PTR() · 5772885d
      Michal Privoznik 提交于
      We have this very handy macro called VIR_STEAL_PTR() which steals
      one pointer into the other and sets the other to NULL. The
      following coccinelle patch was used to create this commit:
      
        @ rule1 @
        identifier a, b;
        @@
      
        - b = a;
          ...
        - a = NULL;
        + VIR_STEAL_PTR(b, a);
      
      Some places were clean up afterwards to make syntax-check happy
      (e.g. some curly braces were removed where the body become a one
      liner).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      5772885d
  4. 05 12月, 2018 1 次提交
  5. 17 9月, 2018 1 次提交
  6. 12 6月, 2018 1 次提交
  7. 04 5月, 2018 1 次提交
    • 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
  8. 23 4月, 2018 1 次提交
  9. 20 4月, 2018 1 次提交
    • J
      vz: Use virDomainObjListFindBy{UUID|ID}Ref · 3c66d510
      John Ferlan 提交于
      For vzDomainLookupByID and vzDomainLookupByUUID let's
      return a locked and referenced @vm object so that callers
      can then use the common and more consistent virDomainObjEndAPI
      in order to handle cleanup rather than needing to know that the
      returned object is locked and calling virObjectUnlock.
      
      The LookupByName already returns the ref counted and locked object,
      so this will make things more consistent.
      
      Also adjust the prlsdkHandle{VmState|VmRemoved|Perf}Event APIs
      in the same manner.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      3c66d510
  10. 26 2月, 2018 2 次提交
  11. 09 2月, 2018 1 次提交
  12. 28 11月, 2017 1 次提交
    • A
      conf: Drop virDomainChrDeviceType.targetTypeAttr · 4fb8ff99
      Andrea Bolognani 提交于
      This attribute was used to decide whether to format the type
      attribute of the <target> element, but the logic didn't take into
      account all possible cases and as such could lead to unexpected
      results. Moreover, it's one more thing to keep track of, and can
      easily fall out of sync with other attributes.
      
      Now that we have VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE, we can
      use that value to signal that no specific target type has been
      configured for the serial device and as such the attribute should
      not be formatted at all. All other values are now formatted.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      4fb8ff99
  13. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  14. 19 10月, 2017 2 次提交
  15. 18 10月, 2017 1 次提交
  16. 14 10月, 2017 1 次提交
  17. 27 8月, 2017 1 次提交
  18. 23 8月, 2017 1 次提交
    • N
      vz: support disabled items in vz boot order · f3cdbf22
      Nikolay Shirokovskiy 提交于
      At the time the check was written virtuozzo did not use disabled items in boot
      order configuration. Boot items were always enabled. Now they can be disabled
      as well. Supporting such items is easy - they just should be ignored.
      f3cdbf22
  19. 14 8月, 2017 1 次提交
  20. 11 7月, 2017 1 次提交
  21. 29 6月, 2017 1 次提交
  22. 24 5月, 2017 2 次提交
  23. 23 5月, 2017 1 次提交
  24. 18 4月, 2017 2 次提交
  25. 27 3月, 2017 1 次提交
    • M
      Remove src/nodeinfo · 26ae4e48
      Martin Kletzander 提交于
      There is no "node driver" as there was before, drivers have to do
      their own ACL checking anyway, so they all specify their functions and
      nodeinfo is basically just extending conf/capablities.  Hence moving
      the code to src/conf/ is the right way to go.
      
      Also that way we can de-duplicate some code that is in virsysfs and/or
      virhostcpu that got duplicated during the virhostcpu.c split.  And
      Some cleanup is done throughout the changes, like adding the vir*
      prefix etc.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      26ae4e48
  26. 23 2月, 2017 1 次提交
  27. 09 2月, 2017 3 次提交
  28. 31 1月, 2017 5 次提交
  29. 23 12月, 2016 2 次提交