]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
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

17 years agoFix minor quoting issue
Daniel P. Berrange [Fri, 7 Dec 2007 15:17:42 +0000 (15:17 +0000)]
Fix minor quoting issue

17 years agoFri Dec 7 14:55:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 15:00:26 +0000 (15:00 +0000)]
Fri Dec  7 14:55:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

        * proxy/Makefile.am: Include gnulib code when building the
          proxy.

17 years agoFri Dec 7 14:49:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:56:37 +0000 (14:56 +0000)]
Fri Dec  7 14:49:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/console.c, src/console.h, src/virsh.c: Disable
  text console on Windows.
* src/libvirt.c: Use replacement getpass from Gnulib.
* src/libvirt.c: Initialize Winsock before use.
* src/remote_internal.c: Header file fixes for Windows.
  Don't fail if AI_ADDRCONFIG isn't defined.  Disable
  unsupported stuff under Windows.
* src/uuid.c: ENODATA unavailable on Windows, use EIO instead.
* src/virsh.c: No uid_t / getuid on Windows.
* src/virsh.c: No O_SYNC on Windows.

17 years agoFri Dec 7 14:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:52:24 +0000 (14:52 +0000)]
Fri Dec  7 14:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/internal.h: Use gnulib gettext library.  Define
  INET_ADDRSTRLEN unless already defined.

17 years agoFri Dec 7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:45:39 +0000 (14:45 +0000)]
Fri Dec  7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/.cvsignore: Ignore *.loT files (generated under Windows).
* proxy/libvirt_proxy.c: Bail out earlier --without-xen.
* src/proxy_internal.c: Don't build proxy client side if
  configured --without-xen.
* src/iptables.c, src/iptables.h: Disable this code if
  configured --without-qemu.
* src/nodeinfo.c: If no 'uname' function, set model name to
  empty string (for Windows).
* src/xen_unified.h, src/util.c, src/test.c: Include <winsock2.h>
  on Windows.
* src/util.c: Disable virExec* and virFileLinkPointsTo on
  MinGW.

17 years agoFri Dec 7 14:34:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:39:14 +0000 (14:39 +0000)]
Fri Dec  7 14:34:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/sexpr.c: Cosmetic rearrangement of headers.

17 years agoInsert cosmetic linebreak
Richard W.M. Jones [Fri, 7 Dec 2007 14:38:34 +0000 (14:38 +0000)]
Insert cosmetic linebreak

17 years agoFri Dec 7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:35:18 +0000 (14:35 +0000)]
Fri Dec  7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* configure.in: Extra checks for uname and some header files
  (for MinGW Windows port).

