1. 10 1月, 2008 1 次提交
  2. 12 12月, 2007 1 次提交
    • J
      Use a variable name as sizeof argument, not a type name. · 49230350
      Jim Meyering 提交于
      Given code like: T *var = calloc (n, sizeof (T));
      Convert to this: T *var = calloc (n, sizeof (*var));
      This first-cut change adjusts all malloc, calloc, and
      realloc statements.
      
      The only binary differences are in remote_internal.c
      (due to the bug fix) and in xmlrpc.c (due to factorization).
      
      * python/libvir.c: As above.
      * qemud/event.c: Likewise.
      * qemud/mdns.c: Likewise.
      * qemud/qemud.c: Likewise.
      * qemud/remote.c: Likewise.
      * src/bridge.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/test.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * tests/qemuxml2argvtest.c: Likewise.
      * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
      * src/remote_internal.c (remoteAuthMakeCredentials): Use the right
      type when allocating space for an array of cred _pointers_.
      49230350
  3. 06 12月, 2007 2 次提交
    • J
      Use gnulib, starting with its physmem and getaddrinfo modules. · 261e7581
      Jim Meyering 提交于
      New files go into these directories:
        gnulib/lib
        gnulib/m4
        gnulib/tests
      
      * bootstrap: A wrapper around gnulib-tool.
      * configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
      before any macro that uses AC_COMPILE_IFELSE.
      (AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile.  Remove m4/Makefile.
      * Makefile.am (SUBDIRS): Add gnulib/lib and remove m4.  Add gnulib/tests
      early enough that those tests run before any libvirt unit tests.
      * m4/Makefile.am: Remove file.  Not needed.
      * src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
      * src/nodeinfo.c: Include "physmem.h".
      * qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
      (MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
      (virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
      * tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
      (LDADDS): Add ../gnulib/lib/libgnu.la.
      * qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
      * tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
      memory from a file.
      Update expected output not to include "Memory: NNNN"
      * tests/nodeinfodata/linux-nodeinfo-1.txt:
      * tests/nodeinfodata/linux-nodeinfo-2.txt:
      * tests/nodeinfodata/linux-nodeinfo-3.txt:
      * tests/nodeinfodata/linux-nodeinfo-4.txt:
      * tests/nodeinfodata/linux-nodeinfo-5.txt:
      * tests/nodeinfodata/linux-nodeinfo-6.txt:
      * src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
      would conflict with the one now in "config.h".
      * autogen.sh: Add -I gnulib/m4.
      * src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
      Instead, include "config.h".
      * qemud/qemud.c: Remove definition of _GNU_SOURCE.
      * src/openvz_driver.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      
      * configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
      of gettextize-generated files go into build-aux/, rather than in
      the top-level directory.
      * .cvsignore: Adjust.
      * build-aux/.cvsignore: New file.
      
      
      Author: Jim Meyering <meyering@redhat.com>
      261e7581
    • D
  4. 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
  5. 03 12月, 2007 1 次提交
  6. 01 12月, 2007 1 次提交
  7. 26 11月, 2007 1 次提交
  8. 21 11月, 2007 1 次提交
  9. 16 11月, 2007 1 次提交
  10. 14 11月, 2007 1 次提交
  11. 27 10月, 2007 3 次提交
  12. 13 10月, 2007 1 次提交
  13. 11 10月, 2007 1 次提交
  14. 30 9月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h include/libvirt/libvirt.h.in · 9f211bbf
      Daniel Veillard 提交于
        src/driver.h src/libvirt.c src/openvz_driver.c src/qemu_driver.c
        src/test.c src/xen_unified.c src/xend_internal.c: add new API
        virNodeGetFreeMemory(), extends the driver. Lacks remote and
        QEmu support though.
      * src/libvirt.c: allows to fix virNodeGetCellsFreeMemory() adding
        parameter check for startCell.
      * proxy/libvirt_proxy.c src/xend_internal.[ch]
        include/libvirt/libvirt.h include/libvirt/libvirt.h.in: applied
        vncpasswd dump patch from Mark Johnson but with the
        virDomainXMLFlags extension as suggested by Daniel Berrange
        this changed a couple of internal APIs too
      * tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: fix one of the
        tests affected by bootloader dump change.
      Daniel
      9f211bbf
  15. 28 9月, 2007 1 次提交
    • D
      * include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c · 4bf3bc9e
      Daniel Veillard 提交于
        src/qemu_driver.c src/remote_internal.c src/test.c
        src/xen_internal.[ch] src/xen_unified.c src/xend_internal.[ch]
        src/libvirt.c src/libvirt_sym.version: adding NUMA support patches
        from Beth Kon adding new virNodeGetCellsFreeMemory entry point
        and extending the virConnectGetCapabilities one. Fix a couple of
        issues in the patch and add to exported symbols from shared lib.
      * docs/virsh.pod docs/virsh.1 src/virsh.c: added new command
        freecell to get the available memory on the node or in a NUMA cell.
      * docs/*: updated and regenerated the documentation
      Daniel
      4bf3bc9e
  16. 22 9月, 2007 1 次提交
  17. 21 9月, 2007 2 次提交
  18. 21 8月, 2007 3 次提交
    • R
      Tue Aug 21 10:58:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 442a1577
      Richard W.M. Jones 提交于
      	* src/libvirt.c (virDomainBlockStats, virDomainInterfaceStats):
      	  Added block device and network interface statistics.
      	* src/xen_internal.c: Support for stats from Xen domains.
      	* qemud/remote.c, qemud/remote_protocol.x, qemud/remote_internal.c:
      	  Support for fetching device and network interface stats
      	  across remote connections.
      	* src/virsh.c: Added 'virsh domblkstat' and 'virsh domifstat'
      	  commands to display stats.
      	* docs/libvir.html, docs/hvsupport.html: Updated hvsupport
      	  documentation.
      442a1577
    • 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
  19. 14 8月, 2007 5 次提交
  20. 13 8月, 2007 1 次提交
  21. 30 7月, 2007 1 次提交
  22. 28 7月, 2007 1 次提交
  23. 26 7月, 2007 1 次提交
  24. 24 7月, 2007 2 次提交
  25. 20 7月, 2007 1 次提交
  26. 12 7月, 2007 1 次提交
  27. 07 7月, 2007 1 次提交
  28. 06 7月, 2007 2 次提交