]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
17 years agoIgnore built test files
Daniel P. Berrange [Tue, 5 Feb 2008 16:29:42 +0000 (16:29 +0000)]
Ignore built test files

17 years agoAdded support for booting off kenrel+initrd with HVM guests
Daniel P. Berrange [Tue, 5 Feb 2008 16:21:25 +0000 (16:21 +0000)]
Added support for booting off kenrel+initrd with HVM guests

17 years agoEliminate all uses of virBufferAdd with string literals.
Jim Meyering [Tue, 5 Feb 2008 14:22:28 +0000 (14:22 +0000)]
Eliminate all uses of virBufferAdd with string literals.

* 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.

17 years agoEnable more checks for unmarked messages; fix violators.
Jim Meyering [Mon, 4 Feb 2008 19:31:30 +0000 (19:31 +0000)]
Enable more checks for unmarked messages; fix violators.

* 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.

17 years agoMark a string for translation.
Jim Meyering [Mon, 4 Feb 2008 14:58:47 +0000 (14:58 +0000)]
Mark a string for translation.

* src/virsh.c: Add a "%s" and wrap with _(...).

17 years agoEnable the sc_unmarked_diagnostics test and correct all violations
Jim Meyering [Mon, 4 Feb 2008 14:58:05 +0000 (14:58 +0000)]
Enable the sc_unmarked_diagnostics test and correct all violations

involving the "error" function.
* Makefile.cfg (local-checks-to-skip): Remove from skip list.
* src/remote_internal.c: Mark translatable strings.

17 years agoPull vc-list-files from gnulib, and update.
Jim Meyering [Fri, 1 Feb 2008 19:47:07 +0000 (19:47 +0000)]
Pull vc-list-files from gnulib, and update.
* bootstrap (gnulib_tool): Add the vc-list-files module.

17 years agoAvoid compilation failure when building --without-xen.
Jim Meyering [Thu, 31 Jan 2008 21:49:47 +0000 (21:49 +0000)]
Avoid compilation failure when building --without-xen.

* tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out.
(main) [!WITH_XEN]: #ifdef-out the body.

Committer: Jim Meyering <meyering@redhat.com>
Author: Guido Guenther  <agx@sigxcpu.org>

17 years agoAvoid virsh leaks due to missing virDomainFree(dom) calls
Jim Meyering [Wed, 30 Jan 2008 19:58:59 +0000 (19:58 +0000)]
Avoid virsh leaks due to missing virDomainFree(dom) calls

* src/virsh.c (cmdDomuuid): Add missing virDomainFree call.
(cmdAttachDevice): Likewise.
(cmdDetachDevice): Likewise.

17 years agosrc/virsh.c (cmdCapabilities): Plug a small leak.
Jim Meyering [Wed, 30 Jan 2008 19:57:54 +0000 (19:57 +0000)]
src/virsh.c (cmdCapabilities): Plug a small leak.

17 years agosrc/test.c (testLoadDomain): Avoid leaks upon failure.
Jim Meyering [Wed, 30 Jan 2008 19:57:13 +0000 (19:57 +0000)]
src/test.c (testLoadDomain): Avoid leaks upon failure.

17 years agoAvoid used-uninitialized errors in test driver.
Jim Meyering [Wed, 30 Jan 2008 19:54:29 +0000 (19:54 +0000)]
Avoid used-uninitialized errors in test driver.

* src/test.c (testOpenFromFile): Initialize "privconn".

17 years agosrc/libvirt.c (do_open): Avoid double-free upon failure.
Jim Meyering [Wed, 30 Jan 2008 19:53:10 +0000 (19:53 +0000)]
src/libvirt.c (do_open): Avoid double-free upon failure.

17 years agoAvoid segfault upon malloc failure, and plug a leak.
Jim Meyering [Wed, 30 Jan 2008 19:52:16 +0000 (19:52 +0000)]
Avoid segfault upon malloc failure, and plug a leak.

* src/test.c (testDomainSave): Detect testDomainDumpXML failure.  Free "xml".

