1. 23 5月, 2008 1 次提交
  2. 13 5月, 2008 1 次提交
    • D
      Enable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup · 94311de5
      David L. Leskovec 提交于
      Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
      
      	* qemud/qemud.c: get siginfo with signals, distribute to drivers that
          register a handler
      	* src/driver.h: add sighandler function to state driver table
      	* src/internal.h: define virStateSigDispatcher functions
      	* src/libvirt.c: add __virStateSigDispatcher function
      	* src/libvirt_sym.version: add __virStateSigDispatcher
      	* src/lxc_driver.c: add sig handler function, cleanup vm when sigchld
          received from container process
      	* src/qemu_driver.c: NULL for sig handler (no handler) in state driver
      	* src/remote_internal.c: NULL for sig handler (no handler) in state driver
      	* src/storage_driver.c: NULL for sig handler (no handler) in state driver
      94311de5
  3. 29 4月, 2008 1 次提交
  4. 26 4月, 2008 2 次提交
  5. 18 4月, 2008 2 次提交
    • J
      avoid compile error when <pthread.h> is absent · 2d206f1d
      Jim Meyering 提交于
      * src/internal.h (HAVE_PTHREAD_H): Test with "#ifdef", not "#if".
      2d206f1d
    • R
      Fixes for MinGW. · 8df91acf
      Richard W.M. Jones 提交于
      	* configure.in: Fix pkg-config detection of libxml2,
      	  add -lgcrypt to gnutls lib.
      	* src/Makefile.am: If compiling --without-libvirtd then
      	  don't compile any part of the storage driver.
      	* configure.in, src/hash.c, src/internal.h: Detect availability
      	  of pthread library and compile out mutex code if not available.
      	* src/storage_driver.c, src/util.c: Ignore some missing
      	  headers on MinGW.
      8df91acf
  6. 11 4月, 2008 2 次提交
  7. 31 3月, 2008 1 次提交
  8. 28 2月, 2008 1 次提交
    • R
      virMacAddrCompare for comparing MAC addresses · 92a1e14b
      Richard W.M. Jones 提交于
      	* src/util.c, src/util.h, src/libvirt_sym.version: Added
      	  virMacAddrCompare utility function for comparing MAC
      	  addresses.
      	* src/virsh.c, src/xm_internal.c: Use virMacAddrCompare
      	  to compare addresses.  (Shigeki Sakamoto and Richard Jones).
      92a1e14b
  9. 20 2月, 2008 1 次提交
  10. 08 2月, 2008 1 次提交
    • M
      Fix gcc-4.3.0 "inlining failed" warning. · 3da5504e
      Mark McLoughlin 提交于
      * src/internal.h: move xstrol() variants from here ...
      
      * src/util.[ch]: ... to here and rename to virStrToLong()
      
      * src/libvirt_sym.version: export __virStrToLong_i() for
      virsh and qemud.
      
      * src/nodeinfo.c, src/stats_linux.c, src/virsh.c,
        src/xend_internal.c, qemud/qemud.c: replace xstrtol()
      calls with virStrToLong()
      
      * src/nodeinfo.h: don't include internal.h, which was only
      needed for xstrtol(), but instead include libvirt.h which
      is suffificient for the declarations in the header.
      3da5504e
  11. 22 1月, 2008 1 次提交
  12. 21 1月, 2008 1 次提交
  13. 20 1月, 2008 1 次提交
  14. 07 12月, 2007 1 次提交
  15. 06 12月, 2007 2 次提交
  16. 05 12月, 2007 1 次提交
    • R
      Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · 4bfdb77a
      Richard W.M. Jones 提交于
              * python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
              qemud/remote.c, src/internal.h, src/openvz_conf.c,
              src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
              src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
              src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
              tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
              tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
              tests/xmconfigtest.c, tests/xml2sexprtest.c:
              Change #include <> to #include "" for local includes.
              Removed many includes from src/internal.h and put them in
              the C files which actually use them.
              Removed <ansidecl.h> - unused.
              Added a comment around __func__.
              Removed a clashing redefinition of VERSION symbol.
              All limits (PATH_MAX etc) now done in src/internal.h, so we
              don't need to include those headers in other files.
      4bfdb77a
  17. 26 11月, 2007 1 次提交
  18. 14 11月, 2007 2 次提交
    • R
      Wed Nov 14 11:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com> · 88f28d69
      Richard W.M. Jones 提交于
      	* src/libvirt.c and all internal driver interfaces: Parse the
      	  URI only once and pass it to virDrvOpen instead of the
      	  unparsed name string.
      88f28d69
    • J
      Parse integers more carefully, cont'd. · 5d254191
      Jim Meyering 提交于
      * qemud/qemud.c: Replace uses of strtol with uses of xstrtol_i.
        Avoid overflow for very large --timeout=N values.
      * src/nodeinfo.c: In linuxNodeInfoMemPopulate and
        linuxNodeInfoCPUPopulate, use xstrtol_i rather than strtol.
        Unlike in qemud.c, here we allow trailing "isspace", and in
        the case of "cpuinfo cpu MHz", also allow a "." terminator,
        since we ignore the decimal and any following digits.
      * src/internal.h: Define xstrtol_ui, too.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      5d254191
  19. 12 11月, 2007 1 次提交
    • D
      Begin fixing uses of strtol: parse integers more carefully. · a500a479
      Daniel Veillard 提交于
      Patch from Jim Meyering
      * src/internal.h: Include <errno.h>.
        Define new static inline function, xstrtol_i.
      * src/virsh.c: Detect integer overflow in domain ID number
        in vshCommandOptDomainBy. Detect overflow and invalid port
        number suffix in cmdVNCDisplay.
      * src/xend_internal.c: Parse CPU number more carefully in
        xenDaemonDomainGetVcpus.
      * tests/int-overflow: New script. Test for the above-fixed bug.
      * tests/Makefile.am: Add int-overflow to TESTS. Define
        TESTS_ENVIRONMENT, to propagate $abs_top_* variables into the
        int-overflow script. Adapt the "valgrind" rule not to clobber
        new TESTS_ENVIRONMENT.
      Daniel
      a500a479
  20. 30 9月, 2007 1 次提交
  21. 21 8月, 2007 2 次提交
    • R
      Tue Aug 21 10:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 81005437
      Richard W.M. Jones 提交于
      	* src/libvirt.c (virDomainMigrate): Added virDomainMigrate
      	  API call.
      	* src/xend_internal.c, src/xen_unified.c: Support for migration
      	  of Xen domains.
      	* src/xen_internal.c: Xen capabilities indicates level of
      	  support for migration.
      	* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
      	  Support for migration between remote hypervisors.
      	* src/virsh.c: Added 'virsh migrate' command.
      	* docs/libvir.html, docs/hvsupport.html: Updated hvsupport
      	  documentation.
      81005437
    • R
      Tue Aug 21 09:56:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 19e21d86
      Richard W.M. Jones 提交于
              * qemud/remote.c, qemud/remote_protocol.x, src/driver.h,
                src/internal.h, src/libvirt.c, src/libvirt_sym.version,
                src/qemu_driver.c, src/remote_internal.c, src/test.c:
                Add a private interface so that libvirt.c coordination
                functions can detect the availability of features in
                underlying drivers, using the VIR_DRV_SUPPORTS_FEATURE
                macro.
      19e21d86
  22. 26 7月, 2007 1 次提交
  23. 06 7月, 2007 1 次提交
    • R
      Fri Jul 6 16:00:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 16eae80e
      Richard W.M. Jones 提交于
      	* src/hash.c, src/internal.h: Remove virGetDomainByID function
      	  as it is not used or exported.
      	* src/proxy_internal.c, src/qemu_driver.c, src/remote_internal.c,
      	  src/test.c, src/xend_internal.c, src/xs_internal.c: Fix
      	  all callers to virGetDomain and virGetNetwork functions -
      	  the callers do not need to set virterror since it is already
      	  set inside the functions.
      16eae80e
  24. 27 6月, 2007 1 次提交
  25. 26 6月, 2007 1 次提交
  26. 22 6月, 2007 1 次提交
  27. 15 6月, 2007 1 次提交
  28. 08 5月, 2007 2 次提交
  29. 24 4月, 2007 1 次提交
  30. 23 4月, 2007 1 次提交
  31. 04 4月, 2007 1 次提交
  32. 19 3月, 2007 1 次提交
  33. 16 3月, 2007 1 次提交