1. 26 6月, 2020 1 次提交
  2. 23 4月, 2020 1 次提交
  3. 20 3月, 2020 1 次提交
  4. 14 3月, 2020 1 次提交
  5. 04 2月, 2020 1 次提交
  6. 02 2月, 2020 2 次提交
  7. 29 1月, 2020 2 次提交
  8. 17 1月, 2020 1 次提交
    • D
      util: replace atomic ops impls with g_atomic_int* · 7b9645a7
      Daniel P. Berrangé 提交于
      Libvirt's original atomic ops impls were largely copied
      from GLib's code at the time. The only API difference
      was that libvirt's virAtomicIntInc() would return a
      value, but g_atomic_int_inc was void. We thus use
      g_atomic_int_add(v, 1) instead, though this means
      virAtomicIntInc() now returns the original value,
      instead of the new value.
      
      This rewrites libvirt's impl in terms of g_atomic_int*
      as a short term conversion. The key motivation was to
      quickly eliminate use of GNULIB's verify_expr() macro
      which is not a direct match for G_STATIC_ASSERT_EXPR.
      Long term all the callers should be updated to use
      g_atomic_int* directly.
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      7b9645a7
  9. 13 11月, 2019 1 次提交
  10. 12 11月, 2019 1 次提交
  11. 16 10月, 2019 1 次提交
  12. 15 10月, 2019 3 次提交
  13. 14 10月, 2019 1 次提交
  14. 10 7月, 2019 1 次提交
  15. 12 4月, 2019 1 次提交
  16. 04 3月, 2019 1 次提交
  17. 04 2月, 2019 1 次提交
  18. 16 11月, 2018 2 次提交
  19. 24 9月, 2018 1 次提交
  20. 20 9月, 2018 1 次提交
  21. 21 8月, 2018 2 次提交
  22. 07 8月, 2018 2 次提交
  23. 26 6月, 2018 1 次提交
    • J
      util: fix mount issue by moving NULL value to "none" in syscall. · 794b576c
      Julio Faracco 提交于
      After running libvirt daemon with valgrind tools, some errors are
      appearing when you try to start a domain. One example:
      
      ==18012== Syscall param mount(type) points to unaddressable byte(s)
      ==18012==    at 0x6FEE3CA: mount (syscall-template.S:78)
      ==18012==    by 0x531344D: virFileMoveMount (virfile.c:3828)
      ==18012==    by 0x27FE7675: qemuDomainBuildNamespace (qemu_domain.c:11501)
      ==18012==    by 0x2800C44E: qemuProcessHook (qemu_process.c:2870)
      ==18012==    by 0x52F7E1D: virExec (vircommand.c:726)
      ==18012==    by 0x52F7E1D: virCommandRunAsync (vircommand.c:2477)
      ==18012==    by 0x52F4EDD: virCommandRun (vircommand.c:2309)
      ==18012==    by 0x2800A731: qemuProcessLaunch (qemu_process.c:6235)
      ==18012==    by 0x2800D6B4: qemuProcessStart (qemu_process.c:6569)
      ==18012==    by 0x28074876: qemuDomainObjStart (qemu_driver.c:7314)
      ==18012==    by 0x280522EB: qemuDomainCreateWithFlags (qemu_driver.c:7367)
      ==18012==    by 0x55484BF: virDomainCreate (libvirt-domain.c:6531)
      ==18012==    by 0x12CDBD: remoteDispatchDomainCreate (remote_daemon_dispatch_stubs.h:4350)
      ==18012==    by 0x12CDBD: remoteDispatchDomainCreateHelper (remote_daemon_dispatch_stubs.h:4326)
      ==18012==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
      
      Some documentation recommends to use "none" when you don't have a
      filesystem type to use. Specially, for bind and move actions.
      Signed-off-by: NJulio Faracco <jcfaracco@gmail.com>
      794b576c
  24. 28 3月, 2017 1 次提交
  25. 07 2月, 2017 1 次提交
  26. 12 1月, 2017 1 次提交
    • M
      lxc: Move lxcContainerAvailable to virprocess · 083fcd06
      Michal Privoznik 提交于
      Other drivers (like qemu) would like to know if the namespaces
      are available therefore it makes sense to move this function to
      a shared module.
      
      At the same time, this function had some default namespaces that
      are checked with every call. It is not necessary - let callers
      pass just those namespaces they are interested in.
      
      With the move the function is renamed to
      virProcessNamespaceAvailable.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      083fcd06
  27. 15 12月, 2016 1 次提交
  28. 25 11月, 2016 1 次提交
    • M
      virstring: Unify string list function names · c2a5a4e7
      Michal Privoznik 提交于
      We have couple of functions that operate over NULL terminated
      lits of strings. However, our naming sucks:
      
      virStringJoin
      virStringFreeList
      virStringFreeListCount
      virStringArrayHasString
      virStringGetFirstWithPrefix
      
      We can do better:
      
      virStringListJoin
      virStringListFree
      virStringListFreeCount
      virStringListHasString
      virStringListGetFirstWithPrefix
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c2a5a4e7
  29. 21 11月, 2016 1 次提交
  30. 18 11月, 2016 1 次提交
    • M
      Fix scheduler support check · f2bf5fbb
      Martin Kletzander 提交于
      Commit 94cc5778 tried fixing build on systems that did not have
      SCHED_BATCH or SCHED_IDLE defined.  But instead of changing it to
      conditional support, it rather completely disabled the support for
      setting any scheduler.  Since then, such old systems are not
      supported, but rather than reverting that commit, let's change that to
      the conditional support.  That way any addition to the list of
      schedulers can follow the same style so that we're consistent in the
      future.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      f2bf5fbb
  31. 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
  32. 06 9月, 2016 1 次提交
  33. 24 6月, 2016 1 次提交
    • J
      Use virDirOpen · e81de04c
      Ján Tomko 提交于
      Switch from opendir to virDirOpen everywhere we need to report an error.
      e81de04c