17 years agoPlug test-related leaks.
Jim Meyering [Wed, 30 Jan 2008 19:50:14 +0000 (19:50 +0000)]
Plug test-related leaks.

* src/test.c (testLoadNetwork): Free forwardDev.
(testLoadDomain): Free ctxt.
(testLoadNetwork): Likewise.
(testOpenFromFile): Likewise.

17 years agoRemove double mutex lock()
Daniel P. Berrange [Wed, 30 Jan 2008 18:21:13 +0000 (18:21 +0000)]
Remove double mutex lock()

17 years agoFix XML generation for Xen USB devices
Daniel P. Berrange [Wed, 30 Jan 2008 16:38:18 +0000 (16:38 +0000)]
Fix XML generation for Xen USB devices

17 years agoArrange for "make syntax-check" to pass.
Jim Meyering [Wed, 30 Jan 2008 06:55:56 +0000 (06:55 +0000)]
Arrange for "make syntax-check" to pass.

* .x-sc_avoid_if_before_free: Exempt ChangeLog.
* tests/statstest.c: Include <config.h>, not "config.h".

17 years agoFix device name -> number conversion for block stats
Daniel P. Berrange [Tue, 29 Jan 2008 18:36:00 +0000 (18:36 +0000)]
Fix device name -> number conversion for block stats

17 years agoAlso detect and remove unnecessary if-before-xmlXPathFreeContext.
Jim Meyering [Tue, 29 Jan 2008 18:23:43 +0000 (18:23 +0000)]
Also detect and remove unnecessary if-before-xmlXPathFreeContext.

* build-aux/find-unnecessary-if-before-free: Update regexp.
* src/openvz_conf.c: Remove unnecessary "if (P)"-before xmlXPathFreeContext.
* src/qemu_conf.c: Likewise.
* src/virsh.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* tests/xmlrpctest.c: Likewise.

17 years agoEnable two more tests.
Jim Meyering [Tue, 29 Jan 2008 18:21:00 +0000 (18:21 +0000)]
Enable two more tests.

* Makefile.cfg (local-checks-to-skip)
[sc_cast_of_x_alloc_return_value, sc_cast_of_argument_to_free]: Enable.

17 years agoEnable the <assert.h>-checking test; fix violations.
Jim Meyering [Tue, 29 Jan 2008 18:20:25 +0000 (18:20 +0000)]
Enable the <assert.h>-checking test; fix violations.

* Makefile.cfg (local-checks-to-skip)
[sc_prohibit_assert_without_use]: Enable.
* qemud/mdns.c: Don't include <assert.h>; no uses of assert here.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.

17 years agoEnable the po-check test; fix violations.
Jim Meyering [Tue, 29 Jan 2008 18:19:46 +0000 (18:19 +0000)]
Enable the po-check test; fix violations.

* Makefile.cfg (local-checks-to-skip) [po-check]: Enable.
* po/POTFILES.in: Add three file names.  Sort.

17 years agoUpdate from gnulib
Jim Meyering [Tue, 29 Jan 2008 18:17:47 +0000 (18:17 +0000)]
Update from gnulib
* lib/poll.c: Update.
* lib/string.in.h: Update.
* m4/string_h.m4: Update.
* tests/test-getaddrinfo.c: Update.
* lib/Makefile.am: Regenerate.

17 years agoEnable the <config.h>-requiring test; fix violations
Jim Meyering [Tue, 29 Jan 2008 18:15:54 +0000 (18:15 +0000)]
Enable the <config.h>-requiring test; fix violations

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.

17 years agoEnable the duplicate-"the" test; fix violations
Jim Meyering [Tue, 29 Jan 2008 17:43:28 +0000 (17:43 +0000)]
Enable the duplicate-"the" test; fix violations

* Makefile.cfg (local-checks-to-skip) [sc_the_the]: Enable.
* docs/virsh.pod: Remove a duplicate "the".
* libvirt.spec.in: Likewise.
* virsh.1: Likewise.

