1. 05 2月, 2008 2 次提交
    • J
      Eliminate all uses of virBufferAdd with string literals. · fb66d5ab
      Jim Meyering 提交于
      * Makefile.maint (sc_prohibit_virBufferAdd_with_string_literal):
      New rule.
      * src/buf.h (virBufferAddLit): Define.
      * src/conf.c (virConfSaveValue): Use virBufferAddLit, in place
      of virBufferAdd everywhere possible.
      (virConfSaveEntry): Likewise.
      * src/qemu_conf.c (qemudGenerateXML, qemudGenerateNetworkXML): Likewise.
      * src/qemu_driver.c (qemudGetFeatures, qemudGetCapabilities): Likewise.
      * src/test.c (testDomainDumpXML, testNetworkDumpXML): Likewise.
      * src/xen_internal.c (xenHypervisorMakeCapabilitiesXML): Likewise.
      * src/xend_internal.c (xend_parse_sexp_desc_os): Likewise.
      (xend_parse_sexp_desc, sexpr_to_xend_topology_xml): Likewise.
      * src/xm_internal.c (xenXMDomainFormatXML, xenXMDomainPinVcpu): Likewise.
      * src/xml.c (virSaveCpuSet, virParseXenCpuTopology): Likewise.
      (virDomainParseXMLGraphicsDescImage): Likewise.
      (virDomainParseXMLGraphicsDescVFB, virDomainParseXMLOSDescHVM): Likewise.
      (virDomainParseXMLOSDescPV, virDomainParseXMLDiskDesc): Likewise.
      (virDomainParseXMLIfDesc, virDomainParseXMLDesc): Likewise.
      fb66d5ab
    • J
      Enable more checks for unmarked messages; fix violators. · ecaa6962
      Jim Meyering 提交于
      * Makefile.maint (sc_unmarked_diagnostics): Check for more functions.
      * src/conf.c (virConfParseValue): Remove trailing space in diagnostic.
      * src/libvirt.c (do_open, virDomainMigrate): Mark diagnostics.
      * src/xend_internal.c (do_connect, xenDaemonDomainDumpXMLByID): Likewise.
      (xenDaemonDomainDumpXMLByName, xenDaemonCreateLinux): Likewise.
      (xenDaemonDomainMigratePerform, xenDaemonDomainDefineXML): Likewise.
      * src/xml.c (virXPathString, virXPathNumber, virXPathLong): Likewise.
      (virXPathBoolean, virXPathNode, virXPathNodeSet): Likewise.
      (virDomainParseXMLOSDescHVM): Likewise.
      * src/xmlrpc.c (xmlRpcValueNew): Likewise.
      (xmlRpcValueUnmarshalDictElement): Likewise.
      ecaa6962
  2. 31 1月, 2008 1 次提交
  3. 30 1月, 2008 2 次提交
    • J
      Enable the <config.h>-requiring test; fix violations · a3781881
      Jim Meyering 提交于
      Use <config.h>, not "config.h", per autoconf documentation.
      * Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
      * .x-sc_require_config_h: New file, to list exempted files.
      * Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
      a3781881
    • J
      Given code like if (foo) free (foo); remove the useless "if (foo) " part. · acff2d11
      Jim Meyering 提交于
      Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
      
      * proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
      * python/generator.py: Likewise.
      * qemud/qemud.c: Likewise.
      * src/buf.c: Likewise.
      * src/conf.c: Likewise.
      * src/hash.c: Likewise.
      * src/iptables.c: Likewise.
      * src/libvirt.c: Likewise.
      * src/openvz_conf.c: Likewise.
      * src/qemu_conf.c: Likewise.
      * src/qemu_driver.c: Likewise.
      * src/remote_internal.c: Likewise.
      * src/test.c: Likewise.
      * src/virsh.c: Likewise.
      * src/virterror.c: Likewise.
      * src/xen_internal.c: Likewise.
      * src/xen_unified.c: Likewise.
      * src/xend_internal.c: Likewise.
      * src/xm_internal.c: Likewise.
      * src/xml.c: Likewise.
      * src/xmlrpc.c: Likewise.
      * src/xs_internal.c: Likewise.
      * tests/testutils.c: Likewise.
      * tests/xencapstest.c: Likewise.
      * tests/xmconfigtest.c: Likewise.
      acff2d11
  4. 22 1月, 2008 1 次提交
  5. 21 1月, 2008 1 次提交
    • J
      Adjust sexpr-related interfaces to be const-correct. · 64b3019d
      Jim Meyering 提交于
      * src/sexpr.c (sexpr_cons, append, sexpr_append, sexpr2string)
      (sexpr_lookup_key, sexpr_lookup, sexpr_node, sexpr_fmt_node):
      Add "const" attribute where appropriate.
      * src/xend_internal.c (sexpr_int, sexpr_float, sexpr_u64)
      (sexpr_uuid, sexpr_to_xend_domain_info, sexpr_to_xend_node_info)
      (sexpr_to_xend_topology_xml, sexpr_to_domain): Likewise.
      * src/sexpr.h: Adjust prototypes.
      64b3019d
  6. 20 1月, 2008 2 次提交
  7. 18 12月, 2007 1 次提交
  8. 06 12月, 2007 1 次提交
  9. 03 12月, 2007 1 次提交
  10. 27 11月, 2007 1 次提交
    • D
      * configure.in: when configuring with --prefix=/usr i.e. the same · 1338ed4f
      Daniel Veillard 提交于
        prefix as the installed libvirt, use the same localstatedir /var
        (instead of /usr/var) and sysconfdir /etc (instead of /usr/etc) to
        be able to connect to the system daemon, and use the system local
        options
      * src/xs_internal.c: avoid error message when non-root cannot open
        xenstore
      * src/xend_internal.c: avoid error message when non-root cannot
        directly access xend, in those 2 cases the proxy (or remote code)
        should implement the access so there is no need to raise the error
        there.
      Daniel
      1338ed4f
  11. 14 11月, 2007 1 次提交
  12. 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
  13. 31 10月, 2007 1 次提交
  14. 23 10月, 2007 1 次提交
  15. 22 10月, 2007 1 次提交
  16. 17 10月, 2007 1 次提交
  17. 16 10月, 2007 1 次提交
  18. 08 10月, 2007 1 次提交
  19. 05 10月, 2007 1 次提交
  20. 30 9月, 2007 4 次提交
  21. 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
  22. 20 9月, 2007 1 次提交
  23. 12 9月, 2007 2 次提交
  24. 10 9月, 2007 1 次提交
  25. 27 8月, 2007 1 次提交
  26. 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:45:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 92019090
      Richard W.M. Jones 提交于
              * src/xend_internal.c: Return the interface device name as
                <target dev='vifX.Y'/> in domain XML.
              * tests/*: Update XML in regression tests.
      92019090
  27. 16 8月, 2007 1 次提交
  28. 10 8月, 2007 1 次提交
  29. 19 7月, 2007 1 次提交
  30. 17 7月, 2007 1 次提交
  31. 09 7月, 2007 1 次提交
  32. 06 7月, 2007 1 次提交
    • R
      Fri Jul 6 16:08:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> · 4ea0ef79
      Richard W.M. Jones 提交于
      	* src/proxy_internal.c, src/proxy_internal.h,
      	  src.xen_internal.c, src/xen_internal.h,
      	  src/xen_unified.c, src/xen_unified.h,
      	  src/xend_internal.c, src/xend_internal.h,
      	  src/xm_internal.c, src/xm_internal.h,
      	  src/xs_internal.c, src/xs_internal.h: The interface
      	  between xen_unified.c and its underlying driver now uses
      	  a custom structure (struct xenUnifiedDriver) instead
      	  of reusing virDriver.
      	* src/xen_unified.c: virDomainLookup* functions in Xen
      	  now throw VIR_ERR_NO_DOMAIN if the domain does not exist.
      	* src/xs_internal.c: Fix indentation.
      4ea0ef79