17 years agoFri Dec 7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Fri, 7 Dec 2007 14:32:35 +0000 (14:32 +0000)]
Fri Dec  7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* bootstrap, Makefile.am, gnulib/*: Import more gnulib
  modules for use by MinGW Windows port.

17 years agoInclude "config.h" in remaining non-generated files.
Jim Meyering [Fri, 7 Dec 2007 10:08:06 +0000 (10:08 +0000)]
Include "config.h" in remaining non-generated files.

* proxy/libvirt_proxy.c: Likewise.
* python/libvir.c: Likewise.
* python/types.c: Likewise.
* src/event.c: Likewise.
* src/xm_internal.c: Likewise.
* tests/reconnect.c: Likewise.
* tests/testutils.c: Likewise.

17 years ago* python/generator.py python/libvir.c python/libvirt-python-api.xml:
Daniel Veillard [Fri, 7 Dec 2007 08:41:01 +0000 (08:41 +0000)]
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
  add a python binding for virNodeGetCellsFreeMemory
Daniel

17 years agoqemud/qemud.c (qemudInitPaths): Remove unused code.
Jim Meyering [Thu, 6 Dec 2007 16:41:43 +0000 (16:41 +0000)]
qemud/qemud.c (qemudInitPaths): Remove unused code.

17 years agoThu Dec 6 16:32:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Thu, 6 Dec 2007 16:36:21 +0000 (16:36 +0000)]
Thu Dec  6 16:32:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* src/virsh.c: The prompt should depend on readonly status,
  not on the UID.

17 years agoThu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Thu, 6 Dec 2007 16:34:48 +0000 (16:34 +0000)]
Thu Dec  6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* configure.in, qemud/Makefile.am: Added a --without-libvirtd
  configure option.

17 years agoReally fix macro for RHEL this time
Daniel P. Berrange [Thu, 6 Dec 2007 16:07:18 +0000 (16:07 +0000)]
Really fix macro for RHEL this time

17 years agoFix polkit macros for RHEL
Daniel P. Berrange [Thu, 6 Dec 2007 15:35:54 +0000 (15:35 +0000)]
Fix polkit macros for RHEL

17 years ago* docs/*: rebuilt the docs and XML files
Daniel Veillard [Thu, 6 Dec 2007 14:54:23 +0000 (14:54 +0000)]
* docs/*: rebuilt the docs and XML files
Daniel

17 years ago* po/*: updated the localization files
Daniel Veillard [Thu, 6 Dec 2007 14:43:41 +0000 (14:43 +0000)]
* po/*: updated the localization files
Daniel

17 years agoThu Dec 6 12:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Thu, 6 Dec 2007 12:05:35 +0000 (12:05 +0000)]
Thu Dec  6 12:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

        * src/remote_internal.c: Clean up a warning if neither SASL
          nor PolKit are enabled.

17 years agoBuild also on systems where -lreadline requires e.g., -lncurses
Jim Meyering [Thu, 6 Dec 2007 11:42:26 +0000 (11:42 +0000)]
Build also on systems where -lreadline requires e.g., -lncurses

* configure.in: If the test for -lreadline fails, search for a
library with termcap support.  If one is found (often -lncurses),
rerun the test for -lreadline, linking also with the new library.

Author: Jim Meyering <meyering@redhat.com>

17 years ago* configure.in src/Makefile.am src/virsh.c: fix compilation problems
Daniel Veillard [Thu, 6 Dec 2007 10:24:52 +0000 (10:24 +0000)]
* configure.in src/Makefile.am src/virsh.c: fix compilation problems
  when readline headers were found but not the library
Daniel

17 years agoAccommodate developers using autoconf-2.59.
Jim Meyering [Wed, 5 Dec 2007 23:02:13 +0000 (23:02 +0000)]
Accommodate developers using autoconf-2.59.

* configure.in (m4_foreach_w): Define if not defined.

Author: Jim Meyering <meyering@redhat.com>

17 years agoInclude "config.h".
Jim Meyering [Wed, 5 Dec 2007 21:40:15 +0000 (21:40 +0000)]
Include "config.h".

* qemud/event.c: Likewise.
* src/buf.c: Likewise.
* src/hash.c: Likewise.
* src/nodeinfo.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/proxy_internal.c: Likewise.
* src/virterror.c: Likewise.
* src/xmlrpc.c: Likewise.
* src/xs_internal.c: Likewise.
* tests/conftest.c: Likewise.
* tests/xmlrpctest.c: Likewise.
This fixes a mingw build failure reported by Rich Jones.

Author: Jim Meyering <meyering@redhat.com>

17 years agoAdd all of the files pulled in by running ./bootstrap.
Jim Meyering [Wed, 5 Dec 2007 21:35:32 +0000 (21:35 +0000)]
Add all of the files pulled in by running ./bootstrap.

Adjust .cvsignore files.

Author: Jim Meyering <meyering@redhat.com>

17 years agoUse gnulib, starting with its physmem and getaddrinfo modules.
Jim Meyering [Wed, 5 Dec 2007 21:31:07 +0000 (21:31 +0000)]
Use gnulib, starting with its physmem and getaddrinfo modules.

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>

17 years ago* qemud/remote.c: rename remoteDispatchAuthPolkitInit to
Daniel Veillard [Wed, 5 Dec 2007 20:45:37 +0000 (20:45 +0000)]
* qemud/remote.c: rename remoteDispatchAuthPolkitInit to
  remoteDispatchAuthPolkit, the no-op init call when policykit
  is not available
Daniel

17 years agoFix compile issues when SASL is disabled
Daniel P. Berrange [Wed, 5 Dec 2007 19:25:44 +0000 (19:25 +0000)]
Fix compile issues  when SASL is disabled

17 years agoAdded docs on authentication setup
Daniel P. Berrange [Wed, 5 Dec 2007 19:16:13 +0000 (19:16 +0000)]
Added docs on authentication setup

17 years agoDisable setuid Xen proxy if policykit is enabled
Daniel P. Berrange [Wed, 5 Dec 2007 19:11:01 +0000 (19:11 +0000)]
Disable setuid Xen proxy if policykit is enabled

17 years agoAdd manual impl of virConnectOpenAuth python binding
Daniel P. Berrange [Wed, 5 Dec 2007 19:09:23 +0000 (19:09 +0000)]
Add manual impl of virConnectOpenAuth python binding

17 years agoRe-add listen_tcp/listen_tls config params accidentally lost
Daniel P. Berrange [Wed, 5 Dec 2007 18:56:27 +0000 (18:56 +0000)]
Re-add listen_tcp/listen_tls config params accidentally lost

17 years agoWire up SASL interaction callbacks to libvirt callbacks. Provide default callback...
Daniel P. Berrange [Wed, 5 Dec 2007 18:55:04 +0000 (18:55 +0000)]
Wire up SASL interaction callbacks to libvirt callbacks. Provide default callback impl

17 years agoAdded public API for authentication credential callback support
Daniel P. Berrange [Wed, 5 Dec 2007 18:28:05 +0000 (18:28 +0000)]
Added public API for authentication credential callback support

17 years agoAdded PolicyKit authentication support
Daniel P. Berrange [Wed, 5 Dec 2007 18:21:27 +0000 (18:21 +0000)]
Added PolicyKit authentication support

17 years agoAdded missing sasl config file
Daniel P. Berrange [Wed, 5 Dec 2007 18:21:04 +0000 (18:21 +0000)]
Added missing sasl config file

17 years agoWed Dec 5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Wed, 5 Dec 2007 18:05:13 +0000 (18:05 +0000)]
Wed Dec  5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

        * src/Makefile.am, tests/Makefile.am: Remove LIBOBJS/LTLIBOBJS
          which were incorrectly committed earlier.

17 years agoQuit virsh immediately if connection open fails, rather than giving a non-functional...
Daniel P. Berrange [Wed, 5 Dec 2007 16:24:22 +0000 (16:24 +0000)]
Quit virsh immediately if connection open fails, rather than giving a non-functional interactive shell

17 years agoAdd whitelisting of users. Remove IP whitelisting. Make auth schemes configurable
Daniel P. Berrange [Wed, 5 Dec 2007 15:34:05 +0000 (15:34 +0000)]
Add whitelisting of users. Remove IP whitelisting. Make auth schemes configurable

17 years agoAdd data encryption using SASL SSF layer
Daniel P. Berrange [Wed, 5 Dec 2007 15:27:08 +0000 (15:27 +0000)]
Add data encryption using SASL SSF layer

17 years agoInitial integration of SASL authentication, working for Kerberos only
Daniel P. Berrange [Wed, 5 Dec 2007 15:24:15 +0000 (15:24 +0000)]
Initial integration of SASL authentication, working for Kerberos only

17 years agoStrip autogenerated vnetXXX interfaces
Daniel P. Berrange [Wed, 5 Dec 2007 15:08:23 +0000 (15:08 +0000)]
Strip autogenerated vnetXXX interfaces

17 years agoWed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Wed, 5 Dec 2007 13:56:22 +0000 (13:56 +0000)]
Wed Dec  5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

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

17 years agoTue Dec 4 18:25:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Tue, 4 Dec 2007 19:14:11 +0000 (19:14 +0000)]
Tue Dec  4 18:25:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

       * configure.in: Fix configure if rpcgen program is missing.

17 years agoTue Dec 4 17:47:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
Richard W.M. Jones [Tue, 4 Dec 2007 18:27:52 +0000 (18:27 +0000)]
Tue Dec  4 17:47:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* configure.in: curses is not actually required to build libvirt
* configure.in, src/virsh.c: Make readline optional.  If not
  available then virsh is built without support for command
  line editing.

17 years agoAvoid compile failure when HAVE_AVAHI is not defined.
Jim Meyering [Mon, 3 Dec 2007 19:45:00 +0000 (19:45 +0000)]
Avoid compile failure when HAVE_AVAHI is not defined.

* qemud/qemud.c (remoteReadConfigFile): Remove some of the
"#ifdef HAVE_AVAHI" guards around uses of mdns_name and mdns_adv.