17 years ago Add framework for code style- and syntax-checking rules.
Jim Meyering [Tue, 29 Jan 2008 17:42:39 +0000 (17:42 +0000)]
Add framework for code style- and syntax-checking rules.

Almost all tests are initially disabled via the list in Makefile.cfg.
* Makefile.am (EXTRA_DIST): Add .x-sc_avoid_if_before_free.
Omit names of files that automake includes automatically.
* .x-sc_avoid_if_before_free: New file.
* build-aux/vc-list-files: Likewise.
* build-aux/find-unnecessary-if-before-free: Likewise.
* GNUmakefile, Makefile.cfg, Makefile.maint: New files.

17 years agoGiven code like if (foo) free (foo); remove the useless "if (foo) " part.
Jim Meyering [Tue, 29 Jan 2008 17:41:07 +0000 (17:41 +0000)]
Given code like if (foo) free (foo); remove the useless "if (foo) " part.

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.

17 years agoClarify virsh documentation.
Richard W.M. Jones [Fri, 25 Jan 2008 12:03:05 +0000 (12:03 +0000)]
Clarify virsh documentation.
        * docs/virsh.pod: Clarify virsh documentation on when you can
          set memory and vCPUs.

17 years agoFix VIR_DOMAIN_NONE into VIR_DOMAIN_NOSTATE
Daniel Veillard [Fri, 25 Jan 2008 09:47:51 +0000 (09:47 +0000)]
Fix VIR_DOMAIN_NONE into VIR_DOMAIN_NOSTATE
* src/xen_internal.c: fix an erronous use of VIR_DOMAIN_NONE instead
  of VIR_DOMAIN_NOSTATE (both defined as 0, no regression)
Daniel

17 years ago* src/libvirt.c: Jay Gagnon pointed out that virDomainGetXMLDesc
Daniel Veillard [Thu, 24 Jan 2008 17:09:56 +0000 (17:09 +0000)]
* src/libvirt.c: Jay Gagnon pointed out that virDomainGetXMLDesc
  was failing with a non-zero flag value
Daniel

17 years agoCorrect typos in the documentation (Atsushi SAKAI)
Richard W.M. Jones [Thu, 24 Jan 2008 10:15:13 +0000 (10:15 +0000)]
Correct typos in the documentation (Atsushi SAKAI)
        * README, libvirt.spec.in, docs/devhelp/html.xsl,
          docs/devhelp/index.html: Correct typos in the documentation.

17 years agoFix enablement of SASL
Daniel P. Berrange [Wed, 23 Jan 2008 19:37:10 +0000 (19:37 +0000)]
Fix enablement of SASL

17 years agoPortability improvements for Mac OS X.
Richard W.M. Jones [Wed, 23 Jan 2008 14:54:41 +0000 (14:54 +0000)]
Portability improvements for Mac OS X.
        * configure.in: Use PortableXDR if available.
        * qemud/internal.h: Use "socketcompat.h".
        * qemud/qemud.c: Use <signal.h>.
        * src/sexpr.c: Use <stdlib.h> instead of <malloc.h>.
        * src/socketcompat.h: Include <sys/un.h> for Mac OS X.

17 years agoRemove DOS line-endings.
Richard W.M. Jones [Wed, 23 Jan 2008 14:50:14 +0000 (14:50 +0000)]
Remove DOS line-endings.
        * src/socketcompat.h: Remove DOS line-endings in this file.

17 years agoFix compat for old pkg-config and gnutls
Daniel P. Berrange [Tue, 22 Jan 2008 21:30:05 +0000 (21:30 +0000)]
Fix compat for old pkg-config and gnutls

17 years agoAvoid "may be used uninitialized" warning.
Jim Meyering [Mon, 21 Jan 2008 17:06:47 +0000 (17:06 +0000)]
Avoid "may be used uninitialized" warning.

* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".

17 years agoFix & refactor ref counting cleanup code
Daniel P. Berrange [Mon, 21 Jan 2008 16:29:10 +0000 (16:29 +0000)]
Fix & refactor ref counting cleanup code

