1. 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
  2. 22 1月, 2008 1 次提交
  3. 21 1月, 2008 1 次提交
  4. 20 1月, 2008 1 次提交
  5. 07 12月, 2007 1 次提交
  6. 06 12月, 2007 2 次提交
  7. 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
  8. 26 11月, 2007 1 次提交
  9. 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
  10. 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
  11. 30 9月, 2007 1 次提交
  12. 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
  13. 26 7月, 2007 1 次提交
  14. 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
  15. 27 6月, 2007 1 次提交
  16. 26 6月, 2007 1 次提交
  17. 22 6月, 2007 1 次提交
  18. 15 6月, 2007 1 次提交
  19. 08 5月, 2007 2 次提交
  20. 24 4月, 2007 1 次提交
  21. 23 4月, 2007 1 次提交
  22. 04 4月, 2007 1 次提交
  23. 19 3月, 2007 1 次提交
  24. 16 3月, 2007 2 次提交
    • D
      * qemud/conf.c qemud/driver.h qemud/internal.h src/internal.h · 9e170a88
      Daniel Veillard 提交于
        src/sexpr.h src/test.c src/xm_internal.c src/xml.c src/xml.h:
        applied patch from Richard Jones adding check to printf-like
        functions and fixing the problems raised
      Daniel
      9e170a88
    • D
      * include/libvirt/libvirt.h[.in] include/libvirt/virterror.h · 635ae389
      Daniel Veillard 提交于
        proxy/libvirt_proxy.c qemud/Makefile.am qemud/conf.c qemud/conf.h
        qemud/dispatch.c qemud/internal.h qemud/protocol.h
        src/driver.h src/internal.h src/libvirt.c src/libvirt_sym.version
        src/proxy_internal.c src/proxy_internal.h src/qemu_internal.c
        src/test.c src/virsh.c src/virterror.c src/xen_internal.c
        src/xen_internal.h src/xend_internal.c src/xm_internal.c
        src/xml.h src/xs_internal.c: applied patch from Richard Jones
        adding virConnectGetCapabilities(), plus various small little
        fixes
      * docs/*: fixed the api extractor script and regenerated
      Daniel
      635ae389
  25. 08 3月, 2007 1 次提交
  26. 14 2月, 2007 4 次提交
    • M
      Tue Feb 14 14:58:35 EST 2007 Mark McLoughlin <markmc@redhat.com · e018cbc7
      Mark McLoughlin 提交于
              * src/hash.c, src/internal.h: Re-name virConnect->domains_mux
              to virConnect->hashes_mux since it will also be used to
              protect the networks hash.
      e018cbc7
    • M
      Tue Feb 14 14:42:38 EST 2007 Mark McLoughlin <markmc@redhat.com · d16a83dd
      Mark McLoughlin 提交于
              * src/internal.h: add virConnect->qemud_fd so that
              xen and qemu don't share the handle member.
      
              * src/hash.c, src/qemu_internal.c: update
      d16a83dd
    • M
      Tue Feb 14 15:37:17 EST 2007 Mark McLoughlin <markmc@redhat.com> · 8ce3203a
      Mark McLoughlin 提交于
              Note: potential ABI break here, but people should
              only really be using virError structs returned from
              libvirt itself.
      
              * include/libvirt/virterror.h: add virNetwork
              to virError
      
              * src/internal.h, src/virterror.c: add network param
              to __virRaiseError()
      
              * src/conf.c, src/hash.c, src/libvirt.c, src/proxy_internal.c,
              src/qemu_internal.c, src/sexpr.c, src/test.c, src/xen_internal.c,
              src/xend_internal.c, src/xm_internal.c, src/xml.c, src/xmlrpc.c,
              src/xs_internal.c: update.
      8ce3203a
    • M
      Tue Feb 14 15:33:05 EST 2007 Mark McLoughlin <markmc@redhat.com> · 5be54b40
      Mark McLoughlin 提交于
              * include/libvirt/libvirt.h.in: add the networks APIs
      
              * include/libvirt/virterror.h: add some error codes
      
              * src/driver.h: add network driver vtable
      
              * src/hash.c: add networks hash
      
              * src/internal.h: add virNetwork
      
              * src/libvirt.c: hook up the APIs to the network
              driver
      
              * src/libvirt_sym.version: add the new APIs
      
              * src/virterror.c: handle the new error codes
      5be54b40
  27. 23 1月, 2007 2 次提交
    • M
      Mon Jan 23 14:36:18 IST 2007 Mark McLoughlin <markmc@redhat.com> · 6d153563
      Mark McLoughlin 提交于
              * include/libvirt/libvirt.h.in: add VIR_UUID_BUFLEN and
              VIR_UUID_STRING_BUFLEN
      
              * libvirt/proxy/libvirt_proxy.c, libvirt/src/hash.c,
              libvirt/src/internal.h, libvirt/src/libvirt.c,
              libvirt/src/proxy_internal.c, libvirt/src/test.c,
              libvirt/src/virsh.c, libvirt/src/xend_internal.c,
              libvirt/src/xm_internal.c, libvirt/src/xml.c,
              libvirt/python/libvir.c: use them
      6d153563
    • M
      Mon Jan 22 16:23:52 IST 2007 Mark McLoughlin <markmc@redhat.com> · e9371d1a
      Mark McLoughlin 提交于
      	* src/internal.h: virDomain.handle refers to the "id"
      	in the API, so re-name to virDomain.id to avoid
      	confusion.
      
      	* src/hash.c, src/libvirt.c, src/proxy_internal.c, src/test.c,
      	src/xen_internal.c, src/xend_internal.c, src/xm_internal.c,
      	src/xml.c, src/xs_internal.c: update for rename.
      e9371d1a
  28. 14 12月, 2006 1 次提交
  29. 17 11月, 2006 1 次提交
  30. 21 9月, 2006 1 次提交
  31. 29 6月, 2006 1 次提交