1. 09 8月, 2019 1 次提交
  2. 07 8月, 2019 2 次提交
  3. 27 7月, 2019 1 次提交
  4. 06 7月, 2019 3 次提交
  5. 04 7月, 2019 1 次提交
  6. 21 6月, 2019 2 次提交
    • D
      remote: use VIR_DRV_OPEN_REMOTE_USER in ssh transport checks · 953f046d
      Daniel P. Berrangé 提交于
      We currently refuse to connect to remote libvirtd over SSH if we see the
      path ends in /session. Earlier on though we checked for /session and set
      the VIR_DRV_OPEN_REMOTE_USER flag. There is one subtle distinction
      though with the test driver. All test URIs are marked with this flag,
      regardless of whether the URI indicates a local or remote connection.
      Previously a local connection to the test driver would have used the
      unprivileged libvirtd while a remote connection would have tried the
      privileged libvirtd. With this we are consistent and use the
      unprivileged for both local & remote, if the current user is non-root.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      953f046d
    • D
      remote: refactor how unprivileged user session connection is identified · 00d17254
      Daniel P. Berrangé 提交于
      Currently the VIR_DRV_OPEN_REMOTE_USER flag is only set when we identify
      that we're connecting to a local libvirtd daemon. We would like to be
      able to set that even if connecting to a remote libvirtd daemon. This
      entails refactoring the conditional check.
      
      One subtle change is that the VIR_DRV_OPEN_REMOTE_USER is now set when
      the test+XXX://  URI is used, even if a servername is present. This has
      no effect in this patch, but will later.
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      00d17254
  7. 17 6月, 2019 1 次提交
  8. 14 3月, 2019 1 次提交
  9. 07 3月, 2019 1 次提交
  10. 08 2月, 2019 2 次提交
    • N
      rpc: client stream: dispose private data on stream dispose · fbcb7386
      Nikolay Shirokovskiy 提交于
      If we call virStreamFinish and virStreamAbort from 2 distinct
      threads for example we can have access to freed memory.
      Because when virStreamFinish finishes for example virStreamAbort
      yet to be finished and it access virNetClientStreamPtr object
      in stream->privateData.
      
      Also it does not make sense to clear @driver field. After
      stream is finished/aborted it is better to have appropriate
      error message instead of "unsupported error".
      
      This commit reverts [1] or virNetClientStreamPtr and
      virStreamPtr will never be unrefed due to cyclic dependency.
      Before this patch we don't have leaks because all execution
      paths we call virStreamFinish or virStreamAbort.
      
      [1] 8b6ffe40 : virNetClientStreamNew: Track origin stream
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      fbcb7386
    • N
      rpc: client: incapsulate error checks · ad063f61
      Nikolay Shirokovskiy 提交于
      Checking virNetClientStreamRaiseError without client lock
      is racy which is fixed in [1] for example. Thus let's remove such checks
      when we are sending message to server. And in other cases
      (like virNetClientStreamRecvHole for example) let's move the check
      into client stream code.
      
      virNetClientStreamRecvPacket already have stream lock so we could
      introduce another error checking function like virNetClientStreamRaiseErrorLocked
      but as error is set when both client and stream lock are hold we
      can remove locking from virNetClientStreamRaiseError because all
      callers hold either client or stream lock.
      
      Also let's split virNetClientStreamRaiseErrorLocked into checking
      state function and checking message send status function. They are
      same yet.
      
      [1] 1b6a29c21: rpc: fix race on stream abort/finish and server side abort
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ad063f61
  11. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  12. 19 11月, 2018 1 次提交
    • J
      lib: Introduce virDomainSetIOThreadParams · ae69bda5
      John Ferlan 提交于
      Create a new API that will allow an adjustment of IOThread
      polling parameters for the specified IOThread. These parameters
      will not be saved in the guest XML. Currently the only parameters
      supported will allow the hypervisor to adjust the parameters used
      to limit and alter the scope of the polling interval. The polling
      interval allows the IOThread to spend more or less time processing
      in the guest.
      
      Based on code originally posted by Pavel Hrdina <phrdina@redhat.com>
      to add virDomainAddIOThreadParams and virDomainModIOThreadParams.
      Modification of those changes to use virDomainSetIOThreadParams
      instead and remove concepts related to saving the data in guest
      XML as well as the way to specifically enable the polling parameters.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
      ae69bda5
  13. 23 7月, 2018 1 次提交
    • A
      src: Make virStr*cpy*() functions return an int · 6c0d0210
      Andrea Bolognani 提交于
      Currently, the functions return a pointer to the
      destination buffer on success or NULL on failure.
      
      Not only does this kind of error handling look quite
      alien in the context of libvirt, where most functions
      return zero on success and a negative int on failure,
      but it's also somewhat pointless because unless there's
      been a failure the returned pointer will be the same
      one passed in by the user, thus offering no additional
      value.
      
      Change the functions so that they return an int
      instead.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      6c0d0210
  14. 26 6月, 2018 1 次提交
  15. 12 6月, 2018 4 次提交
  16. 06 6月, 2018 1 次提交
  17. 28 5月, 2018 3 次提交
  18. 25 4月, 2018 3 次提交
  19. 20 4月, 2018 1 次提交
  20. 12 4月, 2018 1 次提交
  21. 09 4月, 2018 1 次提交
  22. 28 3月, 2018 1 次提交
  23. 23 3月, 2018 1 次提交
    • D
      remote: remove some __sun conditionals · da1ade7a
      Daniel P. Berrangé 提交于
      The libvirtd daemon has some arbitrary logic to drop privileges, but
      only on Solaris platforms. This was added during Xen days, when Xen was
      the only driver running in libvirtd. There's no expectation or testing
      that this works with the new libxl stack, nor whether dropping
      privileges breaks any of the secondary drivers. Finally, we'll be
      splitting drivers out into their own independant daemons, so this won't
      be applicable to libvirtd in future anyway.
      
      The remote driver client meanwhile arbitrarily disables daemon
      auto-spawn when connecting as non-root, breaking a key feature of
      libvirt unprivileged connections.
      
      Since we've not had any contributions for Solaris since circa 2012
      and we don't do any CI testing we should consider this platform
      unmaintained and thus reasonable to remove this cruft. If someone steps
      forward to maintain Solaris again, this code would need re-evaluating to
      come up with something more targetted.
      
      There's various __sun conditionals in the Xen driver code, but those are
      not touched. This is all for the legacy Xen driver, which will be
      entirely removed at some point in future, so not benefit to hacking out
      just the Solaris parts.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      da1ade7a
  24. 14 3月, 2018 1 次提交
  25. 09 3月, 2018 1 次提交
  26. 09 2月, 2018 1 次提交
  27. 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
  28. 19 10月, 2017 1 次提交