17 years agoMake python generator fail build on any missing APIs
Daniel P. Berrange [Mon, 21 Jan 2008 15:55:53 +0000 (15:55 +0000)]
Make python generator fail build on any missing APIs

17 years agoAdd missing vcpu/schedular APIs to python binding
Daniel P. Berrange [Mon, 21 Jan 2008 15:41:15 +0000 (15:41 +0000)]
Add missing vcpu/schedular APIs to python binding

17 years agoUse virFileReadAll in virsh.c
Daniel P. Berrange [Mon, 21 Jan 2008 15:27:14 +0000 (15:27 +0000)]
Use virFileReadAll in virsh.c

17 years agoRemove no-op networking APIs from openvz driver
Daniel P. Berrange [Mon, 21 Jan 2008 15:19:46 +0000 (15:19 +0000)]
Remove no-op networking APIs from openvz driver

17 years agoAdjust sexpr-related interfaces to be const-correct.
Jim Meyering [Mon, 21 Jan 2008 14:22:15 +0000 (14:22 +0000)]
Adjust sexpr-related interfaces to be const-correct.

* 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.

17 years agoDon't access line[-1] for a zero-length "line" from fgets.
Jim Meyering [Mon, 21 Jan 2008 14:09:51 +0000 (14:09 +0000)]
Don't access line[-1] for a zero-length "line" from fgets.

A NUL byte at beginning of input, or just after a newline
would provoke an invalid buf[-1] access (possible segfault).
* src/libvirt.c (virConnectAuthCallbackDefault):

17 years agoPreserve vif order
Daniel Veillard [Mon, 21 Jan 2008 08:27:12 +0000 (08:27 +0000)]
Preserve vif order
* src/xml-internal.c: apply patch from Hiroyuki Kaguchi to
  preserve the vif list order.
Daniel

17 years agoRemove docs/API*.html
Daniel Veillard [Mon, 21 Jan 2008 08:08:33 +0000 (08:08 +0000)]
Remove docs/API*.html
* docs/API* docs/api.xsl docs/site.xsl docs/Makefile.am: remove the
  generation of the API*.html files as it's not really useful here
Daniel

17 years agoAdded xstrtol_ll and xstrtol_ull convenience functions
Daniel P. Berrange [Sun, 20 Jan 2008 16:11:25 +0000 (16:11 +0000)]
Added xstrtol_ll and xstrtol_ull convenience functions

17 years agoFix nodeinfo compat for Xen 3.2.0
Daniel P. Berrange [Sun, 20 Jan 2008 15:56:49 +0000 (15:56 +0000)]
Fix nodeinfo compat for Xen 3.2.0

17 years agoEnable debug by default, but only if LIBVIRT_DEBUG=1. Use generic macro for debug...
Daniel P. Berrange [Sat, 19 Jan 2008 18:36:01 +0000 (18:36 +0000)]
Enable debug by default, but only if LIBVIRT_DEBUG=1. Use generic macro for debug output

17 years agoHandle PyTuple_New's malloc failure.
Jim Meyering [Thu, 17 Jan 2008 22:14:57 +0000 (22:14 +0000)]
Handle PyTuple_New's malloc failure.

* python/libvir.c (libvirt_virDomainBlockStats): Handle a NULL
return from PyTuple_New.
(libvirt_virDomainInterfaceStats, libvirt_virGetLastError): Likewise.
(libvirt_virConnGetLastError): Likewise.

17 years agoFactor out some duplication.
Jim Meyering [Thu, 17 Jan 2008 22:13:55 +0000 (22:13 +0000)]
Factor out some duplication.

* python/libvir.c (VIR_PY_NONE): New macro, to encapsulate
a common two-statement sequence.
Replace all such 2-stmt sequences.

17 years agoAvoid format string warnings.
Jim Meyering [Wed, 16 Jan 2008 17:13:23 +0000 (17:13 +0000)]
Avoid format string warnings.

* src/virsh.c: Add "%s" where needed.
* src/proxy_internal.c: Likewise.

