]>
xenbits.xensource.com Git - libvirt.git/log
Jim Meyering [Tue, 25 Nov 2008 10:32:27 +0000 (10:32 +0000)]
* src/virterror.c (virReportErrorHelper): Sync doc to code.
Jim Meyering [Tue, 25 Nov 2008 10:31:52 +0000 (10:31 +0000)]
libvirt.c: document the virState* functions
* src/libvirt.c (virStateActive, virStateCleanup, virStateReload):
(virStateActive): Add per-function comments.
Daniel P. Berrange [Mon, 24 Nov 2008 19:34:21 +0000 (19:34 +0000)]
Set default vCPUs to match pCPUs for OpenVZ containers (Evgeniy Sokolov )
Daniel P. Berrange [Mon, 24 Nov 2008 19:28:12 +0000 (19:28 +0000)]
Fix python bindings events code (David Lively)
Daniel P. Berrange [Mon, 24 Nov 2008 19:23:39 +0000 (19:23 +0000)]
Fix test suite build when Xen driver is disabled
Daniel P. Berrange [Mon, 24 Nov 2008 16:50:18 +0000 (16:50 +0000)]
Disable UML build on mingw32
Guido Günther [Mon, 24 Nov 2008 15:07:45 +0000 (15:07 +0000)]
* src/Makefile.am: look for libvirt_sym.version in builddir
Jim Meyering [Mon, 24 Nov 2008 07:13:29 +0000 (07:13 +0000)]
tests: new test: virsh-synopsis
* tests/virsh-synopsis: new file
* tests/Makefile.am (test_scripts): Add virsh-synopsis.
* src/virsh.c: Correct help SYNOPSIS for each of seven commands.
When I first ran this script, "make check" failed like this:
...
invalid help SYNOPSIS for net-create:
create a network from an XML <file>
invalid help SYNOPSIS for net-define:
define a network from an XML <file>
invalid help SYNOPSIS for net-start:
start <network>
invalid help SYNOPSIS for pool-create:
create a pool from an XML <file>
invalid help SYNOPSIS for pool-define:
define a pool from an XML <file>
invalid help SYNOPSIS for pool-start:
start <pool>
invalid help SYNOPSIS for vol-create:
create <file>
FAIL: virsh-synopsis
Jim Meyering [Mon, 24 Nov 2008 07:12:41 +0000 (07:12 +0000)]
tests: virsh-all: new script
* tests/virsh-all: New script.
* tests/Makefile.am (test_scripts): Add virsh-all.
Jim Meyering [Mon, 24 Nov 2008 07:11:26 +0000 (07:11 +0000)]
Move the expected output data from virshdata/*.txt into virshtest.c.
* tests/virshtest.c: Embed literal, expected output here, rather than
using virshdata/*.txt file names.
Factor out some common constructs.
(testCompareOutputLit): New function.
(testCompareOutput): #ifdef-out, not that it's unused.
* tests/Makefile.am (SUBDIRS): Remove virshdata/ and all files in it.
* docs/testnode.xml: Fix typo in a comment.
* configure.in (AC_OUTPUT): Remove tests/virshdata/Makefile.
Jim Meyering [Mon, 24 Nov 2008 07:09:36 +0000 (07:09 +0000)]
* gnulib/tests/test-EOVERFLOW: Remove.
* gnulib/tests/.cvsignore: Add test-EOVERFLOW, then...
Run "make sync-vcs-ignore-files" to Update .gitignore files.
Daniel P. Berrange [Fri, 21 Nov 2008 12:54:51 +0000 (12:54 +0000)]
Re-generate website docs
Daniel P. Berrange [Fri, 21 Nov 2008 12:51:41 +0000 (12:51 +0000)]
Regenerate API docs
Daniel P. Berrange [Fri, 21 Nov 2008 12:46:39 +0000 (12:46 +0000)]
Misc tweaks to node device impl
Daniel P. Berrange [Fri, 21 Nov 2008 12:41:15 +0000 (12:41 +0000)]
Python binding for node device APIs (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:39:48 +0000 (12:39 +0000)]
Node device support in virsh (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:31:04 +0000 (12:31 +0000)]
Remote protocol support for node devices (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:27:11 +0000 (12:27 +0000)]
Node device driver for HAL and DeviceKit (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:20:45 +0000 (12:20 +0000)]
Internal APIs for handling node device XML configuration (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:19:22 +0000 (12:19 +0000)]
Public API for node device enumeration (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 12:16:08 +0000 (12:16 +0000)]
Optional dlopen support for drivers
Daniel P. Berrange [Fri, 21 Nov 2008 11:44:03 +0000 (11:44 +0000)]
Add export of virDomainEventCallbackListRemoveConn method
Daniel P. Berrange [Fri, 21 Nov 2008 11:42:51 +0000 (11:42 +0000)]
Fix two memory leaks in domain conf and LXC code
Daniel P. Berrange [Fri, 21 Nov 2008 10:22:58 +0000 (10:22 +0000)]
Misc fixes to event registration failure cases
Daniel P. Berrange [Fri, 21 Nov 2008 10:17:22 +0000 (10:17 +0000)]
Fix crash due to failure to unregister event callbacks in QEMU driver (David Lively)
Daniel P. Berrange [Fri, 21 Nov 2008 10:12:03 +0000 (10:12 +0000)]
Add Xen compiler flags for stats_linux.c build
Daniel P. Berrange [Fri, 21 Nov 2008 10:09:08 +0000 (10:09 +0000)]
Allow UML build to be disabled in RPM
Daniel Veillard [Fri, 21 Nov 2008 10:06:28 +0000 (10:06 +0000)]
* po/POTFILES.in src/uml_conf.h src/uml_driver.c: fixes syntax
check errors, reported by Ben Guthro
daniel
Daniel P. Berrange [Thu, 20 Nov 2008 14:33:59 +0000 (14:33 +0000)]
Fix crash on NULL uri scheme
Daniel P. Berrange [Wed, 19 Nov 2008 16:58:23 +0000 (16:58 +0000)]
Add an initial User Mode Linux Driver
Daniel P. Berrange [Wed, 19 Nov 2008 16:24:01 +0000 (16:24 +0000)]
Add a virFreeCallback to event loop APIs
Daniel P. Berrange [Wed, 19 Nov 2008 16:19:36 +0000 (16:19 +0000)]
Change public API for virEventAddHandle to allow multiple registrations per FD
Daniel P. Berrange [Wed, 19 Nov 2008 15:25:24 +0000 (15:25 +0000)]
Add a virFreeCallback to virDomainEventRegister (from David Lively)
Daniel P. Berrange [Tue, 18 Nov 2008 12:46:13 +0000 (12:46 +0000)]
Fix windows build & build without QEMU driver
Daniel P. Berrange [Mon, 17 Nov 2008 16:52:32 +0000 (16:52 +0000)]
Add QEMU driver events for defined/undefined config files
Daniel P. Berrange [Mon, 17 Nov 2008 16:43:00 +0000 (16:43 +0000)]
Add domain events detail information
Daniel P. Berrange [Mon, 17 Nov 2008 12:18:18 +0000 (12:18 +0000)]
Link QEMU, LXC, network and storage drivers directly into libvirtd
Daniel P. Berrange [Mon, 17 Nov 2008 11:44:51 +0000 (11:44 +0000)]
Push URI probing logic down into individual drivers
Daniel P. Berrange [Mon, 17 Nov 2008 11:19:33 +0000 (11:19 +0000)]
Refactor storage backends to avoid dependancy from config parser to implementation
Daniel P. Berrange [Mon, 17 Nov 2008 11:03:25 +0000 (11:03 +0000)]
Use a versioned linker script
Daniel P. Berrange [Mon, 17 Nov 2008 10:43:30 +0000 (10:43 +0000)]
Build drivers as libtool convenience libs
Daniel P. Berrange [Mon, 17 Nov 2008 10:26:09 +0000 (10:26 +0000)]
Fix domain events python thread safety & incorrect enum generation
Daniel P. Berrange [Mon, 17 Nov 2008 09:55:59 +0000 (09:55 +0000)]
Fix updating of openvz config file params
Cole Robinson [Fri, 14 Nov 2008 16:10:47 +0000 (16:10 +0000)]
Use different separator for lvs command to unbreak parsing for encrypted devs.
Jim Meyering [Fri, 14 Nov 2008 14:19:37 +0000 (14:19 +0000)]
avoid format string warnings
* src/openvz_driver.c (ADD_ARG_LIT): Add "%s" arg before _(...).
* src/qemu_driver.c (PCI_ATTACH_OK_MSG): Likewise.
* src/util.c (virExec, virRun): Likewise.
Daniel Veillard [Fri, 14 Nov 2008 08:42:47 +0000 (08:42 +0000)]
KVM/QEmu migration support
* qemud/remote.c qemud/remote_dispatch_localvars.h
qemud/remote_dispatch_proc_switch.h qemud/remote_dispatch_prototypes.h
qemud/remote_protocol.c qemud/remote_protocol.h
qemud/remote_protocol.x src/driver.h src/libvirt.c
src/libvirt_internal.h src/libvirt_sym.version src/lxc_driver.c
src/openvz_driver.c src/qemu_conf.h src/qemu_driver.c
src/remote_internal.c src/test.c src/virsh.c: large patch to
add migration support for KVM/QEmu, based on the work of Rich Jones
and Chris Lalancette. This introduce a new version of the prepare
and finish steps of the migration, so changes the driver API and
a lot of code.
Daniel
Daniel P. Berrange [Wed, 12 Nov 2008 16:35:47 +0000 (16:35 +0000)]
Add bridged network to openvz driver & add some openvz docs
Daniel P. Berrange [Wed, 12 Nov 2008 16:28:27 +0000 (16:28 +0000)]
Revert previous storage patch which broke test driver
Daniel P. Berrange [Tue, 11 Nov 2008 15:52:16 +0000 (15:52 +0000)]
Re-arrange storage backend registration
Daniel P. Berrange [Mon, 10 Nov 2008 12:08:19 +0000 (12:08 +0000)]
Support OpenVZ filesystem template config in XML dump
Jim Meyering [Fri, 7 Nov 2008 16:44:38 +0000 (16:44 +0000)]
tweak lstat.c to avoid mingw link failure
* gnulib/lib/lstat.c: Include <sys/stat.h> *before* the use of stat in
orig_stat. Otherwise, on mingw (which lacks lstat), any program using
the lstat module would not get the redefinition-to-stat provided by
gnulib's sys/stat.h. Reported by Daniel P. Berrange.
Jim Meyering [Fri, 7 Nov 2008 16:43:58 +0000 (16:43 +0000)]
mark a few diagnostics for translation
* src/lxc_conf.c (lxcLoadDriverConfig): Mark a diagnostic.
* src/lxc_driver.c (lxcDomainStart): Likewise.
* po/POTFILES.in: Add src/lxc_conf.c.
* Makefile.maint (msg_gen_function): Add virReportErrorHelper
and lxcError.
Jim Meyering [Fri, 7 Nov 2008 16:43:23 +0000 (16:43 +0000)]
always compile iptables.c
Avoid a build error when configuring --without-xen --without-qemu.
* src/iptables.c [WITH_QEMU]: Don't #ifdef-out.
* src/iptables.h [WITH_QEMU]: Don't #ifdef-out.
* src/util.c (virRun) [__MINGW32__]: Define a stub that always fails.
Daniel Veillard [Thu, 6 Nov 2008 16:36:07 +0000 (16:36 +0000)]
add new logging module, and move existing definitions there
* src/logging.c src/logging.h proxy/Makefile.am proxy/libvirt_proxy.c
src/Makefile.am src/cgroup.c src/datatypes.c src/domain_event.c
src/internal.h src/libvirt.c src/lxc_container.c src/lxc_controller.c
src/lxc_driver.c src/proxy_internal.c src/qemu_driver.c
src/remote_internal.c src/storage_backend_disk.c src/util.c
src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c:
add new logging module, and move existing definitions there
Daniel
Cole Robinson [Wed, 5 Nov 2008 18:57:42 +0000 (18:57 +0000)]
Log stdout and stderr in virRun
Cole Robinson [Wed, 5 Nov 2008 18:41:07 +0000 (18:41 +0000)]
Log the argv passed to virExec and virRun
Cole Robinson [Wed, 5 Nov 2008 18:22:10 +0000 (18:22 +0000)]
Move local argvToString to virArgvToString in util.
Jim Meyering [Wed, 5 Nov 2008 14:24:21 +0000 (14:24 +0000)]
plug two leaks and fix a diagnostic
* src/qemu_conf.c (qemudLoadDriverConfig): Don't leak ->vncListen.
Fix an erroneous copy-and-pasted diagnostic.
* src/qemu_driver.c (qemudShutdown): Don't leak another ->vncListen.
Chris Lalancette [Wed, 5 Nov 2008 11:41:43 +0000 (11:41 +0000)]
Call vgscan before attempting to scan logical volumes. This makes sure we've
"touched" any logical volumes, so they appear in the subsequent "pvs" call.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Daniel P. Berrange [Tue, 4 Nov 2008 23:37:23 +0000 (23:37 +0000)]
Move WITH_XXX driver feature flags into config.h instead of direct compiler/linker args
Daniel P. Berrange [Tue, 4 Nov 2008 23:33:57 +0000 (23:33 +0000)]
Move domain events helpers into dedicated file
Daniel P. Berrange [Tue, 4 Nov 2008 23:22:06 +0000 (23:22 +0000)]
Move some API declarations out of internal.h & hash.c into dedicated files
Daniel P. Berrange [Tue, 4 Nov 2008 22:55:51 +0000 (22:55 +0000)]
Remove unused internal virStateSigDispatcher() API
Daniel P. Berrange [Tue, 4 Nov 2008 22:30:33 +0000 (22:30 +0000)]
Move internal error APIs into virterror_internal.h & drop leading __ prefix
Daniel P. Berrange [Tue, 4 Nov 2008 22:15:30 +0000 (22:15 +0000)]
Add support for -uuid and -domid args to QEMU
Daniel P. Berrange [Tue, 4 Nov 2008 21:54:21 +0000 (21:54 +0000)]
Remove use of virStringList in favour of strongly typed APIs
Jim Meyering [Tue, 4 Nov 2008 15:02:36 +0000 (15:02 +0000)]
don't print an uninitialized integer in a diagnostic
* src/virterror.c (__virErrorMsg) [VIR_ERR_XEN_CALL]:
Use a format with only one % directive.
Jim Meyering [Tue, 4 Nov 2008 14:55:30 +0000 (14:55 +0000)]
add a test for today's fix
* tests/cpuset: New script. Test for today's fix.
* tests/Makefile.am (test_scripts): Add cpuset.
Daniel Veillard [Mon, 3 Nov 2008 16:14:04 +0000 (16:14 +0000)]
* AUTHORS: added Guido Günther as new commiter, Dan Smith was missing too
daniel
Daniel Veillard [Mon, 3 Nov 2008 15:58:02 +0000 (15:58 +0000)]
* src/qemu_conf.c: switch off cache if disk is shared and not read-only
patch by Charles Duffy
Daniel
Daniel Veillard [Mon, 3 Nov 2008 15:52:55 +0000 (15:52 +0000)]
* src/qemu_driver.c: oops trailing blanks
Daniel
Daniel P. Berrange [Mon, 3 Nov 2008 12:31:53 +0000 (12:31 +0000)]
Ignore generated makefile
Chris Lalancette [Mon, 3 Nov 2008 11:37:11 +0000 (11:37 +0000)]
Give iSCSI and disk storage backend drivers the
ability to resolve any kind of volume path to the pool target volume
path. For instance, if the pool was defined with a
<target><path>/dev/disk/by-id</path></target> section, and one of the
volumes is /dev/disk/by-id/scsi-S_beaf11, then you would be able to
call virStorageVolLookupByPath("/dev/sdc"), and get the correct volume
back.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Daniel Veillard [Fri, 31 Oct 2008 13:56:47 +0000 (13:56 +0000)]
* python/virConnect.py: needed for events from the python bindings
by Ben Guthro
daniel
Daniel Veillard [Fri, 31 Oct 2008 13:06:17 +0000 (13:06 +0000)]
* src/xm_internal.c: add minimum domain memory size check for Xen
patch by Shigeki Sakamoto
* AUTHORS: add Shigeki Sakamoto
Daniel
Daniel Veillard [Fri, 31 Oct 2008 10:13:45 +0000 (10:13 +0000)]
* python/Makefile.am python/generator.py python/libvir.c
python/libvir.py python/libvirt_wrap.h python/types.c:
adds support for events from the python bindings, also
improves the generator allowing to embbed per function
definition files, patch by Ben Guthro
* examples/domain-events/events-python/event-test.py: also
adds a programming example
Daniel
Cole Robinson [Thu, 30 Oct 2008 17:40:57 +0000 (17:40 +0000)]
Add a test storage driver.
Daniel Veillard [Wed, 29 Oct 2008 15:34:12 +0000 (15:34 +0000)]
* docs/relatedlinks.html docs/relatedlinks.html.in: add link
for AMQP/QPid bindings
daniel
Daniel Veillard [Wed, 29 Oct 2008 14:32:40 +0000 (14:32 +0000)]
* src/domain_conf.h src/qemu_driver.c: patch adding hor removal of
scsi/virtio disks for KVM, patch by Guido Günther
daniel
Jim Meyering [Tue, 28 Oct 2008 19:09:04 +0000 (19:09 +0000)]
remove src/socketcompat.h; no longer needed
* src/socketcompat.h: Remove file.
* src/remote_internal.c: Don't include socketcompat.h.
* qemud/qemud.h: Likewise.
* qemud/remote_protocol.x: Likewise, but do include <arpa/inet.h>
for htonl.
* src/remote_internal.c: Likewise, but do include <errno.h>.
* qemud/remote_protocol.c: Regenererate.
* qemud/remote_protocol.h: Regenererate.
* src/Makefile.am (REMOTE_DRIVER_SOURCES): Remove socketcompat.h.
Jim Meyering [Tue, 28 Oct 2008 17:48:11 +0000 (17:48 +0000)]
make generated qemud/*.[ch] files read-only
* qemud/Makefile.am (.x.c): Rewrite not to write directly to $@,
and to make generated files read-only.
(.x.h): Likewise.
Jim Meyering [Tue, 28 Oct 2008 17:48:06 +0000 (17:48 +0000)]
avoid compiler warning when all storage backends are disabled
* src/storage_backend.c (backends): Add a NULL terminator.
(virStorageBackendForType): Use NULL terminator rather than
warning-provoking (possibly 0) array size.
Jim Meyering [Tue, 28 Oct 2008 17:48:01 +0000 (17:48 +0000)]
avoid many mingw-specific warnings
* tests/virshtest.c (mymain): Use only one definition of this function.
[WIN32]: Call exit(77) to skip the test.
* tests/nodeinfotest.c: Likewise.
Jim Meyering [Tue, 28 Oct 2008 17:47:54 +0000 (17:47 +0000)]
cvsignore mingw build artifacts: *.exe
Jim Meyering [Tue, 28 Oct 2008 17:47:45 +0000 (17:47 +0000)]
include netinet etc #ifndef HAVE_WINSOCK2_H
Jim Meyering [Tue, 28 Oct 2008 17:47:40 +0000 (17:47 +0000)]
* src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile.
Jim Meyering [Tue, 28 Oct 2008 17:47:33 +0000 (17:47 +0000)]
use errno, not socket_errno()
* remote_internal.c: s/socket_errno()/errno/, now that gnulib's
socket module ensures errno is useful in those cases.
Jim Meyering [Tue, 28 Oct 2008 17:47:23 +0000 (17:47 +0000)]
socketcompat.h: simplify, to match latest gnulib
Now, sys/socket.h is always available, and errno works.
Jim Meyering [Tue, 28 Oct 2008 17:47:12 +0000 (17:47 +0000)]
updates from gnulib
Jim Meyering [Tue, 28 Oct 2008 17:46:07 +0000 (17:46 +0000)]
use more gnulib modules
* bootstrap: use more gnulib modules: close, connect, perror, recv,
send, socket setsockopt, gethostname.
Jim Meyering [Tue, 28 Oct 2008 17:46:00 +0000 (17:46 +0000)]
adapt to API change in gnulib
* qemud/qemud.c: Include <netdb.h>, not "getaddrinfo.h"
* src/remote_internal.c: Likewise.
Jim Meyering [Tue, 28 Oct 2008 17:45:41 +0000 (17:45 +0000)]
* src/network_conf.c: Include <string.h> for declaration of memcmp.
Jim Meyering [Tue, 28 Oct 2008 17:43:24 +0000 (17:43 +0000)]
use ARRAY_CARDINALITY more
* tests/nodeinfotest.c: Include "util.h".
* src/xen_internal.c: Likewise.
* src/qemu_conf.c (qemudCapsInit): Use ARRAY_CARDINALITY.
* src/storage_backend.c (virStorageBackendForType): Likewise.
* src/storage_backend_fs.c (virStorageBackendProbeFile): Likewise.
* src/xen_internal.c (xenHypervisorMakeCapabilitiesInternal): Likewise.
* src/xend_internal.c (xenDaemonParseSxpr): Likewise.
* tests/nodeinfotest.c (mymain): Likewise.
* tests/qparamtest.c (DO_TEST): Likewise.
Jim Meyering [Tue, 28 Oct 2008 17:42:41 +0000 (17:42 +0000)]
exempt gnulib from write-avoidance syntax check
Jim Meyering [Tue, 28 Oct 2008 17:36:31 +0000 (17:36 +0000)]
exempt gnulib from ctype-macros prohibition
Author: Jim Meyering <meyering@redhat.com>
Daniel P. Berrange [Fri, 24 Oct 2008 13:10:30 +0000 (13:10 +0000)]
Remove use of sys/poll.h on mingw
Daniel P. Berrange [Fri, 24 Oct 2008 12:05:39 +0000 (12:05 +0000)]
Fix syntax check errors
Daniel P. Berrange [Fri, 24 Oct 2008 11:32:48 +0000 (11:32 +0000)]
Implement getVersion API for openvz driver
Daniel P. Berrange [Fri, 24 Oct 2008 11:31:15 +0000 (11:31 +0000)]
Fix mingw build due to missing icons in tar.gz
Daniel P. Berrange [Fri, 24 Oct 2008 11:20:08 +0000 (11:20 +0000)]
Centralize domain mac address handling in domain_conf.c/util.c