17 years agodocs/examples/examples.xml: Regenerate, now that *.c file names are sorted.
Jim Meyering [Tue, 15 Jan 2008 15:27:31 +0000 (15:27 +0000)]
docs/examples/examples.xml: Regenerate, now that *.c file names are sorted.

17 years agoSupport VNC keymap option with QEMU (Daniel Hokka Zakrisson)
Daniel P. Berrange [Tue, 15 Jan 2008 15:18:33 +0000 (15:18 +0000)]
Support VNC keymap option with QEMU (Daniel Hokka Zakrisson)

17 years agoFix off-by-one in SSH argv checking. Fix format string warning
Daniel P. Berrange [Tue, 15 Jan 2008 14:23:52 +0000 (14:23 +0000)]
Fix off-by-one in SSH argv checking. Fix format string warning

17 years agoUpdate from gnulib.
Jim Meyering [Mon, 14 Jan 2008 14:07:25 +0000 (14:07 +0000)]
Update from gnulib.

17 years agoClean up the global name space.
Jim Meyering [Mon, 14 Jan 2008 14:05:25 +0000 (14:05 +0000)]
Clean up the global name space.

* src/qemu_conf.c: Add "static" and "const" attributes to some globals.
* src/qemu_conf.h: Update a declaration.
* src/qemu_driver.c (qemud_driver): Declare static.

Author: Jim Meyering <meyering@redhat.com>

17 years agoClean up global name space in examples and tests.
Jim Meyering [Mon, 14 Jan 2008 14:04:33 +0000 (14:04 +0000)]
Clean up global name space in examples and tests.

* docs/examples/suspend.c: Declare global "conn" to be static.
* tests/qemuxml2argvtest.c: Declare global "driver" to be static.
* tests/qemuxml2xmltest.c: Likewise.

Author: Jim Meyering <meyering@redhat.com>

17 years agoRe-factor auth code to make clearer (Jim Meyering)
Daniel P. Berrange [Mon, 14 Jan 2008 04:05:23 +0000 (04:05 +0000)]
Re-factor auth code to make clearer (Jim Meyering)

17 years agoFix crash when no auth callback
Daniel P. Berrange [Mon, 14 Jan 2008 04:00:34 +0000 (04:00 +0000)]
Fix crash when no auth callback

17 years agofix an unused variable warning
Mark McLoughlin [Thu, 10 Jan 2008 14:41:39 +0000 (14:41 +0000)]
fix an unused variable warning

17 years agoadd iptablesSaveRules(), and don't save the rules to disk
Mark McLoughlin [Thu, 10 Jan 2008 14:01:00 +0000 (14:01 +0000)]
add iptablesSaveRules(), and don't save the rules to disk
and run lokkit each time a new rule is added.

17 years agonow that we only use built-in iptables chains, we don't
Mark McLoughlin [Thu, 10 Jan 2008 13:58:59 +0000 (13:58 +0000)]
now that we only use built-in iptables chains, we don't
need to add or delete them

17 years agoLike --with-iptables-prefix, --with-iptables-dir is no
Mark McLoughlin [Thu, 10 Jan 2008 13:57:48 +0000 (13:57 +0000)]
Like --with-iptables-prefix, --with-iptables-dir is no
longer useful, so let's remove it.

17 years ago--with-iptables-prefix was added to integrate with
Mark McLoughlin [Thu, 10 Jan 2008 13:56:22 +0000 (13:56 +0000)]
--with-iptables-prefix was added to integrate with
a proposed system for letting iptables know how to
reload our rules. The proposed system wasn't accepted
so, although there might be some other theoretical
use for this, let's just remove it.

17 years agoAdd support for integrating our iptables support with Fedora's
Mark McLoughlin [Thu, 10 Jan 2008 13:54:02 +0000 (13:54 +0000)]
Add support for integrating our iptables support with Fedora's
iptables configuration using the lokkit --custom-rules command.

Basically, we write out our rules to /var/lib/libvirt/iptables
and run lokkit --custom-rules so that if e.g. iptables is
restarted or the user edits their firewall configuration, then
libvirt's rules get reloaded.

17 years agoInclude the iptables command and chain name in the saved rules files
Mark McLoughlin [Thu, 10 Jan 2008 13:51:55 +0000 (13:51 +0000)]
Include the iptables command and chain name in the saved rules files

17 years agoRe-name the "flipflop" variable to "command_idx"
Mark McLoughlin [Thu, 10 Jan 2008 13:50:46 +0000 (13:50 +0000)]
Re-name the "flipflop" variable to "command_idx"

17 years agomake use of virFileMakePath(), virFileBuildPath() and virRun().
Mark McLoughlin [Thu, 10 Jan 2008 13:49:55 +0000 (13:49 +0000)]
make use of virFileMakePath(), virFileBuildPath() and virRun().

17 years agoFix compile error in --with-iptables-dir code
Mark McLoughlin [Thu, 10 Jan 2008 13:48:44 +0000 (13:48 +0000)]
Fix compile error in --with-iptables-dir code

17 years agoChange virExec() such that with --enable-debug,
Mark McLoughlin [Thu, 10 Jan 2008 13:47:49 +0000 (13:47 +0000)]
Change virExec() such that with --enable-debug,
stdout and stderr no longer go to /dev/null.

17 years agoAdd virRun() helper function (Dan Berrange)
Mark McLoughlin [Thu, 10 Jan 2008 13:46:10 +0000 (13:46 +0000)]
Add virRun() helper function (Dan Berrange)

17 years agoFix vcpupin hypercall map data to be 8-bytes
Daniel P. Berrange [Wed, 9 Jan 2008 21:08:29 +0000 (21:08 +0000)]
Fix vcpupin hypercall map data to be 8-bytes

17 years agoAdded graceful shutdown support to QEMU/KVM (patch from Guido Guenther)
Daniel P. Berrange [Wed, 9 Jan 2008 16:05:21 +0000 (16:05 +0000)]
Added graceful shutdown support to QEMU/KVM (patch from Guido Guenther)

17 years agoFix warning in debug output
Daniel P. Berrange [Tue, 8 Jan 2008 17:52:10 +0000 (17:52 +0000)]
Fix warning in debug output

17 years agoFix buffer passed to free()
Daniel P. Berrange [Tue, 8 Jan 2008 16:17:15 +0000 (16:17 +0000)]
Fix buffer passed to free()

17 years agoFix config file reading to not truncate large files
Daniel P. Berrange [Mon, 7 Jan 2008 15:21:33 +0000 (15:21 +0000)]
Fix config file reading to not truncate large files

17 years agoMiscellaneous fixes for building on Windows (MinGW).
Richard W.M. Jones [Sat, 5 Jan 2008 16:06:36 +0000 (16:06 +0000)]
Miscellaneous fixes for building on Windows (MinGW).
* configure.in: xdr functions may require -lxdr.
* configure.in, src/Makefile.am: Extra linking flags for
  building libvirt DLL.
* src/socketcompat.h: Hide Windows Winsock incompatibilities
  in a separate header file.
* src/remote_internal.c: Switch to using socketcompat.h /
  socket_errno().
* src/test.c: Switch to using socketcompat.h.
* gnulib/lib/arpa/.cvsignore: Ignore another generated file.
* src/qparams.c: Include <config.h>.

17 years agoFix crash when no auth callback is provided
Daniel P. Berrange [Wed, 2 Jan 2008 22:48:04 +0000 (22:48 +0000)]
Fix crash when no auth callback is provided

17 years agoIgnore a few more files
Daniel P. Berrange [Wed, 2 Jan 2008 16:31:21 +0000 (16:31 +0000)]
Ignore a few more files

17 years ago* src/openvz.c: patch from Mikhail Pokidko to fix the OpenVZ
Daniel Veillard [Wed, 26 Dec 2007 05:41:05 +0000 (05:41 +0000)]
* src/openvz.c: patch from Mikhail Pokidko to fix the OpenVZ
  compilation error #426385
Daniel

17 years agoFix docs, daniel
Daniel Veillard [Tue, 18 Dec 2007 00:16:56 +0000 (00:16 +0000)]
Fix docs, daniel

17 years agoAdded changelog for 0.4.0
Daniel Veillard [Mon, 17 Dec 2007 23:51:07 +0000 (23:51 +0000)]
Added changelog for 0.4.0
Daniel

17 years ago* configure.in docs/libvir.html docs/news.html po/*:
Daniel Veillard [Mon, 17 Dec 2007 23:20:12 +0000 (23:20 +0000)]
* configure.in docs/libvir.html docs/news.html po/*:
  prepare release of libvirt-0.4.0
Daniel

17 years agoAdded dep on 'nc' RPM
Daniel P. Berrange [Mon, 17 Dec 2007 23:05:51 +0000 (23:05 +0000)]
Added dep on 'nc' RPM

17 years agoFix nodeinfo compat with Xen 3.2.0
Daniel P. Berrange [Mon, 17 Dec 2007 23:04:33 +0000 (23:04 +0000)]
Fix nodeinfo compat with Xen 3.2.0

17 years agoFix remote_internal.c error handling of qparam_get_query
Richard W.M. Jones [Mon, 17 Dec 2007 17:41:02 +0000 (17:41 +0000)]
Fix remote_internal.c error handling of qparam_get_query
        * src/remote_internal.c: Fixed reversed check of error handling
          of qparam_get_query call (Dan Berrange).

17 years agoAdd separate qparams module for handling query parameters.
Richard W.M. Jones [Mon, 17 Dec 2007 10:07:56 +0000 (10:07 +0000)]
Add separate qparams module for handling query parameters.
* src/qparams.c, src/qparams.h, src/Makefile.am: Added a
  separate 'qparams' module for handling query parameters.
* src/remote_internal.c: Factor out query parameter code so
  it uses the 'qparams' module.

17 years agoAdd extra utility functions to buf.c
Richard W.M. Jones [Mon, 17 Dec 2007 10:05:35 +0000 (10:05 +0000)]
Add extra utility functions to buf.c
* src/buf.c, src/buf.h: Added utility functions
  virBufferURIEncodeString and virBufferAddChar to the
  buffer module.

17 years agoDon't invoke callback with unsupported credential types
Daniel P. Berrange [Sat, 15 Dec 2007 17:15:12 +0000 (17:15 +0000)]
Don't invoke callback with unsupported credential types

17 years agofix setting CPU parameters in the config files
Daniel Veillard [Fri, 14 Dec 2007 15:51:42 +0000 (15:51 +0000)]
fix setting CPU parameters in the config files
* src/xm_internal.c: patch from Saori Fukuta to fix setting
  CPU parameters in the config files, the value was overwritten
Daniel

17 years agofix the detach-disk command when using Xen tap devices
Daniel Veillard [Fri, 14 Dec 2007 15:38:02 +0000 (15:38 +0000)]
fix the detach-disk command when using Xen tap devices
* src/xs_internal.[ch]: patch from Saori Fukuta to fix the
  detach-disk command when using Xen tap devices.
* docs/libvir.html: typo fix from Jim Meyering
Daniel

17 years agoFix virBufferEscapeString escaping of '<'
Richard W.M. Jones [Wed, 12 Dec 2007 16:27:10 +0000 (16:27 +0000)]
Fix virBufferEscapeString escaping of '<'
        * src/buf.c (virBufferEscapeString): '<' escaped as "&lt;"

17 years agoAlways build in python/ subdir.
Jim Meyering [Wed, 12 Dec 2007 08:12:38 +0000 (08:12 +0000)]
Always build in python/ subdir.

* configure.in (PYTHON_SUBDIR): Don't set.  Remove all uses.
* Makefile.am (SUBDIRS): Hard-code "python" here.
(tests): Test equivalent "$(pythondir)", not @PYTHON_SUBDIR@.

17 years agoAccommodate automake-1.9.
Jim Meyering [Wed, 12 Dec 2007 07:21:37 +0000 (07:21 +0000)]
Accommodate automake-1.9.

* tests/Makefile.am (TESTS_ENVIRONMENT): Adjust PATH setting
to work also with automake-1.9.  Can't use $(abs_top_builddir).

Author: Jim Meyering <meyering@redhat.com>

17 years agoUse a variable name as sizeof argument, not a type name.
Jim Meyering [Tue, 11 Dec 2007 21:57:29 +0000 (21:57 +0000)]
Use a variable name as sizeof argument, not a type name.

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_.

17 years agoTest libvirtd's config-processing code.
Jim Meyering [Tue, 11 Dec 2007 21:20:13 +0000 (21:20 +0000)]
Test libvirtd's config-processing code.

And remove a minor diagnostic inconsistency.
* tests/daemon-conf: New test.
* tests/Makefile.am (TESTS_ENVIRONMENT): Prepend qemud/ to PATH,
so we can invoke libvirtd without an absolute name.
(test_scripts): Add daemon-conf.
* qemud/qemud.c (remoteConfigGetAuth): Use checkType,
rather than open-coding it with a different diagnostic.

17 years agoAdd gnulib-tool unit tests.
Jim Meyering [Mon, 10 Dec 2007 18:26:56 +0000 (18:26 +0000)]
Add gnulib-tool unit tests.
* bootstrap: Re-add --with-tests, now that gnulib-tool
arranges to use separate libraries for lib/ and tests/.
* configure.in (AC_OUTPUT): Add gnulib/tests/Makefile.in.
* Makefile.am (SUBDIRS): Add gnulib/tests.
* gnulib/tests/Makefile.am: New file.
* gnulib/lib/.cvsignore: Sort.
* gnulib/lib/Makefile.am, gnulib/m4/getdelim.m4, gnulib/m4/getline.m4:
* gnulib/m4/gnulib-cache.m4, gnulib/m4/gnulib-comp.m4: Regenerate.
* gnulib/tests/test-alloca-opt.c: New file, from gnulib.
* gnulib/tests/test-arpa_inet.c: Likewise.
* gnulib/tests/test-fseeko.c: Likewise.
* gnulib/tests/test-fseeko.sh: Likewise.
* gnulib/tests/test-getaddrinfo.c: Likewise.
* gnulib/tests/test-getdelim.c: Likewise.
* gnulib/tests/test-getline.c: Likewise.
* gnulib/tests/test-lseek.c: Likewise.
* gnulib/tests/test-lseek.sh: Likewise.
* gnulib/tests/test-netinet_in.c: Likewise.
* gnulib/tests/test-snprintf.c: Likewise.
* gnulib/tests/test-stdbool.c: Likewise.
* gnulib/tests/test-stdint.c: Likewise.
* gnulib/tests/test-stdio.c: Likewise.
* gnulib/tests/test-stdlib.c: Likewise.
* gnulib/tests/test-string.c: Likewise.
* gnulib/tests/test-sys_select.c: Likewise.
* gnulib/tests/test-sys_socket.c: Likewise.
* gnulib/tests/test-sys_stat.c: Likewise.
* gnulib/tests/test-sys_time.c: Likewise.
* gnulib/tests/test-unistd.c: Likewise.
* gnulib/tests/test-vasnprintf.c: Likewise.
* gnulib/tests/test-vasprintf.c: Likewise.
* gnulib/tests/test-wchar.c: Likewise.
* gnulib/tests/dummy.c: Likewise.
* gnulib/tests/intprops.h: Likewise.
* gnulib/tests/verify.h: Likewise.

17 years agoRemove gnulib/lib/arpa/inet.h autogenerated file
Daniel P. Berrange [Sat, 8 Dec 2007 23:08:54 +0000 (23:08 +0000)]
Remove gnulib/lib/arpa/inet.h autogenerated file

17 years agoRemove bogus autoconf 2.60 prereq
Daniel P. Berrange [Fri, 7 Dec 2007 15:31:36 +0000 (15:31 +0000)]
Remove bogus autoconf 2.60 prereq