Fri Dec 26 14:22:04 CET 2008 Guido Günther document vnc's keymap attribute * docs/formatdomain.html.in: document keymap attribute * docs/drvqemu.html.in: add keymap attribute to example Tue Dec 23 14:44:41 CET 2008 Daniel Veillard * docs/logging.html docs/logging.html.in: new page documenting the logging system * docs/auth.html docs/deployment.html docs/remote.html docs/sitemap.html docs/sitemap.html.in docs/uri.html docs/windows.html: integration in the existing set Tue Dec 23 14:38:30 CET 2008 Guido Günther * .x-sc_prohibit_asprintf: new file Tue Dec 23 13:39:48 CET 2008 Guido Günther use virAsprintf instead of asprintf * .x-sc_prohibit_asprintf, Makefile.maint (sc_prohibit_asprintf): new rule * src/cgroup.c, src/domain_conf.c, src/driver.c, src/libvirt.c, src/logging.c, src/lxc_container.c, src/lxc_controller.c, src/lxc_driver.c, src/network_conf.c, src/network_driver.c, src/openvz_conf.c, src/qemu_conf.c, src/qemu_driver.c, src/remote_internal.c, src/stats_linux.c, src/storage_backend_iscsi.c, src/storage_driver.c, src/uml_conf.c, src/uml_driver.c, src/util.c, src/veth.c, src/virsh.c, src/xm_internal.c: use virAsprintf instead of asprintf Mon Dec 22 11:33:16 EST 2008 Cole Robinson * src/storage_driver.c: Fix storage driver null dereference. Mon Dec 22 11:27:52 EST 2008 Cole Robinson * src/virsh.c: Merge xml building for virsh pool-*-as Mon Dec 22 17:13:42 CET 2008 Daniel Veillard * qemud/qemud.c qemud/test_libvirtd_qemu.aug tests/Makefile.am tests/daemon-conf: fix make check with the new logging support the messages now carry a timestamp which need to be removed, the daemon needs to exit if the log configuration informations are wrong and we also look at the LIBVIRT_DEBUG environment variable Mon Dec 22 14:07:29 CET 2008 Daniel Veillard * qemud/mdns.c: fix a compilation problem in the switch Mon Dec 22 13:56:13 CET 2008 Daniel Veillard * qemud/libvirtd.aug qemud/libvirtd.conf: document the new options in the config file and augment the Augeas description Mon Dec 22 13:54:30 CET 2008 Daniel Veillard * qemud/event.c qemud/mdns.c qemud/remote.c: switch other pieces of the daemon to the new logging infrastructure Mon Dec 22 13:51:48 CET 2008 Daniel Veillard * qemud/qemud.c qemud/qemud.h: replace the daemon old logging infrastructure with the new one and parse configuration options Mon Dec 22 11:51:29 CET 2008 Daniel Veillard * src/uml_conf.c: another logging conversion Mon Dec 22 11:47:44 CET 2008 Daniel Veillard * src/node_device_devkit.c src/uml_driver.c src/virterror.c: convert old logging to the new API Mon Dec 22 11:45:07 CET 2008 Daniel Veillard * src/libvirt.c: convert entry points to new logging Mon Dec 22 11:43:04 CET 2008 Daniel Veillard * src/logging.h src/logging.c: commited the more recent version with function name and line number Mon Dec 22 11:33:07 CET 2008 Daniel Veillard * src/logging.h src/logging.c: add the infrastructure and internal APIs for logging, some of those APIs should be made public later * src/libvirt_sym.version.in: flag the internal APIs as such Mon Dec 22 11:31:08 CET 2008 Daniel Veillard * src/xen_internal.h: remove tabs to fix make synatx-check and fix the indentation Sun Dec 21 19:50:16 +0100 2008 Jim Meyering make NUMA-initialization code more portable and more robust qemudCapsInitNUMA and umlCapsInitNUMA were identical, so this change factors them into a new function, virCapsInitNUMA, and puts it in nodeinfo.c. In addition to factoring out the duplicates, this change also adjusts that function definition (along with its macros) so that it works with Fedora 9's numactl version 1, and makes it so the code will work even if someone builds the kernel with CONFIG_NR_CPUS > 4096. Finally, also perform this NUMA initialization for the lxc and openvz drivers. * src/nodeinfo.c: Include , and "memory.h". (virCapsInitNUMA): Rename from qemudCapsInitNUMA and umlCapsInitNUMA. (NUMA_MAX_N_CPUS): Define depending on NUMA API version. (n_bits, MASK_CPU_ISSET): Define, adjust, use uint64 rather than long. * src/nodeinfo.h: Include "capabilities.h". (virCapsInitNUMA): Declare it. * examples/domain-events/events-c/Makefile.am: * src/Makefile.am: Add $(NUMACTL_CFLAGS) and $(NUMACTL_LIBS) to various compile/link-related variables. * src/qemu_conf.c: Include "nodeinfo.h". (qemudCapsInitNUMA): Remove duplicate code. Adjust caller. * src/uml_conf.c (umlCapsInitNUMA): Likewise. Include "nodeinfo.h". * src/lxc_conf.c: Include "nodeinfo.h". (lxcCapsInit): Perform NUMA initialization here, too. * src/openvz_conf.c (openvzCapsInit): And here. Include "nodeinfo.h". * src/libvirt_sym.version.in: Add virCapsInitNUMA so that libvirtd can link to this function. Sun Dec 21 19:46:35 +0100 2008 Jim Meyering * src/node_device_hal.c: Include before everything else. Sun Dec 21 00:20:51 CET 2008 Guido Günther avoid "make check" failures due to localized error messages * tests/Makefile.am (TESTS_ENVIRONMENT): set LC_ALL=C Sat Dec 20 14:10:09 CET 2008 Guido Günther save and remove kvm/qemu domain status * src/qemu_driver.c (qemdRemoveDomainStatus): new function (qemudOpenMonitor): save monitor path (qemudStartVMDaemon, qemudDomainSuspend, qemudDomainResume, qemudDomainAttachDevice, qemudDomainDetachDevice): save status (qemudShutdownVMDaemon): remove status Sat Dec 20 13:53:14 CET 2008 Guido Günther add XML parsing for qemu/kvm status files * src/domain_conf.c, src/domain_conf.h (virDomainSaveXML): new function * src/domain_conf.c (virDomainSaveConfig): split out XML writing into virDomainSaveXML * src/qemu_conf.c (qemudDomainStatusParseFile): new function to parse status XML (qemudDomainStatusFormat): new function to format status XML (qemudSaveDomainStatus): new function to write status XML, uses virDomainSaveXML * src/libvirt_sym.version.in: add virBufferEscapeString, virDomainSaveXML, virXPathNode symbols Fri Dec 19 10:41:00 UTC 2008 Richard W.M. Jones * docs/formatdomain.html.in: Fix documentation typo (aozturk in #virt). Thu Dec 18 17:46:06 CET 2008 Guido Günther * src/qemu_driver.c (qemudDomainAttachDevice): only free dev on failure Thu Dec 18 16:13:56 CET 2008 Guido Günther Let qemu/kvm instances write a pid file * src/utilc, src/util.h (virFilePid): declare and define (virFileWritePid, virFileReadPid, virFileDeletePid): use virFilePid * src/libvirt_symver.in: export virFilePid symbol * src/qemu_conf.c (qemudBuildCommandLine): pass -pidfile to qemu (qemudStartup): create stateDir * tests/qemuxml2argvtest.c: initialize driver.stateDir * tests/qemuxml2argvdata/qemuxml2argv-*.args: add -pidfile argument Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange * examples/domain-events/events-c/event-test.c, python/types.c: Replace __FUNCTION__ with __func__ for better portability (John Levon) Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange Fix gcc-ism in python build (John Levon) * acinclude.m4: Add -Wno-redundant-decls check for compiler * python/Makefile.am: Remove hardcoded -Wno-redundant-decls Thu Dec 18 12:11:58 GMT 2008 Daniel P. Berrange * src/remote_internal.c: Don't free event after queueing it unless error occurred (David Lively) Thu Dec 18 12:07:58 GMT 2008 Daniel P. Berrange * src/test.c: Fix error return value * tests/nodeinfotest.c: Disable code compile completely on non-linux (John Levon) Thu Dec 18 11:59:58 GMT 2008 Daniel P. Berrange * qemud/remote.c: Fix unused variable compile warning when polkit is disabled (John Levon) Thu Dec 18 11:56:58 GMT 2008 Daniel P. Berrange Use pid_t for all PID tracking variables (John Levon) * src/openvz_driver.c, src/proxy_internal.h, src/remote_internal.c, src/storage_backend.c, src/uml_driver.c, src/util.c, src/util.h: s/int/pid_t/ Thu Dec 18 11:54:58 GMT 2008 Daniel P. Berrange * qemud/Makefile.am: Don't munge default network XML if uuidgen is not present (John Levon) Thu Dec 18 11:50:58 GMT 2008 Daniel P. Berrange Misc daemon bug fixes (John Levon) * qemud/qemud.c: Fix conditional for node devices * qemud/remote.c: Remove unneccessary path.h include Thu Dec 18 07:47:58 +0100 2008 Jim Meyering docs/virsh.pod: typo fix Thu Dec 18 07:44:07 +0100 2008 Jim Meyering Makefile.maint: use $(srcdir), not $(top_srcdir) Wed Dec 17 21:49:39 GMT 2008 Daniel P. Berrange * src/remote_internal.c: Fix unreachable return statement (John Levon) Wed Dec 17 21:45:39 GMT 2008 Daniel P. Berrange Use correct type for domain events callbacks args (John Levon) * src/driver.h, src/qemu_driver.c, src/remote_internal.c, src/xen_unified.c: s/void */virConnectDomainEventCallback/ for domain events callbacks Wed Dec 17 21:41:39 GMT 2008 Daniel P. Berrange * src/libvirt_sym.version.in: Remove non-existant symbols (John Levon) Wed Dec 17 21:35:39 GMT 2008 Daniel P. Berrange Portability of ELF version script to Solaris (John Levon) * configure.ac: Check linker flag used to set versioning script for ELF * src/Makefile.am: Use platform specific linker flag for version script as per configure test * src/libvirt_sym.version.in: Switch to '#' for comments Wed Dec 17 21:30:39 GMT 2008 Daniel P. Berrange Fix conditional checks for Solaris platform (John Levon) * src/xen_internal.c, src/xen_unified.c, src/xs_internal.c: s/__sun__/__sun/ Wed Dec 17 21:17:39 GMT 2008 Daniel P. Berrange Fix Xen sub-drivers' 'open' method return type (John Levon) * src/proxy_internal.c, src/remote_internal.c, src/test.c, src/xen_inotify.c, src/xen_inotify.h, src/xen_internal.c, src/xen_internal.h, src/xen_unified.c, src/xend_internal.c, src/xend_internal.h, src/xm_internal.c, src/xm_internal.h, src/xs_internal.c, src/xs_internal.h: s/int/virDrvOpenStatus/ Wed Dec 17 21:10:39 GMT 2008 Daniel P. Berrange Mutex / crash fixes to openvz driver (Anton Protopopov) * src/openvz_driver.c: Fix crash with setting CPU value during define * src/openvz_conf.c: Initialize the domain mutex when loading config files Wed Dec 17 20:53:39 GMT 2008 Daniel P. Berrange * src/domain_conf.c, src/node_device_conf.c, src/node_device_conf.h, src/storage_conf.c, src/storage_conf.h: Remove trailing semi-colon causing empty statement compile warnings on solaris (John Levon). Wed Dec 17 18:10:39 GMT 2008 Daniel P. Berrange Anonymous union fixes for non-GCC compilers (John Levon) * src/domain_conf.c, src/qemu_conf.c, src/qemu_driver.c: Remove use of anonymous union * src/domain_conf.h: Give a name to the anonymous union for host devices. Add 'dummy' field to avoid empty struct * src/remote_internal.c: Remove gcc-ism in empty "x ? : y" Wed Dec 17 19:06:53 +0100 2008 Jim Meyering portability: don't include or * src/storage_backend_fs.c: Don't include or . (LV_BIG_ENDIAN, LV_LITTLE_ENDIAN): Define. Use those instead of __BIG_ENDIAN and __LITTLE_ENDIAN. Wed Dec 17 18:03:39 GMT 2008 Daniel P. Berrange * qemud/qemud.c, src/util.c, tests/testutils.c: Remove use of _PATH_DEVNULL in favour of "/dev/null" for portability (John Levon) Wed Dec 17 18:10:51 +0100 2008 Jim Meyering enforce the "include first" rule * qemud/Makefile.am: Ensure that the generated remote_protocol.c includes first. * Makefile.maint (sc_require_config_h_first): New rule, so that "make syntax-check" enforces this. * .x-sc_require_config_h_first: New file. * Makefile.am (.x-sc_require_config_h_first): Add it. * qemud/remote_protocol.x: Don't include here. * qemud/remote_protocol.c: Regenerate. Wed Dec 17 18:10:51 +0100 2008 Jim Meyering let gcc's -Wformat do its job; avoid "make syntax-check" failure * src/util.c (virAsprintf): Remove trailing space. * src/util.h (virAsprintf): Use ATTRIBUTE_FORMAT. * HACKING (Printf-style functions): New section. Wed Dec 17 16:43:39 GMT 2008 Daniel P. Berrange * src/libvirt.c: Add missing checks for read-only connection flag (CVE-2008-5086) Wed Dec 17 17:07:39 CET 2008 Daniel Veillard * configure.in: detect syslog.h Wed Dec 17 09:28:15 CET 2008 Guido Günther * Makefile.maint: use $(top_srcdir) for m4/ and $(VC_LIST) Wed Dec 17 08:02:01 +0100 2008 Jim Meyering fix numa-related (and kernel-dependent) test failures This change is required on some kernels due to the way a change in the kernel's CONFIG_NR_CPUS propagates through the numa library. * src/qemu_conf.c (qemudCapsInitNUMA): Pass numa_all_cpus_ptr->size/8 as the buffer-length-in-bytes in the call to numa_node_to_cpus, since that's what is required on second and subseqent calls. * src/uml_conf.c (umlCapsInitNUMA): Likewise. Tue Dec 16 17:26:49 EST 2008 Cole Robinson * src/qemu_driver.c: Sanitize qemu monitor reads. Mon Dec 15 21:05:56 CET 2008 Guido Günther Add virAsprintf as safer asprintf helper * src/util.c, src/util.h (virAsprintf): new function * src/libvirt_symver.in: export symbol Mon Dec 15 16:33:25 CET 2008 Daniel Veillard * src/storage_driver.c: fix a segfault, patch by Miloslav TrmaC Mon Dec 15 10:59:19 GMT 2008 Daniel P. Berrange * src/domain_conf.c: Unlock domain object after fetching it to avoid deadlock when re-loading configs Fri Dec 12 17:41:19 +0100 2008 Jim Meyering remove redundant optname arguments This is the second part of the change mentioned here: http://thread.gmane.org/gmane.comp.emulators.libvirt/10331 It removes the essentially redundant "optname" parameter from each of the vshCommandOptNetworkBy and vshCommandOptDomainBy functions as well as the correspond macros (without "By" suffix). Now, instead of always passing the optname, "domain", to vshCommandOptDomainBy, that function requires that its command argument refer to an opts array containing a "domain" option. This normalization makes one more help-related change: it renames the net-start "name" argument to the more sensible and consistent "network". * src/virsh.c (VSH_BYNAME, vshCommandOptDomain) (cmd_has_option): New function, used in vshCommandOptDomainBy and vshCommandOptNetworkBy. (vshCommandOptDomainBy, vshCommandOptNetworkBy): Remove the optname parameter, it's always "domain" ("network"). Update all callers. Call cmd_has_option. (vshCommandOptNetwork, cmdAutostart, cmdConsole, cmdDomstate) (cmdDomblkstat, cmdDomIfstat, cmdSuspend, cmdUndefine, cmdStart) (cmdSave, cmdSchedinfo, cmdDump, cmdResume, cmdShutdown) (cmdReboot, cmdDestroy, cmdDominfo, cmdVcpuinfo, cmdVcpupin) (cmdSetvcpus, cmdSetmem, cmdSetmaxmem, cmdDumpXML, cmdDomname) (cmdDomid, cmdDomuuid, cmdMigrate, cmdNetworkAutostart) (cmdNetworkDestroy, cmdNetworkDumpXML, cmdNetworkName) (opts_network_start, cmdNetworkStart, cmdNetworkUndefine) (cmdNetworkUuid, cmdVNCDisplay, cmdTTYConsole, cmdAttachDevice) (cmdDetachDevice, cmdAttachInterface, cmdDetachInterface) (cmdAttachDisk, cmdDetachDisk, cmdEdit) * src/Makefile.am (virsh-pool-edit.c): This code is generated from cmdEdit, and cmdEdit uses the vshCommandOptDomain macro which now, with the changes above, has only 3 (was 4) arguments, yet the macro use is mapped to vshCommandOptPool, which still requires 4 arguments. So this change adjusts the sed code to reinsert the just-removed argument -- we're not changing pool-related code right now, because it's not as straight-forward. Fri Dec 12 18:50:20 +0100 2008 Jim Meyering syntax-check: enforce the no-cvs-keywords prohibition * Makefile.maint (sc_prohibit_cvs_keyword): New rule. Suggested by Daniel Veillard. The new test exposed two uses of $\Date$. * docs/Goals: Don't use $\Date$. * python/TODO: Likewise. Fri Dec 12 17:08:08 +0100 2008 Jim Meyering avoid a spurious test failure on non-numa systems * tests/daemon-conf: Ignore a spurious libnuma warning. Reported by Daniel Veillard. Fri Dec 12 14:57:17 CET 2008 Daniel Veillard * Makefile.maint: fix tabs in C source error message based on Dave Allan feedback Fri Dec 12 13:41:31 +0100 2008 Jim Meyering remove cvs $\Id$ strings * po/id.po: Likewise. * qemud/remote_generate_stubs.pl: Likewise. * src/virsh.c: Likewise. * tests/testutils.c: Likewise. * tests/testutils.h: Likewise. * RENAMES: Likewise. Fri Dec 12 13:16:05 +0100 2008 Jim Meyering libvirtd: plug a nominal leak * qemud/qemud.c (qemudRunLoop): Free server->workers. Fri Dec 12 12:19:56 +0100 2008 Jim Meyering remove unused xmlrpc-related files * src/xmlrpc.h: Remove file. * src/xmlrpc.c: Likewise. * tests/test_xmlrpc.sh: Likewise. * tests/xmlrpctest.c: Likewise. * tests/xmlrpcserver.py: Likewise. * tests/Makefile.am (EXTRA_DIST): Remove xmlserver.py. (noinst_PROGRAMS): Remove xmlrpctest, along with associated variables. * po/POTFILES.in: Remove src/xmlrpc.c. * tests/.cvsignore: Remove xmlrpctest. Fri Dec 12 11:37:16 CET 2008 Daniel Veillard * src/qemu_conf.c src/uml_conf.c: fix a couple of places where we were requesting 8 times the required amount of memory, patch by Dave Allan Fri Dec 12 10:45:17 CET 2008 Guido Günther * docs/devhelp/Makefile.am: look for devhelp.xsl in $(srcdir) Fri Dec 12 10:28:41 CET 2008 Guido Günther Fix serial/parallel virtual devices over tcp, unix and telnet * src/qemu_conf.c (qemudBuildCommandLineChrDevStr): use "server,nowait" instead of "listen" for tcp and unix sockets. Use "nowait" for telnet too. * tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.args: adjust testcase accordingly. * tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args: likewise. Fri Dec 12 08:54:40 CET 2008 Daniel Veillard * qemud/qemud.c: add --version support to libvirtd, patch by Dave Allan * AUTHORS: add Dave Allan Fri Dec 12 08:34:47 CET 2008 Daniel Veillard * libvirt.spec.in: fix a conditional bug in spec file #460510, patch by Dave Allan Fri Dec 12 08:27:44 CET 2008 Daniel Veillard * src/util.c: retry poll() in EINTR failures, patch by Dave Allan Thu Dec 11 19:10:46 +0100 2008 Jim Meyering build: avoid libvirtd link failure with CFLAGS=-g * qemud/Makefile.am (libvirtd_LDADD): Add gnulib's libgnu.la last. Otherwise, building with -g (no inlining) would fail due to a use of c_isspace in libvirt_driver_qemu.a, which used to followed libgnu.a in the link command. Thu Dec 11 16:13:08 +0100 2008 Jim Meyering syntax-check: prohibit all new uses of gethostby* functions * Makefile.maint (sc_prohibit_gethostby): New rule. * .x-sc_prohibit_gethostby: Exempt the few existing uses. Thu Dec 11 10:03:00 EST 2008 Cole Robinson * src/test.c: Fix locking issue in test driver VolLookupByPath Thu Dec 11 10:00:54 EST 2008 Cole Robinson * libvirt.spec.in: Fix rpm build by installing logrotate config Thu Dec 11 09:58:49 EST 2008 Cole Robinson * src/storage_driver.c : Fix a locking issue in PoolGetAutostart Thu Dec 11 09:55:23 EST 2008 Cole Robinson * src/network_driver.c src/qemu_conf.c: Fix segfault if virtual network does not have a bridge name. Thu Dec 11 12:39:20 CET 2008 Daniel Veillard * src/domain_conf.c src/domain_conf.h src/qemu_conf.c tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.args tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.xml: slightly modified patch for SDL fullscreen from Itamar Heim * docs/formatdomain.html docs/formatdomain.html.in docs/libvirt.rng: update the schemas and docs about the sdl graphic element attributes * AUTHORS: add Itamar Heim Wed Dec 10 20:18:36 +0100 2008 Jim Meyering avoid a new "make distcheck" failure Distribute the new file, libvirtd.logrotate.in, and make distclean remove the build product, libvirtd.logrotate. * qemud/Makefile.am (EXTRA_DIST): Add libvirtd.logrotate.in. (DISTCLEANFILES): Initialize, and append libvirtd.logrotate.in. Wed Dec 10 17:33:49 +0100 2008 Jim Meyering avoid format string warnings * src/openvz_conf.c (openvzGetNodeCPUs): Add "%s" arg before _(...). * src/uml_driver.c (umlDomainBlockPeek): Likewise. Tue Dec 9 2008 22:35:43 +0100 Jim Meyering fix just-broken "virsh start" and "virsh pool-start" commands * src/virsh.c (cmdPoolStart, cmdStart): Change hard-coded vshCommandOptDomainBy string argument to match just-changed option name. Cole Robinson reported that "virsh start" was broken and provided that part of the fix. Bug introduced by yesterday's "virsh.c: tweak options to produce more accurate help". * tests/start: New file. Test for the above fix. * tests/Makefile.am (test_scripts): Add start. Tue 9 Dez 2008 21:08:43 CET Guido Günther logrotate qemu monitor logs * src/qemu_driver.c: open logfile O_APPEND instead of O_TRUNC when running as root * qemud/Makefile.am: install logrotate configuration (by Harald Sraub) and create logdir Mon Dec 8 13:22:06 +0100 2008 Jim Meyering virsh.c: tweak options to produce more accurate help * src/virsh.c: Adjust some vshCmdOptDef command option flags to improve auto-generated help command syntax. virsh.c: remove all "syntax" vshCmdInfo entries. * src/virsh.c: ... now that info is generated. virsh.c: add missing (yet empty) "desc" strings * src/virsh.c: Now, every command must have a "desc" string, even if it has zero length. Mark these, so they'll be filled in. virsh.c: generate each "virsh help COMMAND"s synopsis * src/virsh.c: Also, diagnose extra arguments after --help (-h). Mon Dec 8 12:00:53 GMT 2008 Daniel P. Berrange * qemud/Makefile.am: Fix mixup between _LDFLAGS & _LDADD variables to make compilation work in certain configs. Mon Dec 8 11:28:53 GMT 2008 Daniel P. Berrange * src/storage_conf.c: Workaround missing ULLONG_MAX in Debian etch's limits.h Mon Dec 8 11:17:53 GMT 2008 Daniel P. Berrange * src/qemu_driver.c, src/uml_driver.c: Fix guest autostart to have a virConnect object available to allow query of virtual networks Sun Dec 7 20:44:53 GMT 2008 Daniel P. Berrange * src/test.c: Fix integer long long overflow. Fix NULL defernce Sun Dec 7 20:20:53 GMT 2008 Daniel P. Berrange * src/test.c: Remove bogus refresh call causing deadlock Sun Dec 7 14:03:53 GMT 2008 Daniel P. Berrange * src/test.c: Fix return value in testStoragePoolBuild Fri Dec 5 16:03:53 CET 2008 Daniel Veillard * src/node_device_hal.c configure.in: fix a compilation problem with old dbus versions Thu Dec 5 10:10:41 GMT 2008 Daniel P. Berrange * src/domain_conf.c: Disable a few more functions for proxy build which should not be used Thu Dec 4 22:20:41 GMT 2008 Daniel P. Berrange * src/qemu_driver.c: Remove unused driver argument from all monitor handling APIs. Thu Dec 4 22:18:41 GMT 2008 Daniel P. Berrange * qemud/qemud.c: Read number of threads for RPC dispatch from config. Allow a limit on total client connection count. * qemud/libvirtd.conf: Add max_clients and max_workers and min_workers config vars * qemud/libvirtd.aug, qemud/test_libvirtd.aug: Augeas support for new config params Thu Dec 4 22:16:41 GMT 2008 Daniel P. Berrange Make daemon use a thread pool for handling RPC calls from multiple clients. * qemud/THREADING.txt: Describe threading rules * qemud/qemud.h, qemud/qemud.c, src/remote.c: Add a pool of threads for handling RPC call processing. Use main thread only for event loop * qemud/remote_generate_stubs.pl: Pass virConnectPtr object into dispatch stubs to avoid need to access client struct * qemud/remote_dispatch_prototypes.h: Re-generated Thu Dec 4 22:14:41 GMT 2008 Daniel P. Berrange * src/event.c, src/event.h: Make all event handling thread safe and re-entrant safe, and allow poll() to be woken up by other threads. * src/qemud.c, src/qemud.h: Initialize event loop explicitly Thu Dec 4 22:12:41 GMT 2008 Daniel P. Berrange * qemud/qemud.c, qemud/qemud.h, qemud/remote.c: Make all error reporting the responsibility of the RPC handler methods * qemud/remote_generate_stubs.pl: Add remote_error * arg to all RPC handlers * qemud/remote_dispatch_prototypes.h: Re-generated Thu Dec 4 22:09:41 GMT 2008 Daniel P. Berrange * qemud/qemud.h, qemud/qemud.c: Change client linked list into an array for easier thread safety Thu Dec 4 22:01:41 GMT 2008 Daniel P. Berrange * qemud/remote.c: Change from a giant switch() on RPC number into a simple array lookup of RPC handler function * qemud/Makefile.am, qemud/remote_generate_stubs.pl: Change generator to produce a union of data types for O(1) dispatch * qemud/remote_dispatch_*: Re-generate files Thu Dec 4 21:49:41 GMT 2008 Daniel P. Berrange Per object locking implementation * src/domain_conf.c, src/domain_conf.h, src/network_conf.c, src/network_conf.h, src/node_device_conf.c, src/node_device_conf.h, src/storage_conf.c src/storage_conf.h: Add implementation of locking APIs, and make object lookup / creation methods return locked objects Thu Dec 4 21:48:41 GMT 2008 Daniel P. Berrange * src/libvirt_sym.version.in, src/node_device.c, src/node_device.h, src/node_device_conf.h, src/node_device_devkit.c, src/node_device_hal.c: Add locking for thread safety of driver APIs Thu Dec 4 21:46:41 GMT 2008 Daniel P. Berrange * src/libvirt.c, src/datatypes.h, src/datatypes.c: Cache device parent string to workaround need to keep public virNodeDeviceGetParent API returning a const string * src/node_device.c: Merge all return paths from node device driver APIs Thu Dec 4 21:43:41 GMT 2008 Daniel P. Berrange * src/openvz_conf.h: Add driver lock * src/openvz_driver.c: Add locking for thread safety Thu Dec 4 21:41:41 GMT 2008 Daniel P. Berrange * src/openvz_driver.c: Merge all return paths from openvz driver APIs Thu Dec 4 21:40:41 GMT 2008 Daniel P. Berrange * src/storage_conf.h: Add driver lock * src/storage_driver.c: Add locking for thread safety Thu Dec 4 21:39:41 GMT 2008 Daniel P. Berrange * src/storage_driver.c: Merge all return paths from storage driver APIs Thu Dec 4 21:38:41 GMT 2008 Daniel P. Berrange * src/network_driver.c: Add locking for thread safety Thu Dec 4 21:37:41 GMT 2008 Daniel P. Berrange * src/network_driver.c: Merge all return paths from driver APIs Thu Dec 4 21:14:41 GMT 2008 Daniel P. Berrange * src/uml_conf.h: Add driver lock variable * src/uml_driver.c: Add locking for thread safety Thu Dec 4 21:13:41 GMT 2008 Daniel P. Berrange * Makefile.maint: Add umlError function * src/uml_driver.c: Merge all return paths from driver APIs Thu Dec 4 21:11:41 GMT 2008 Daniel P. Berrange * src/lxc_conf.h: Add driver lock variable * src/lxc_driver.c: Add locking for thread safety Thu Dec 4 21:10:41 GMT 2008 Daniel P. Berrange * src/lxc_driver.c: Merge all return paths from driver APIs Thu Dec 4 21:09:41 GMT 2008 Daniel P. Berrange QEMU domain events thread safety * src/domain_event.c, src/domain_event.h: Add convenient methods for dispatching a list of events, and a single event to a list of callbacks. Change signature of push method to take a pre-allocated virDomainEventPtr object * src/libvirt_sym.version.in: Export new event methods to daemon code / drivers * src/qemu_conf.h, src/qemu_driver.c: Make event dispatch threadsafe by doing asynchronously * src/remote_internal.c, src/xen_inotify.c, src/xen_unified.c, src/xen_unified.h, src/xs_internal.c: Update for changes in domain event APIs Thu Dec 4 21:05:41 GMT 2008 Daniel P. Berrange * src/qemu_conf.h: Add a driver lock variable * src/qemu_driver.c: Add locking for thread safety Thu Dec 4 21:01:41 GMT 2008 Daniel P. Berrange * src/qemu_driver.c: Merge all return paths from driver APIs Thu Dec 4 21:00:41 GMT 2008 Daniel P. Berrange * src/test.c: Stub out node device APIs to avoid activating the daemon Thu Dec 4 20:58:41 GMT 2008 Daniel P. Berrange * src/test.c: Add locking for thread safety * tests/virsh-all: Set variables to allow direct invocation of test Thu Dec 4 20:57:41 GMT 2008 Daniel P. Berrange * src/test.c: Merge all return paths from driver APIs Thu Dec 4 20:55:41 GMT 2008 Daniel P. Berrange * src/test.c: Remove macros for accessing internal state Thu Dec 4 20:47:41 GMT 2008 Daniel P. Berrange Thread locking API stubs * src/domain_conf.c, src/domain_conf.h, src/libvirt_sym.version.in, src/network_conf.c, src/network_conf.h, src/node_device_conf.c, src/node_device_conf.h, src/storage_conf.c, src/storage_conf.h: Define API stubs for locking and unlocking objects Thu Dec 4 16:51:41 CET 2008 Daniel Veillard * src/libvirt_sym.version.in configure.in NEWS docs/*: release of 0.5.1 * po/*: updated and regenerated Thu Dec 4 16:20:20 CET 2008 Daniel Veillard * src/storage_conf.c: fix crash and regression when defining a storage volume without a format (Cole Robinson) Thu Dec 4 09:45:00 EST 2008 Cole Robinson * docs/formatstorage.html.in docs/storage.html.in : Fix some documentation copy and paste errors. * src/virsh.c : Fix a typo Thu Dec 4 09:42:00 EST 2008 Cole Robinson * src/qemu_driver.c: Increase timeout for initial monitor poll Thu Dec 4 15:36:42 CET 2008 Daniel Veillard * src/bridge.c: patch setting MTU on tap interface to be the same as the value for the bridge (Eduardo Habkost) Thu 4 Dec 2008 12:46:01 CET Guido Günther Differentiate between active and inactive configs by honoring the VIR_DOMAIN_XML_INACTIVE flag. * src/domain_conf.c (virDomainDefParseXML): add and pass on flags arg (virDomainDefParseFile): Likewise (virDomainDefParseNode): Likewise (virDomainGraphicsDefParseXML): Likewise * src/domain_conf.c (virDomainDefParseXML): only restore domain id if !VIR_DOMAIN_XML_INACTIVE * src/domain_conf. (virDomainGraphicsDefParseXML): only restore vnc port if !VIR_DOMAIN_XML_INACTIVE * src/lxc_driver.c (lxcStartup): pass 0 flag since we restore life config * src/lxc_controller.c: pass VIR_DOMAIN_XML_INACTIVE * src/test.c: pass VIR_DOMAIN_XML_INACTIVE * tests/qemuxml2argvtest.c: pass VIR_DOMAIN_XML_INACTIVE Thu 4 Dec 2008 11:41:12 CET Guido Günther * src/qemu_driver.c: also look for /usr/bin/kvm Tue 2 Dec 2008 16:58:16 +0100 Jim Meyering fix inadequate initialization in storage and test drivers * src/storage_driver.c (storageListPools): Set all "names" entries to 0. (storageListDefinedPools, storagePoolListVolumes): Likewise. * src/test.c (testStoragePoolListVolumes): Likewise. Tue Dec 2 13:45:00 CET 2008 Chris Lalancette * configure.in, src/storage_backend.c: Older distributions (i.e. RHEL-5) don't have udevadm at all, but they do have udevsettle. So change our tests to prefer udevadm if it exists, but to fall back to udevsettle if it does not. Tue Dec 2 11:34:22 GMT 2008 Daniel P. Berrange * qemud/qemud.c: Registering network, storage & nodedev drivers before any domain drivers, so domain autostart can rely on network/storage autostarted objects. Patch from Gerd von Egidy Tue Dec 2 11:21:22 GMT 2008 Daniel P. Berrange * src/uml_driver.c: Fix recording of watch number to make inotify actually work. Mon Dec 1 16:01:54 +0100 2008 Jim Meyering tests: daemon-conf: accommodate numeric-valued config params This test would hang when failing to perturb the soon-to-be- added numeric (and non-boolean) valued parameters, max_clients, max_workers, min_workers. * tests/daemon-conf: Require that all commented-out settings in libvirtd.conf have the same form. Before, two parameters were not being tested, since a space had snuck between the leading "#" and the "param = value" parts. Apply each RHS-value-perturbing transformation separately, not in series. Let VERBOSE=yes turn on debugging. Be more verbose by default, since this is a relatively long-running test. * qemud/libvirtd.conf: Normalize the spacing around each setting that is to be perturbed by tests/daemon-conf. Mon Dec 1 10:30:10 +0100 2008 Jim Meyering uml: don't free an uninitialized variable * src/uml_driver.c (umlDomainShutdown): Initialize "info". Patch and bug report from Ron Yorston . Sun Nov 30 18:36:33 GMT 2008 Daniel P. Berrange * src/xen_inotify.c: Close directory handle once done processing files Fri Nov 28 16:16:54 CET 2008 Guido Günther Prefer xenstore driver for listDomains, since xen HV reports ghost ids of already shutdown domains in some xen versions * src/proxy_internal.c, src/proxy_internal.h: declare xenProxyListDomains non static * src/xend_internal.c, src/xend_internal.h: declare xenDaemonListDomains non static * src/xen_unified.c: prefer xenStoreListDomains over xenHypervisorListDomains for xenUnifiedListDomains Fri Nov 28 11:58:40 GMT 2008 Daniel P. Berrange Allow generic remote://hostname/ URI for automatic probe of hypervisor driver. * docs/uri.html, docs/uri.html.in: Document remote://hostname/ style URI syntax * src/driver.h: Remove version field * src/libvirt.c: Directly impl virGetVersion() instead of calling out to individual drivers * src/lxc_driver.c, src/openvz_driver.c, src/qemu_driver.c, src/remote_internal.h, src/test.c, src/uml_driver.c, src/xen_unified.c, src/xen_unified.h: Remove version from driver tables. * src/remote_internal.c: Allow 'remote' as a URI scheme for automatically probing on remote server Fri Nov 28 11:21:40 GMT 2008 Daniel P. Berrange Fix XM driver disk parsing with no source CDROMs * src/domain_conf.c: Translate "" into NULL for disk source path to deal with broken apps * src/xm_internal.c: Fix disk source parsing to work with no-source disk definitions (eg CDROM without media) * tests/xmconfigdata/test-no-source-cdrom.cfg, tests/xmconfigdata/test-no-source-cdrom.xml, tests/xmconfigtest.c: Add test case for no-src CDROM Fri Nov 28 11:17:40 GMT 2008 Daniel P. Berrange * libvirt.spec.in: Add missing numa-ctl BuildRequires * qemud/Makefile.am: Fix libvirtd_DEPENDANCIES to include all libs * src/qemu_conf.c, src/qemu_driver.c, src/uml_conf.c, src/uml_driver.c: Define NUMA_VERSION1_COMPATIBILITY and fix size of array used to get node mapping Fri Nov 28 08:40:00 CET 2008 Chris Lalancette * src/storage_backend.c: Wait up to 5 seconds for /dev/disk/by-{id,path} to exist in virStorageBackendStablePath Thu Nov 27 17:15:10 CET 2008 Daniel Veillard * src/xen_unified.c: use preferably xend method to update the maximum memory of a xen guest (Jim Fehlig) Wed Nov 26 15:46:07 CET 2008 Daniel Veillard * libvirt.spec.in: cleanups and missing dep for hal Tue Nov 25 16:29:09 CET 2008 Daniel Veillard * configure.in docs/* NEWS: release of 0.5.0 * po/*: updated from the translators and merged * docs/apibuild.py src/libvirt.c: avoid some warnings at doc generation time Tue Nov 25 16:34:10 +0100 2008 Jim Meyering * configure.in: avoid the following diagnostic when running ../configure cp: cannot stat `COPYING.LIB': No such file or directory don't silently skip a test * tests/Makefile.am (EXTRA_DIST): Distribute domainschemadata/. * tests/domainschematest: Fail the test if find invocation fails. Tue Nov 25 11:27:40 GMT 2008 Daniel P. Berrange * mingw32-libvirt.spec.in: Disable UML driver for mingw build Tue Nov 25 11:17:40 GMT 2008 Daniel P. Berrange * src/xm_internal.c: Add missing _(...) calls to diagnostics Tue Nov 25 10:49:40 GMT 2008 Daniel P. Berrange * src/Makefile.am: Remove unneccessary $(builddir) usage which breaks on older automake. Remove duplicate CFLAGS from merge error * src/xen_unified.c: Wire up XM driver for autostart * src/xm_internal.h, src/xm_internal.c: Implement domain autostart functions for /etc/xen/auto Tue Nov 25 10:43:40 GMT 2008 Daniel P. Berrange Xen domain lifecycle events (Ben Guthro & Daniel Berrange) * configure.in: Probe for inotify availability * examples/domain-events/events-c/event-test.c: Default to NULL connection URI to allow probing * include/libvirt/virterror.h, src/virterror.c: Add error code for xen inotify driver * po/POTFILES.in: Add xen_inotify.c * python/libvir.c: Add bogus const cast for python2.4 brokeness * src/Makefile.am: Add xen_inotify.c * src/util.c: Fix file descriptor leak in virRun * src/xen_inotify.c, src/xen_inotify.h: Monitor /etc/xen and /var/lib/xen/domains for new/old configs * src/xen_unified.c, src/xen_unified.h: Wire in inotify driver for events * src/xm_internal.c, src/xm_internal.h: Refactor to allow inotify monitoring of config files * src/xs_internal.c, src/xs_internal.h: Use xenstore watch to check for domain start/destroy events Tue Nov 25 10:36:40 GMT 2008 Daniel P. Berrange * src/node_device_conf.c, src/node_device_conf.h, src/node_device_devkit.c, src/node_device_hal.c: Change 'interface' to 'ifname' in struct to avoid clash with symbols in MinGW/Win32 headers Tue Nov 25 11:29:19 +0100 2008 Jim Meyering * src/virterror.c (virReportErrorHelper): Sync doc to code. libvirt.c: document the virState* functions * src/libvirt.c (virStateActive, virStateCleanup, virStateReload): (virStateActive): Add per-function comments. Mon Nov 24 19:32:40 GMT 2008 Daniel P. Berrange * src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c: Default vCPUs to equal host pCPU count if not set in config (patch from Evgeniy Sokolov) Mon Nov 24 19:27:40 GMT 2008 Daniel P. Berrange * examples/domain-events/events-python/event-test.py, python/libvir.c, python/libvir.py, python/libvirt_wrap.h, python/types.c, python/virConnect.py: Fixes to python bindings for changes in public event API (David Lively) Mon Nov 24 19:22:40 GMT 2008 Daniel P. Berrange * tests/Makefile.am, tests/sexpr2xmltest.c, tests/testutilsxen.c, tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c: Disable all Xen tests when Xen driver build is disabled. Remove unneccessary WITH_XEN conditionals from source, since the entire build is disabled in Makefile.am Mon Nov 24 16:49:40 GMT 2008 Daniel P. Berrange * autobuild.sh: Disable UML driver on mingw32 biuld Mon Nov 24 16:01:40 CET 2008 Guido Günther * src/Makefile.am: look for libvirt_sym.version in builddir Mon Nov 24 08:10:49 +0100 2008 Jim Meyering 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. tests: virsh-all: new script * tests/virsh-all: New script. * tests/Makefile.am (test_scripts): Add virsh-all. 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. Fri Nov 21 23:51:19 +0100 2008 Jim Meyering * gnulib/tests/test-EOVERFLOW: Remove. * gnulib/tests/.cvsignore: Add test-EOVERFLOW, then... Run "make sync-vcs-ignore-files" to Update .gitignore files. Fri Nov 21 12:54:14 BST 2008 Daniel P. Berrange * docs/*.html: Re-generate website docs for sitemap change with UML driver. Fix syntax error in HTML for news.html.in Fri Nov 21 12:51:14 BST 2008 Daniel P. Berrange * libvirt-api.xml, libvirt-refs.xml, html/libvirt-libvirt.html, html/libvirt-virterror.html: Regenerate for new APIs Fri Nov 21 12:46:14 BST 2008 Daniel P. Berrange Misc tweaks to node device impl * src/libvirt.c: Log registration of new node device driver impls * src/node_device_conf.h, src/node_device.c: Merge block capability into storage. Print vendor/product IDs in hex * src/node_device_devkit.c: Change block to storage * src/node_device_hal.c: Merge block cap into storage. Skip devices without any capabilities listed * src/virsh.c: Sort device list alphabetically Fri Nov 21 12:40:14 BST 2008 Daniel P. Berrange Python binding for node device APIs (David Lively) * python/generator.py, python/libvir.c, python/libvirt-python-api.xml, python/libvirt_wrap.h, python/types.c: Bindings for node device APis Fri Nov 21 12:38:14 BST 2008 Daniel P. Berrange Node device support in virsh (David Lively) * src/virsh.c: Add nodedev-list and nodedev-dumpxml commands Fri Nov 21 12:30:14 BST 2008 Daniel P. Berrange Remote protocol support for node devices (David Lively) * src/remote_internal.c: driver impl for node device APIs * qemud/remote_protocol.x: Define wire protocol for node device APIs * qemud/remote_dispatch*, qemud/remote_protocol.{c,h}: Update for new APIs * qemud/remote.c: server dispatch functions for node device APIs Fri Nov 21 12:23:14 BST 2008 Daniel P. Berrange Primary internal driver for node devices with HAL (default) and DeviceKit (optional, unfinished) (David Lively) * configure.in: Probe for HAL & DeviceKit libraries * po/POTFILES.in: Add new source files * qemud/Makefile.am: Link to node device driver * qemud/qemud.c: Load node device driver implementation * src/Makefile.am: Buid node device drivers * src/libvirt_sym.version.in: Export internal symbols needed by node device driver * src/node_device.c, src/node_device.h: Common driver routines * src/node_device_hal.c: HAL specific device routines * src/node_device_devkit.c: DeviceKit specific routines * src/node_device_conf.h: Add dbusWatch handle field Fri Nov 21 12:20:14 BST 2008 Daniel P. Berrange * src/Makefile.am, src/node_device_conf.c, src/node_device_conf.h: Internal APIs for handling node device XML configuration (David Lively) Fri Nov 21 12:19:14 BST 2008 Daniel P. Berrange Public API for node device enumeration (David Lively) * include/libvirt/libvirt.h.in, include/libvirt/virterror.h: New public APIs for node device enumeration * src/datatypes.c, src/datatypes.h: Internal impl of public data types for node devices * src/driver.h, src/libvirt.c: Stubs for node device APIs * src/libvirt_sym.version.in: Export new node device API symbols * src/virterror.c: Error codes for node device drivers Fri Nov 21 12:03:14 BST 2008 Daniel P. Berrange Optional (disabled by default) dlopen support * configure.in: Probe for dlopen * qemud/Makefile.am: Don't link to drivers when dlopen is used * qemud/qemud.c: Load external driver modules at startup * src/Makefile.am: Don't link to drivers when dlopen is used * src/driver.c, src/driver.h: Add API for dlopen'ing modules * src/libvirt.c: Load external driver modules at startup * src/libvirt_sym.version.in: Export more internal symbols needed for external driver modules * src/qemud_driver.c, src/qemu_driver.h, src/xen_unified.c, src/xen_unified.h: Sanitize driver registration methodname to match module name * tests/Makefile.am: Set LIBVIRT_DRIVER_DIR when running tests with dlopen enabled. Link to driver modules in Xen test cases * tests/testutils.c: Set LIBVIRT_DRIVER_DIR when running external programs * tests/xmconfigtest.c: Don't open test driver during xen tests. Fri Nov 21 11:43:14 BST 2008 Daniel P. Berrange * src/libvirt_sym.version.in: Add export of domain event API virDomainEventCallbackListRemoveConn missed from earlier commit Fri Nov 21 11:37:14 BST 2008 Daniel P. Berrange * src/domain_conf.c: Fix two memory leaks in virDomainLoadConfig * src/lxc_driver.c: Fix leak of capabilities object in driver shutdown code Fri Nov 21 10:20:14 BST 2008 Daniel P. Berrange * src/remote_internal.c: Return VIR_NO_SUPPORT if requested to register event callbacks when no eventloop is present. Deal with failure to register handles/timers correctly. (David Lively) Fri Nov 21 10:14:14 BST 2008 Daniel P. Berrange Fix crash due to failure to unregister event callbacks on connection close (David Lively) * src/domain_event.c, src/domain_event.h: Helper for unregistering all callbacks * src/qemu_driver.c: Unregister all callbacks on connection close Fri Nov 21 10:10:14 BST 2008 Daniel P. Berrange * src/Makefile.am: Include Xen compile flags for libvirt_driver.la build for stats_linux.c code. Fri Nov 21 10:07:14 BST 2008 Daniel P. Berrange * libvirt.spec.in: Add conditional to allow UML driver to be disabled (Ben Guthro) Fri Nov 21 11:05:14 CET 2008 Daniel Veillard * po/POTFILES.in src/uml_conf.h src/uml_driver.c: fixes syntax check errors, reported by Ben Guthro Thu Nov 20 14:31:00 GMT 2008 Daniel Berrange * src/remote_internal.c: Avoid crash on NULL URI scheme Wed Nov 19 16:51:00 GMT 2008 Daniel Berrange Add User Mode Linux driver * src/uml_driver.c, src/uml_driver.h, src/uml_conf.c, src/uml_conf.h: Core UML driver code * src/domain_conf.c, src/domain_conf.h: Add UML disk bus type. Fix paravirt console handling for non-HVM domains * src/driver.h: Add UML driver number * src/virterror.h: Add error code for UML driver * src/qemu_conf.c: Add disk bus enum entry for UML * src/Makefile.am: Build UML driver * qemud/qemud.c: Initialize UML driver * qemud/Makefile.am: Link to UML driver library * docs/drvuml.html.in: Basic docs for the UML driver * configure.in: Flag for enabling UML driver * include/libvirt/virterror.h: Add constant for UML driver Wed Nov 19 16:22:00 GMT 2008 Daniel Berrange Add virFreeCallback to event loop APIs. * include/libvirt/libvirt.h.in: Add a virFreeCallback arg to the virEventAddHandle and virEventAddTimeout methods. * qemud/event.c: Invoke the virFreeCallback when releasing a handle/timer event * qemud/event.h, qemud/qemud.c, qemud/mdns.c, src/event.h, src/event.c, src/lxc_driver.c, src/qemu_driver.c, src/remote_internal.c: Update to pass around the virFreeCallback where needed Wed Nov 19 16:15:00 GMT 2008 Daniel Berrange * include/libvirt/libvirt.h.in: Change semantics of AddHandle to allow for same FD to be registered more than once with varying flags. * qemud/event.c, qemud/event.h, qemud/mdns.c, qemud/qemud.c, qemud/qemud.h, src/domain_conf.h, src/event.c, src/event.h, src/lxc_driver.c, src/qemu_driver.c, src/remote_internal.c: Update to track file handle events via the watch number as per new public API contract Wed Nov 19 15:25:00 GMT 2008 Daniel Berrange Add a callback for freeing the user data for callbacks (patch from David Lively) * include/libvirt/libvirt.h.in: Add a virFreeCallback type and add it to virDomainEventRegister * qemud/remote.c, src/domain_event.h, src/domain_event.c, src/driver.h, src/qemu_driver.c, src/remote_internal.c, python/libvirt.c: Update to call the virFreeCallback where needed * examples/domain-events/events-c/event-test.c: use the virFreeCallback for releasing data Mon Nov 18 12:24:00 GMT 2008 Daniel Berrange * src/Makefile.am: Fix build on MinGW where linker flags must be listed in LDFLAGS variable * tests/Makefile.am: Fix build when QEMU is disabled, by skipping QEMU tests Mon Nov 17 16:45:00 GMT 2008 Daniel Berrange Generate domain events for QEMU driver config files * src/qemu_driver.c: Generate events when config is defined and undefined * src/domain_conf.c, src/domain_conf.h: Add a callback for notifications of each loaded config file * src/lxc_driver.c: Pass NULL for config file notification callback parameter Mon Nov 17 16:42:00 GMT 2008 Daniel Berrange Include an event 'detail' field providing the cause of each emitted domain event. * docs/ Re-generate API refernece * examples/domain-events/events-c/event-test.c: Print out event detail info * include/libvirt/libvirt.h.in: Rename ADDED/REMOVED events to DEFINED/UNDEFINED. Remove SAVED/RESTORED events replaced by event detail info. Add enums providing details for each domain event type. * python/libvir.c: Pass through event detail to python layer * qemud/remote_protocol.x: Add event detail field for domain events. * qemud/remote_protocol.c, qemud/remote_protocol.h: Regenerate * qemud/remote.c: Pass event detail value onto the wire * src/domain_event.h, src/domain_event.c: Store event detail * src/remote_internal.c: De-serialize event detail off the wire * src/qemu_driver.c: Generate event detail information, and fix migration API to honour VIR_MIGRATE_LIVE flag, pausing the VM if it isn't set Mon Nov 17 11:57:00 GMT 2008 Daniel Berrange Push stateful driver code into daemon binary * src/Makefile.am: Don't build QEMU, LXC, Network & Storage drivers into libvirt.so * src/libvirt.c: Don't call into QEMU, LXC, network & storage driver register methods * src/libvirt_sym.version.in: Export a bunch of internal symbols to libvirtd for use by drivers * tests/Makefile.am: Link to driver modules which are not in libvirt.so * qemud/Makefile.am: Directly link to QEMU, LXC, network and storage drivers * qemud/qemud.c: Initialize QEMU, LXC, network & storage drivers at startup Mon Nov 17 11:40:00 GMT 2008 Daniel Berrange Push URI probing down into individual drivers' open methods * qemud/remote.c: Implement virConnectGetURI dispatcher * qemud/remote_protocol.x: Add API definition for virConnectGetURI * qemud/remote_dispatch_localvars.h, qemud/remote_dispatch_proc_switch.h, qemud/remote_dispatch_prototypes.h, qemud/remote_protocol.c, qemud/remote_protocol.h: Re-generate from protocol definition * src/datatypes.c, src/datatypes.h: Store connection name as a xmlURIPtr object instead of char * * src/driver.h: Remove explicit URI parameter to open function * src/libvirt.c: Delegrate URI probing into drivers * src/lxc_driver.c, src/network_driver.c, src/openvz_driver.c, src/proxy_internal.c, src/qemu_driver.c, src/remote_internal.c, src/storage_driver.c, src/test.c, src/xen_internal.c, src/xen_internal.h, src/xen_unified.c, src/xend_internal.c, src/xend_internal.h, src/xm_internal.c, src/xm_internal.h, src/xs_internal.c, src/xs_internal.h: Refactor open driver methods to deal with automatic URI probing as required * proxy/libvirt_proxy.c: Remove extra args to xs/xen driver open calls Mon Nov 17 11:19:00 GMT 2008 Daniel Berrange Refactor storage backend to remove dependancy from storage config parser. * src/Makefile.am: Build storage_backend as part of storage driver instead of general config * src/storage_backend.c, src/storage_backend.h, src/storage_backend_disk.c, src/storage_backend_fs.c, src/storage_backend_iscsi.c, src/storage_backend_logical.c, src/storage_conf.c, src/storage_conf.h, src/storage_driver.c: Move per-pool type parser options & format enums into the main storage_conf.c file, so parser is independant of the backend impl code. Mon Nov 17 10:50:00 GMT 2008 Daniel Berrange Switch to fully versioned linker script for exported ABI * configure.in: Generate src/libvirt_sym.version * qemud/Makefile.am: Remove use of util-lib.c * qemud/remote.c: Remove underscore in migrate API calls * src/.cvsignore: Ignore generated libvirt_sym.version * src/Makefile.am: Remove util-lib.c and util-lib.h * src/buf.c, src/buf.h, src/conf.c, src/conf.h, src/console.c, src/datatypes.c, src/datatypes.h, src/driver.h, src/libvirt.c, src/libvirt_internal.h, src/memory.c, src/memory.h, src/virsh.c: Remove use of __ prefix on all exported methods * src/util.c, src/util.h: Re-add saferead/write APIs * src/util-lib.c, src/util-lib.h: Remove obsolete files * src/libvirt_sym.version: Remove obsolete file * src/libvirt_sym.version.in: Master template for symbol versioning data Mon Nov 17 10:43:00 GMT 2008 Daniel Berrange * src/Makefile.am: Build drivers as libtool convenience libs Mon Nov 17 10:23:00 GMT 2008 Daniel Berrange * docs/libvirt-api.xml: Re-generate * include/libvirt/libvirt.h.in: Set explicit values for domain events enums to avoid API generator bug * python/libvir.c: Add missing python thread safety calls to domain events APIs Mon Nov 17 09:55:00 GMT 2008 Daniel Berrange * src/openvz_conf.c: Fix updating of config file params (Evgeniy Sokolov) Fri Nov 14 09:40:00 EST 2008 Cole Robinson * src/storage_backend_logical.c: Use different separator for lvs command to unbreak parsing for encrypted devices. Fri Nov 14 13:22:36 +0100 2008 Jim Meyering 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. Fri Nov 14 09:38:22 CET 2008 Daniel Veillard * 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. Wed Nov 12 16:33:42 GMT 2008 Daniel P. Berrange * docs/drvopenvz.html, docs/drvopenvz.html.in: Introductory docs for openvz driver * src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c: Support bridged network configuration for containers Wed Nov 12 16:13:42 GMT 2008 Daniel P. Berrange * src/storage_backend.c, src/storage_backend.h, src/storage_driver.c: Revert previous patch which breaks "test" driver's storage APIs. Tue Nov 11 15:51:42 GMT 2008 Daniel P. Berrange * src/storage_backend.c, src/storage_backend.h, src/storage_driver.c: Decouple backend impls from generic backend code, by making driver register backends at startup Mon Nov 10 12:05:42 GMT 2008 Daniel P. Berrange * src/openvz_conf.c: Read filesytem template name from config files. Increase buffer size when parsing vzctl version number Thu Nov 6 20:45:42 CET 2008 Jim Meyering tweak lstat.c to avoid mingw link failure * gnulib/lib/lstat.c: Include *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. 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. 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. Thu Nov 6 17:33:34 CET 2008 Daniel Veillard * 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 Wed Nov 5 13:56:00 EST 2008 Cole Robinson * src/util.c: Log stdout and stderr in virRun Wed Nov 5 13:39:00 EST 2008 Cole Robinson * src/util.c: Log the argv passed to virExec and virRun Wed Nov 5 13:19:00 EST 2008 Cole Robinson * src/iptables.c, src/util.c, src/util.h: Move local argvToString to virArgvToString. Wed Nov 5 15:22:12 CET 2008 Jim Meyering 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. Wed Nov 5 12:41:00 CET 2008 Chris Lalancette * configure.in, src/storage_backend_logical.c: 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. Tue Nov 4 23:33:31 UTC 2008 Daniel P. Berrange * configure.in: Set WITH_XXXX conditionals for drivers in config.h instead of compiler args, and auto-disable stateful drivers if daemon is disabled * src/libvirt.c: Remove now redundant WITH_LIBVIRTD condition * tests/Makefile.am, src/Makefile.am, qemud/Makefile.am: Remove LIBVIRT_FEATURES args, now set via config.h instead. Add explicit XEN_LIBS/CFLAGS instead of relying on setting via global flags. Tue Nov 4 23:33:31 UTC 2008 Daniel P. Berrange Move domain events helpers into domain_events.c * qemud/event.c: Remove __ prefix on poll event convertors * qemud/event.h: Add virEventHandleTypeToPollEvent and virPollEventToEventHandleType declarations * src/Makefile.am, src/domain_event.c, src/domain_event.h: Add dedicated file for internal domain events helpers * src/internal.h, src/libvirt.c: Remove domain events helpers * src/qemu_conf.h, src/remote_internal.c: Add includs of domain_event.h Tue Nov 4 23:08:31 UTC 2008 Daniel P. Berrange Move internal API declarations from generic internal.h file * src/Makefile.am, src/datatypes.c, src/datatypes.h: Add internal struct definitions for public objects, and helper methods. * src/hash.c: Remove helper methods for public objects * src/libvirt_internal.h: Add definition of semi-secret public APIs for migration & stateful drivers. * src/internal.h: Remove internal API declarations for migration & stateful drivers. * po/POTFILES.in, proxy/libvirt_proxy.c, qemud/qemud.c, qemud/remote.c, src/domain_conf.c, src/domain_conf.h, src/driver.h, src/libvirt.c, src/lxc_driver.c, src/network_conf.c, src/network_conf.h, src/network_driver.c, src/openvz_driver.c, src/proxy_internal.c, src/proxy_internal.h, src/qemu_driver.c, src/qparams.c, src/remote_internal.c, src/stats_linux.c, src/storage_conf.c, src/storage_conf.h, src/storage_driver.c, src/test.c, src/uuid.c, src/veth.c, src/virterror.c, 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/xs_internal.c, tests/xmconfigtest.c: Add includes for libvirt_internal.h and datatypes.h where required Tue Nov 4 22:52:31 UTC 2008 Daniel P. Berrange * qemud/qemud.c, src/driver.h, src/internal.h, src/libvirt.c src/network_driver.c: Remove unused virStateSigDispatcher() internal API Tue Nov 4 22:20:31 UTC 2008 Daniel P. Berrange Move internal error API declarations into their own file * src/Makefile.am, src/virterror_internal.h: Add file for internal error reporting APIs. * src/internal.c: Remove virRaiseError/virReportError API declarations * src/conf.c, src/domain_conf.c, src/hash.c, src/libvirt.c, src/lxc_conf.c, src/lxc_conf.h, src/lxc_container.c, src/lxc_controller.c, src/lxc_driver.c, src/network_conf.c, src/network_driver.c, src/nodeinfo.c, src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c, src/proxy_internal.c, src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c, src/qparams.c, src/remote_internal.c, src/sexpr.c, src/stats_linux.c, src/storage_backend.c, src/storage_backend_disk.c, src/storage_backend_fs.c, src/storage_backend_iscsi.c, src/storage_backend_logical.c, src/storage_conf.c, src/storage_conf.h, src/storage_driver.c, src/test.c, src/util.c, src/virterror.c, src/xen_internal.c, src/xen_unified.c, src/xend_internal.c, src/xm_internal.c, src/xml.c, src/xmlrpc.c, src/xs_internal.c: Add includes of new virterror_internal.h file where required, and remove leading __ from virRaiseError api calls Tue Nov 4 22:14:31 UTC 2008 Daniel P. Berrange Support passing UUID and ID to qemu/xenner * src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c: Detect availability of -uuid and -domid args in QEMU, and use them if available * tests/qemuxml2argvtest.c, tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.args, tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.xml: Add test case for -uuid and -domid args Tue Nov 4 21:50:31 UTC 2008 Daniel P. Berrange Remove use of virStringList * src/internal.h, src/libvirt.c: Remove virStringList code * src/storage_backend_fs.c: Replace use of virStringList with virStoragePoolSourceList * src/storage_backend_logical.c: Set format to LVM2 and source type to LOGICAL * src/storage_conf.c: Refactor pool source XML formating into virStoragePoolSourceFormat and make both users call the common code * src/storage_conf.h: Include pool source type in virStoragePoolSourceList struct Tue Nov 4 14:58:31 CET 2008 Jim Meyering don't print an uninitialized integer in a diagnostic * src/virterror.c (__virErrorMsg) [VIR_ERR_XEN_CALL]: Use a format with only one % directive. Tue Nov 4 14:58:30 CET 2008 Jim Meyering add a test for today's fix * tests/cpuset: New script. Test for today's fix. * tests/Makefile.am (test_scripts): Add cpuset. Mon Nov 3 17:12:21 CET 2008 Daniel Veillard * AUTHORS: added Guido Günther as new commiter, Dan Smith was missing too Mon Nov 3 16:54:39 CET 2008 Daniel Veillard * src/qemu_conf.c: switch off cache if disk is shared and not read-only patch by Charles Duffy Mon Nov 3 16:52:12 CET 2008 Daniel Veillard * src/qemu_driver.c: oops trailing blanks Mon Nov 03 12:37:00 CET 2008 Chris Lalancette * src/storage_backend.c src/storage_backend.h src/storage_backend_disk.c src/storage_backend_iscsi.c src/storage_driver.c: 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 /dev/disk/by-id 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. Fri Oct 31 14:55:46 CET 2008 Daniel Veillard * python/virConnect.py: needed for events from the python bindings by Ben Guthro Fri Oct 31 14:04:52 CET 2008 Daniel Veillard * src/xm_internal.c: add minimum domain memory size check for Xen patch by Shigeki Sakamoto * AUTHORS: add Shigeki Sakamoto Fri Oct 31 11:11:30 CET 2008 Daniel Veillard * 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 Thu Oct 30 13:39:00 EST 2008 Cole Robinson * src/test.c: Add a test storage driver. Wed Oct 29 16:33:16 CET 2008 Daniel Veillard * docs/relatedlinks.html docs/relatedlinks.html.in: add link for AMQP/QPid bindings Wed Oct 29 15:25:28 CET 2008 Daniel Veillard * src/domain_conf.h src/qemu_driver.c: patch adding hor removal of scsi/virtio disks for KVM, patch by Guido Günther Tue Oct 28 19:17:20 +0100 2008 Jim Meyering 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 for htonl. * src/remote_internal.c: Likewise, but do include . * qemud/remote_protocol.c: Regenererate. * qemud/remote_protocol.h: Regenererate. * src/Makefile.am (REMOTE_DRIVER_SOURCES): Remove socketcompat.h. Tue Oct 28 13:46:50 +0100 2008 Jim Meyering 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. Tue Oct 28 13:29:14 +0100 2008 Jim Meyering 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. Tue Oct 28 13:29:14 +0100 2008 Jim Meyering 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. Tue Oct 28 13:29:14 +0100 2008 Jim Meyering cvsignore mingw build artifacts: *.exe Tue Oct 28 13:29:14 +0100 2008 Jim Meyering include netinet etc #ifndef HAVE_WINSOCK2_H Tue Oct 28 13:29:13 +0100 2008 Jim Meyering * src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile. Tue Oct 28 13:29:05 +0100 2008 Jim Meyering 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. Tue Oct 28 12:12:41 +0100 2008 Jim Meyering socketcompat.h: simplify, to match latest gnulib Now, sys/socket.h is always available, and errno works. Tue Oct 28 12:07:46 +0100 2008 Jim Meyering updates from gnulib Tue Oct 28 10:22:45 +0100 2008 Jim Meyering use more gnulib modules * bootstrap: use more gnulib modules: close, connect, perror, recv, send, socket setsockopt, gethostname. Tue Oct 28 10:22:44 +0100 2008 Jim Meyering adapt to API change in gnulib * qemud/qemud.c: Include , not "getaddrinfo.h" * src/remote_internal.c: Likewise. Tue Oct 28 10:22:22 +0100 2008 Jim Meyering * src/network_conf.c: Include for declaration of memcmp. Mon Oct 27 17:14:56 +0100 2008 Jim Meyering 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. Mon Oct 27 17:14:56 +0100 2008 Jim Meyering exempt gnulib from write-avoidance syntax check Mon Oct 27 11:17:32 +0100 2008 Jim Meyering exempt gnulib from ctype-macros prohibition Fri Oct 24 14:09:23 BST Daniel P. Berrange * configure.in: Add check for sys/poll.h * examples/domain-events/events-c/event-test.c: Stub out no-op main() on platforms without sys/poll.h * src/libvirt.c, src/remote_internal.c: Remove redundant include of sys/poll.h breaking mingw Fri Oct 24 13:04:23 BST Daniel P. Berrange * src/storage_conf.c: Remove character * include/libvirt/libvirt.h.in: Remove trailing whitespace Fri Oct 24 12:32:23 BST Daniel P. Berrange * src/openvz_conf.c, src/openvz_conf.h: Extract version info from vzctl tool * src/openvz_driver.c: Implement the getVersion API call. Fri Oct 24 12:30:23 BST Daniel P. Berrange Fix mingw build * src/Makefile.am: Add windows icon files to EXTRA_DIST Fri Oct 24 12:17:23 BST Daniel P. Berrange * src/capabilities.c, src/capabilities.h: Record MAC address prefix info for hypervisor * src/domain_conf.c, src/domain_conf.h: Use capabilities to find MAC address prefix when generating MAC addrs * src/lxc_conf.c, src/lxc_driver.c, src/openvz_conf.c, src/qemu_conf.c, src/qemu_driver.c, src/xen_internal.c, src/xend_internal.c, src/xm_internal.c: Provide vendor MAC address prefix to capabilities * src/util.c, src/util.h: Generic method for generating mac addresses. Fri Oct 24 10:54:23 CEST Jim Meyering fix mingw compilation warning * src/libvirt.c (winsock_init) [HAVE_WINSOCK2_H]: Always return a value. Thu Oct 23 15:20:00 CEST 2008 Chris Lalancete * src/storage_conf.c: brown paper bag bug. I didn't preserve the tags properly, and I didn't put the tag into the proper place, so I totally changed the output of the discovery XML. Fix this up to do the right thing. Thu Oct 23 15:11:03 CEST 2008 Daniel Veillard * include/libvirt/libvirt.h include/libvirt/libvirt.h.in src/libvirt.c src/libvirt_sym.version: new libvirt event entry points, big patch provided by Ben Guthro * Makefile.am configure.in src/driver.h src/event.c src/event.h src/internal.h src/libvirt.c 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/storage_backend_fs.c src/test.c qemud/event.c qemud/event.h qemud/mdns.c qemud/qemud.c qemud/qemud.h 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 proxy/Makefile.am python/generator.py: Not much is left untouched by the patch adding the events support * docs/libvirt-api.xml docs/libvirt-refs.xml docs/html/libvirt-libvirt.html: regenerated the docs * examples/domain-events/events-c/Makefile.am examples/domain-events/events-c/event-test.c: a test example * AUTHORS: added Ben Guthro Thu Oct 23 13:41:49 CEST 2008 Daniel Veillard * docs/apps.html docs/apps.html.in: update monitoring apps section Thu Oct 23 13:38:00 CEST 2008 Chris Lalancette * src/storage_backend_logical.c src/storage_conf.c src/storage_conf.h: Add tags to the XML returned by virConnectFindPoolSources for storage_backend_logical. Thu Oct 23 13:31:00 CEST 2008 Chris Lalancette * src/storage_backend.h src/storage_backend_disk.c src/storage_backend_fs.c src/storage_backend_logical.c src/storage_conf.c: Fix up a regression caused by the transition of the storage backends to VIR_ENUM_IMPL. Before, we would accept no format type, which would then use whatever the default for the pool was. But the conversion caused this to instead cause a SEGFAULT, which isn't good. Introduce a .defaultFormat parameter so that we restore the previous behavior, although in a more generic format. Wed Oct 22 09:53:00 EST 2008 Cole Robinson * configure.in: Fix syntax error which was breaking RPM builds. Tue Oct 21 19:22:00 CEST 2008 Chris Lalancette * src/storage_conf.c: Make logical pool dumpXML more idempotent with defineXML by outputting when we are dumping XML. We only use the longer foo when a pool has .nfreeExtent defined. Tue Oct 21 19:18:00 CEST 2008 Chris Lalancette * src/storage_conf.c: Make sure to set errors on paths where ->formatToString() or ->formatFromString() fail. Tue Oct 21 19:13:00 CEST 2008 Chris Lalancette * src/qemu_driver.c src/storage_conf.c src/network_driver.c src/storage_driver.c: Shore up the uses of virGetLastError() so that if a path forgets to set a virError, we don't crash while trying to dereference the NULL pointer to print out. Tue Oct 21 09:19:24 PDT 2008 Dan Smith * src/cgroup.c src/cgroup.h: Add function to allow major device range * src/lxc_container.h src/controller.c: Fix cgroup initialization order and fix /dev/pts cgroup permission Tue Oct 21 16:25:22 CEST 2008 Daniel Veillard * HACKING: update with some rules for commiters * docs/apps.html docs/apps.html.in: add a section on monitoring support Tue Oct 21 15:08:02 CEST 2008 Daniel Veillard * src/qemu_driver.c: cleanup patch for usb masstorage hotadd by Guido Günther Mon Oct 20 09:45:42 CEST Jim Meyering ALL_LINGUAS: set unconditionally, using $srcdir/po * configure.in: Remove hard-coded list altogether. Sun Oct 19 11:40:49 CEST Jim Meyering ALL_LINGUAS: remove "no", now that it's superseded by np.po * configure.in: Remove "no" from hard-coded list. Fri Oct 17 14:30:48 CEST 2008 Daniel Veillard * src/qemu_driver.c: add scsi/virtio hotplug support for KVM patch by Guido Günther Fri Oct 17 11:58:31 +0200 Jim Meyering Makefile.maint (sync-vcs-ignore-files): avoid risk of abuse * Makefile.maint (sync-vcs-ignore-files): Rewrite rule so that it won't misbehave even with maliciously-named sub-directories. generate .gitignore files from .cvsignore ones * Makefile.maint (sync-vcs-ignore-files): New target. Prompted by a patch from James Morris. http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773 Add all (now-generated) .gitignore files. * .gitignore: New file. * build-aux/.gitignore: New file. * docs/.gitignore: New file. * docs/devhelp/.gitignore: New file. * docs/examples/.gitignore: New file. * docs/examples/python/.gitignore: New file. * gnulib/lib/.gitignore: New file. * gnulib/lib/arpa/.gitignore: New file. * gnulib/lib/netinet/.gitignore: New file. * gnulib/lib/sys/.gitignore: New file. * gnulib/tests/.gitignore: New file. * include/.gitignore: New file. * include/libvirt/.gitignore: New file. * po/.gitignore: New file. * proxy/.gitignore: New file. * python/.gitignore: New file. * python/tests/.gitignore: New file. * qemud/.gitignore: New file. * src/.gitignore: New file. * tests/.gitignore: New file. * tests/confdata/.gitignore: New file. * tests/sexpr2xmldata/.gitignore: New file. * tests/virshdata/.gitignore: New file. * tests/xencapsdata/.gitignore: New file. * tests/xmconfigdata/.gitignore: New file. * tests/xml2sexprdata/.gitignore: New file. Fri Oct 17 11:25:43 CEST 2008 Daniel Veillard * src/qemu_driver.c: use qemudDiskDeviceName to determine the block device name in qemudDomainBlockStats(), patch by Guido Günther Fri Oct 17 11:20:48 CEST 2008 Daniel Veillard * src/qemu_driver.c: fix qemudDiskDeviceName to handle disk devices too, patch by Guido Günther Fri Oct 17 11:16:30 CEST 2008 Daniel Veillard * src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0 patch by Guido Günther Thu Oct 16 19:17:25 +0200 Jim Meyering build: when po-check fails, say why and suggest a fix * Makefile.maint (po-check): Before, when this check failed, it just spat out a diff mentioning two temporary files. Now, it tells you what's wrong and suggests a fix with a patch using the name of the affected file (rather than temporary file names) in the diff output. Thu Oct 16 17:02:00 CEST 2008 Chris Lalancette * Add support for detecting the partition table type when scanning iSCSI volumes. This is implemented in the virStorageBackendUpdateVolInfoFD function, so all future callers will automatically benefit. This is a somewhat large patch because the conversion of the virStorageBackendPartTableTypeToString necessitated a change to the formatToString and formatFromString function pointers, which caused fallout in other places in the storage stuff. The good news is that most of these callers are now converted over to the VIR_ENUM_IMPL, which means a lot of redundant code is now gone. Thu Oct 16 15:41:00 CEST 2008 Chris Lalancette * Compiling with -Werror showed a possible use before initialization in src/qemu_driver.c. Make sure to initialize the origdisk ptr to NULL. Thu Oct 16 15:04:36 +0200 Jim Meyering build: exempt *.ico files from the trailing blank check * .x-sc_trailing_blank: Add \.ico$ to the list. Wed Oct 16 14:03:00 CEST 2008 Chris Lalancette * "make syntax-check" was complaining that network_driver.c was missing from POTFILES.in. Add it, and then fix up one warning about included c-ctypes.h that wasn't being used. Wed Oct 15 19:38:00 BST 2008 Richard W.M. Jones * configure.in, src/Makefile.am, src/virsh_win_icon.rc: Add a Windows icon resource. Wed Oct 15 11:28:00 BST 2008 Richard W.M. Jones * src/libvirt.c: Register the remote driver even when we are configured --without-libvirtd. Also adds debugging of registration events. Mon Oct 13 18:45:43 CEST 2008 Jim Meyering avoid many format string warnings Building with --disable-nls exposed many new warnings like these: virsh.c:4952: warning: format not a string literal and no format ... util.c:163: warning: format not a string literal and no format arguments All but one of the following changes add a "%s" argument before the offending _(...) argument. This was the only manual change: * src/lxc_driver.c (lxcVersion): Use %s and strerror(errno) rather than %m, to avoid a warning from gcc -Wformat-security. Add "%s" before each warned about format-string-with-no-%-directive: * src/domain_conf.c (virDomainHostdevSubsysUsbDefParseXML) (virDomainDefParseString, virDomainDefParseFile): * src/hash.c (virGetConnect, __virGetDomain, virReleaseDomain) (__virGetNetwork, virReleaseNetwork, __virGetStoragePool) (virReleaseStoragePool, __virGetStorageVol, virReleaseStorageVol): * src/lxc_container.c (lxcContainerChild): * src/lxc_driver.c (lxcDomainDefine, lxcDomainUndefine) (lxcDomainGetInfo, lxcGetOSType, lxcDomainDumpXML) (lxcSetupInterfaces, lxcDomainStart, lxcDomainCreateAndStart) (lxcVersion, lxcGetSchedulerParameters): * src/network_conf.c (virNetworkDefParseString) (virNetworkDefParseFile): * src/openvz_conf.c (openvzReadNetworkConf, openvzLoadDomains): * src/openvz_driver.c (openvzDomainDefineCmd) (openvzDomainGetInfo, openvzDomainDumpXML, openvzDomainShutdown) (openvzDomainReboot, ADD_ARG_LIT, openvzDomainDefineXML) (openvzDomainCreateXML, openvzDomainCreate, openvzDomainUndefine) (openvzDomainSetAutostart, openvzDomainGetAutostart) (openvzDomainSetVcpus): * src/qemu_driver.c (qemudDomainBlockPeek, qemudDomainMemoryPeek): * src/remote_internal.c (remoteDomainBlockPeek) (remoteDomainMemoryPeek, remoteAuthPolkit): * src/sexpr.c (sexpr_new, _string2sexpr): * src/storage_backend_disk.c (virStorageBackendDiskMakeDataVol) (virStorageBackendDiskCreateVol): * src/storage_backend_fs.c (virStorageBackendFileSystemNetFindPoolSources): * src/storage_backend_logical.c (virStorageBackendLogicalFindLVs) (virStorageBackendLogicalFindPoolSources): * src/test.c (testOpenDefault, testOpenFromFile, testOpen) (testGetDomainInfo, testDomainRestore) (testNodeGetCellsFreeMemory): * src/util.c (virExec): * src/virsh.c (cmdAttachDevice, cmdDetachDevice) (cmdAttachInterface, cmdDetachInterface, cmdAttachDisk) (cmdDetachDisk, cmdEdit): * src/xend_internal.c (do_connect, wr_sync, xend_op_ext) (urlencode, xenDaemonDomainCreateXML) (xenDaemonDomainLookupByName_ids, xenDaemonDomainLookupByID) (xenDaemonParseSxprOS, xend_parse_sexp_desc_char) (xenDaemonParseSxprChar, xenDaemonParseSxprDisks) (xenDaemonParseSxpr, sexpr_to_xend_topology, sexpr_to_domain) (xenDaemonDomainFetch, xenDaemonDomainGetAutostart) (xenDaemonDomainSetAutostart, xenDaemonDomainMigratePerform) (xenDaemonDomainDefineXML, xenDaemonGetSchedulerType) (xenDaemonGetSchedulerParameters) (xenDaemonSetSchedulerParameters, xenDaemonDomainBlockPeek) (xenDaemonFormatSxprChr, virDomainXMLDevID): * src/xm_internal.c (xenXMConfigCacheRefresh, xenXMDomainPinVcpu) (xenXMDomainCreate, xenXMDomainDefineXML) (xenXMDomainAttachDevice, xenXMDomainDetachDevice): * src/xml.c (virXPathString, virXPathNumber, virXPathLong) (virXPathULong, virXPathBoolean, virXPathNode, virXPathNodeSet): * src/xs_internal.c (xenStoreOpen): Mon Oct 13 16:24:00 BST 2008 Richard W.M. Jones Documentation for NIC model selection. * docs/formatdomain.html.in, docs/formatdomain.html: Add the documentation for NIC model selection. Mon Oct 13 16:22:00 BST 2008 Richard W.M. Jones Build failure fixed. * src/domain_conf.c: Fix build failure of the Xen proxy. Sat Oct 11 09:23:18 CEST 2008 Jim Meyering testError format strings: explicitly include domain and network names This repairs the "make check" failure of tests/undefine. * src/test.c (testResumeDomain, testPauseDomain): Likewise. (testShutdownDomain, testGetDomainInfo, ): Likewise. (testSetMemory, testSetVcpus, testDomainCreate, testDomainUndefine) (testDomainGetSchedulerType, testDomainGetSchedulerParams): Likewise. (testDomainSetSchedulerParams, testNetworkUndefine): Likewise. (testNetworkStart, testNetworkGetBridgeName): Likewise. (testDomainCoreDump, testDomainSave): Likewise, and... Name the file upon failed open or write. Use strerror(errno) in diagnostics. * tests/undefine: Adjust expected output. test.c (testError): Remove now-ignored dom and net parameters. This is a sytnax-only change: removing the two unused parameters and updating all callers: * src/test.c (GET_DOMAIN, GET_NETWORK, testError) (testBuildCapabilities, testOpenDefault, testOpenFromFile) (testOpen, testGetHostname, testGetURI, testGetCapabilities) (testLookupDomainByID, testLookupDomainByUUID) (testLookupDomainByName, testResumeDomain, testPauseDomain) (testShutdownDomain, testGetDomainInfo, testDomainSave) (testDomainRestore, testDomainCoreDump, testGetOSType) (testSetMemory, testSetVcpus, testListDefinedDomains) (testNodeGetCellsFreeMemory, testDomainCreate) (testDomainUndefine, testDomainGetSchedulerType) (testDomainGetSchedulerParams, testDomainSetSchedulerParams) (testLookupNetworkByUUID, testLookupNetworkByName) (testListNetworks, testListDefinedNetworks, testNetworkUndefine) (testNetworkStart, testNetworkGetBridgeName): Update callers. Fri Oct 10 19:16:00 BST 2008 Daniel P. Berrange * src/memory.c: If size*count== 0, then virRelloc must not return a failure, it is same as virFree. Fri Oct 10 17:51:00 BST 2008 Daniel P. Berrange * docs/libvirt.rng: Document SDL attributes in schema * src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c: Support SDL display configuration * tests/qemuxml2argvtest.c: Set predictable env vars for SDL tests. * tests/qemuxml2argvdata/*.args: Add new env vars now set explicitly Fri Oct 10 17:03:00 BST 2008 Daniel P. Berrange * src/domain_conf.c, src/domain_conf.h, src/lxc_container.c, src/lxc_controller.c, src/lxc_driver.c, src/openvz_conf.c, src/openvz_driver.c, src/qemu_conf.c, src/qemu_driver.c, src/xend_internal.c, src/xend_internal.h, src/xminternal.c: Switch to using arrays instead of linked lists for devices * tests/sexpr2xmldata/sexpr2xml-fv-v2.xml: Fix device ordering Fri Oct 10 15:39:00 BST 2008 Daniel P. Berrange * src/storage_conf.c, src/storage_conf.h, src/storage_driver.c, src/storage_backend_disk.c, src/storage_backend_fs.c, src/storage_backend_iscsi.c, src/storage_backend_logical.c: Switch storage objects to array instead of linked list Fri Oct 10 15:39:00 BST 2008 Daniel P. Berrange * src/network_conf.c, src/network_conf.h, src/network_driver.c, src/test.c: Switch to using array instead of linked list for network objects Fri Oct 10 15:19:00 BST 2008 Daniel P. Berrange * src/domain_conf.c, src/domain_conf.h: Switch to using array instead of linked list for domain objects * src/lxc_conf.h, src/lxc_driver.c, src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c, src/qemu_conf.h, src/qemu_driver.c test.c: Update to manage domain objects in array instead of linked list Fri Oct 10 14:56:00 BST 2008 Daniel P. Berrange * configure.in: option to enable/disable network driver * src/Makefile.am: Add network_driver.c/.h files * src/libvirt.c: Import network_driver.h file * src/qemu_conf.c, src/qemu-conf.h, src/qemu_driver.c: Remove all network driver support * src/network_driver.c, src/network_driver.h: Add standalone network driver Fri Oct 10 13:30:00 BST 2008 Daniel P. Berrange * src/xml.c, src/xen_internal.c: Cast some args to unsigned long to avoid printf format specifier warnings on 32-bit Fri Oct 10 12:30:00 BST 2008 Richard W.M. Jones Updated MinGW spec file. * .cvsignore, Makefile.am, autobuild.sh, configure.in, mingw32-libvirt.spec.in: Import the latest MinGW libvirt spec file. Note that the file has been renamed to conform to new Fedora packaging guidelines. * autobuild.sh: Fix a bug in the generation of the $EXTRA_RELEASE field when autobuilding. Fri Oct 10 11:17:59 CEST 2008 Daniel Veillard * include/libvirt/libvirt.h[.in] include/libvirt/virterror.h qemud/remote* src/driver.h src/libvirt.c src/libvirt_sym.version src/lxc_driver.c src/openvz_driver.c src/proxy_internal.c src/qemu_driver.c src/remote_internal.c src/test.c src/virsh.c src/xen_internal.c src/xen_unified.c src/xen_unified.h src/xend_internal.c src/xend_internal.h src/xm_internal.c src/xs_internal.c docs/*: cleanup virDomainCreateLinux into virDomainDefineXML, and a few additional cleanups Fri Oct 10 10:33:29 CEST 2008 Daniel Veillard * src/domain_conf.c src/util.c: fix index creation for disks > {sd,hd,xvd,vd}z (Sanjay Rao and Chris Wright) Thu Oct 9 11:30:00 EST Cole Robinson * src/domain_conf.c src/hash.c src/internal.h src/lxc_conf.c src/lxc_conf.h src/network_conf.c src/openvz_conf.c src/openvz_conf.h src/proxy_internal.c src/qemu_conf.c src/qemu_conf.h src/qparams.c src/sexpr.c src/storage_conf.c src/storage_conf.h src/test.c src/util.c src/virterror.c src/xen_internal.c src/xen_unified.c src/xend_internal.c src/xm_internal.c src/xml.c src/xs_internal.c: Centralize majority of error reporting logic. Thu Oct 9 15:49:25 BST Daniel P Berrange * src/lxc_driver.c: Annotate unused parameter * src/virsh.c: Fix scanf format specifier Wed Oct 8 08:29:25 PDT 2008 Dan Smith * src/cgroup.c src/cgroup.h: Add cpu shares manipulation * src/lxc_driver.c: Add scheduler parameters interface for cpu shares * src/virsh.c: Add generic scheduler parameter interface Wed Oct 8 15:42:44 CEST 2008 Daniel Veillard * src/cgroup.c: use safewrite() * src/qemu_driver.c: missing VIR_FREE pojnted out by Eduardo Habkost Tue Oct 7 23:08:51 CEST 2008 Jim Meyering avoid "make syntax-check" failure * src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write. Tue Oct 7 18:33:39 CEST 2008 Daniel Veillard * src/qemu_driver.c: another OOM handling cleanup (Guido Günther) Tue Oct 7 17:59:59 CEST 2008 Daniel Veillard * src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error (Guido Günther) Mon Oct 6 15:47:00 EST 2008 Cole Robinson * qemud/remote.c src/hash.c src/internal.h src/lxc_conf.c src/lxc_container.c src/lxc_controller.c src/lxc_driver.c src/remote_internal.c src/storage_backend_disk.c src/veth.c src/xen_internal.c src/xen_unified.c src/xend_internal.c: Move DEBUG and DEBUG0 macros to central location. Mon Oct 6 15:32:00 EST 2008 Cole Robinson * src/qemu_conf.c: Fix possible segfault if starting a qemu guest with with an inactive virtual network. Mon Oct 6 15:23:00 EST 2008 Cole Robinson * tests/domainschematest: Slim down schema test result output Mon Oct 6 17:39:12 CEST 2008 Daniel Veillard * src/lxc_driver.c src/qemu_driver.c src/remote_internal.c src/storage_driver.c: use C99 initializers for virState (Guido Gunther) Mon Oct 6 11:23:40 BST 2008 Daniel P. Berrange * qemud/Makefile.am: Fix VPATH build (Guido Gunther) Mon Oct 6 12:08:40 CEST 2008 Daniel Veillard * po/no.po: removed it's obsoleted by np.po, fixes #335211 Thu Oct 3 09:32:42 PDT 2008 Dan Smith * src/lxc_container.h src/lxc_container.c src/lxc_controller.c src/lxc_driver.c: Use internal cgroup API to manipulate cgroups for LXC resource control Thu Oct 3 09:32:42 PDT 2008 Dan Smith * src/cgroup.c src/cgroup.h: Add internal cgroup manipulation API Thu Oct 2 17:01:32 CEST 2008 Daniel Veillard * libvirt.spec.in: fix bug #465274 to build on RHEL Thu Oct 2 10:06:00 EST 2008 Cole Robinson * src/qemu_driver.c: Fix startup timeout with multiple pty devices. Wed Oct 1 17:28:47 CEST 2008 Daniel Veillard * src/xend_internal.c: fix ordering when parsing multiple Xen interfaces, patch by Jim Fehlig * python/Makefile.am: fix parallel build Thu Sep 25 13:37:42 IST 2008 Mark McLoughlin * docs/virsh.pod: fixup some minor issues - e.g. bogus references to "xm" Tue Sep 23 22:45:47 CEST 2008 Daniel Veillard * configure.in libvirt.spec.in NEWS docs/*: release of libvirt-0.4.6 * src/storage_backend_logical.c: re-add the -f flag to vgremove * po/*: rebuilt Tue Sep 23 12:17:22 CEST 2008 Daniel Veillard * po/pt_BR.po: updated brazilian translation Mon Sep 22 22:18:16 CEST 2008 Daniel Veillard * src/storage_backend_logical.c: enable stop pool in logical backend improve portability when deleting a pool and also call pvremove patch by Chris Lalancette Mon Sep 22 21:55:55 CEST 2008 Daniel Veillard * src/storage_conf.c: fixes parsing to allow no sources for a pool fix by Dan and Chris Lalancette Mon Sep 22 18:00:39 CEST 2008 Daniel Veillard * src/remote_internal.c src/storage_driver.c: structure init fixes by Chris Lalancette Mon Sep 22 17:14:25 CEST 2008 Daniel Veillard * src/openvz_conf.c: patch from Evgeniy Sokolov to read network config in OpenVZ driver. Thu Sep 18 11:19:00 BST 2008 Daniel P. Berrange * libvirt.spec.in: Remove commands which were deleting development files mistakenly Thu Sep 18 09:55:00 BST 2008 Richard W.M. Jones Documentation cleanups. * docs/bindings.html.in: Clean up the bindings page, and add C# and Java. * docs/windows.html.in: Remove old bogus information and add placeholder. Thu Sep 18 09:52:00 BST 2008 Daniel P. Berrange * src/qemu_driver.c, configure.in, libvirt.spec.in: Remove trailing whitespace & fix diagnostic string translation. Wed Sep 17 17:02:00 BST 2008 Richard W.M. Jones * src/openvz_driver.c: Fix segfault in OpenVZ driver (Evgeniy Sokolov). Wed Sep 17 16:38:00 BST 2008 Daniel P berrange * tests/xmconfigdata/test-paravirt-new-pvfb-vncdisplay.xml, tests/xmconfigdata/test-paravirt-old-pvfb-vncdisplay.xml, tests/xml2sexprdata/xml2sexpr-pv-vfb-new-auto.sexpr: Remove redundant emulator tags which broke test cases. Wed Sep 17 15:26:00 BST 2008 Richard W.M. Jones * src/storage_backend_disk.c: Missing include file. Wed Sep 17 15:18:00 BST 2008 Richard W.M. Jones * src/qemu_driver.c: Remove some deadcode (Nguyen Anh Quynh). Wed Sep 17 15:14:00 BST 2008 Richard W.M. Jones * src/virsh.c: Change name of "blocked" state to "idle" (John Levon). Wed Sep 17 15:10:00 BST 2008 Richard W.M. Jones * include/libvirt/libvirt.h.in, src/libvirt.c: Fix comments which incorrectly referred to non-existent 'virDomainFlags' type (Anton Protopopov). Wed Sep 17 15:08:00 BST 2008 Richard W.M. Jones * src/conf.c: Improved error messages in XM conf module. Wed Sep 17 15:03:00 BST 2008 Richard W.M. Jones * libvirt.spec.in: Specfile enhancements for minimal "client only" build (Ben Guthro). Wed Sep 17 15:03:00 BST 2008 Richard W.M. Jones * configure.in, src/qemu_driver.h, src/qemu_driver.c: KVM can determine max VCPUs at runtime (Guido Günther). Tue Sep 16 12:43:00 EST 2008 Cole Robinson * src/storack_backend_disk.c: Implement disk volume delete Tue Sep 9 09:50:00 EST 2008 Cole Robinson * src/xend_internal.c: fix reading vncdisplay from xend domain * tests/sexpr2xmldata/sexpr2xml-pv-vfb-new-vncdisplay.sexpr tests/sexpr2xmldata/sexpr2xml-pv-vfb-new-vncdisplay.xml, tests/xmconfigdata/test-paravirt-new-pvfb-vncdisplay.cfg, tests/xmconfigdata/test-paravirt-new-pvfb-vncdisplay.xml, tests/xmconfigdata/test-paravirt-old-pvfb-vncdisplay.cfg, tests/xmconfigdata/test-paravirt-old-pvfb-vncdisplay.xml, tests/xml2sexprdata/xml2sexpr-pv-vfb-new-auto.sexpr, tests/xml2sexprdata/xml2sexpr-pv-vfb-new-auto.xml: Add tests for various xen vnc cases. Tue Sep 9 09:42:00 EST 2008 Cole Robinson * src/qemu_conf.c : fix a segfault if no qemu emulator is passed when defining a domain. Mon Sep 8 16:28:30 CEST 2008 Daniel Veillard * configure.in libvirt.spec.in docs/*: preparing release of libvirt-0.4.5 * po/*: rebuilt and updated de.po Mon Sep 8 14:42:23 CEST 2008 Daniel Veillard * src/network_conf.c src/network_conf.h src/qemu_driver.c: add support for a domain name in network configurations, patch by JJ Reynolds with bugfix raised by Dan * src/openvz_conf.c: fix to small bug in openvzReadConfigParam by Evgeniy Sokolov Mon Sep 8 13:14:17 BST 2008 Daniel P. Berrange * src/openvz_driver.c: Fix potential NULL dereference Mon Sep 8 09:18:17 CEST 2008 Daniel Veillard * src/storage_backend_logical.c: finish applying initialization from Jim Fehlig patch for logical storage backend Fri Sep 5 15:59:26 BST 2008 Daniel P. Berrange * src/openvz_conf.c, src/openvz_driver.c: Fix trailing whitespace mistakes Fri Sep 5 15:09:26 BST 2008 Daniel P. Berrange * src/openvz_conf.c, src/openvz_conf.h, src/openvz_driver.c, src/openvz_driver.h: Convert to generic domain XML apis Fri Sep 5 13:02:26 BST 2008 Daniel P. Berrange Fully support mingw builds * .cvsignore: Ignore mingw-libvirt.spec * autobuild.sh: Perform mingw build if toolchain is available * Makefile.am: Add mingw-libvirt.spec to EXTRA_DIST * configure.in: Add check for getuid/getgit. Add gettext() check against libintl. Disable storage drivers if libvirtd is disabled * mingw-libvirt.spec.in: Specfile for mingw cross compile * qemud/remote_protocol.{c,x,h}: Add socketcompat.h include for htons() methods * src/Makefile.am: Don't wrap storage driver conditionals in a libvirtd conditional * src/storage_backend.c: Add no-op implementations of virStorageBackendRunProgRegex and virStorageBackendRunProgNul functions for mingw * src/storage_conf.c: Fix typo in getgid() call. Avoid not-literal in format string. * src/util.c: Fix signature of virExec() for mingw build * src/util.h: Add stub impl of getuid/getgid calls Fri Sep 5 12:50:26 BST 2008 Daniel P. Berrange Fix starting of Xen domains without PVFB console, by not setting emulator path in SEXPR unless asked for * src/domain_conf.c, src/domain_conf.h, src/xm_internal.c: Don't set emulator path with a default value * src/lxc_driver.c, src/qemu_conf.c, src/qemu_driver.c: Find a default emulator path if no explicit path is provided in config * tests/xmconfigdata/test-paravirt-net-e1000.xml, tests/xmconfigdata/test-paravirt-new-pvfb.xml, tests/xmconfigdata/test-paravirt-old-pvfb.xml, tests/xml2sexprdata/xml2sexpr-fv-kernel.xml: Remove default emulator path * tests/xml2sexprdata/xml2sexpr-pv-vfb-new.sexpr: Remove emulator path Fri Sep 5 12:33:26 BST 2008 Daniel P. Berrange * src/xen_unified.c, src/xen_internal.c, src/xen_internal.h, tests/xencapstest.c: Pass connection object into capabilities constructor since it needs to talk to XenD Thu Sep 4 15:33:26 CEST 2008 Daniel Veillard * src/storage_backend_fs.c: fix a signed/unsigned issue breaking virStorageBackendProbeFile(), patch by Cole Robinson Thu Sep 4 15:18:00 CEST 2008 Daniel Veillard * src/qemu_driver.c: fix an error message, patch by Nguyen Anh Quynh Thu Sep 4 14:16:20 BST 2008 Daniel P. Berrange * qemud/Makefile.am: Fix make check when augparse is not available Thu Sep 4 15:05:34 CEST 2008 Daniel Veillard * src/storage_backend_logical.c: fix a miscalculation of command line size for vgcreate, patch from Jim Fehlig Thu Sep 4 11:43:20 BST 2008 Daniel P. Berrange Augeas config file support * configure.in: Check for augparse tool for test suite * libvirt.spec.in, qemud/Makefile.am, qemud/libvirtd.aug, qemud/libvirtd_qemu.aug, qemud/test_libvirtd.aug, qemud/test_libvirtd_qemu.aug: Augeas lens for processing libvirtd.conf and qemu.conf Thu Sep 4 11:09:20 CEST 2008 Daniel Veillard * src/xend_internal.c: patch from John Levon shutting down a live domain is just more hazardous Thu Sep 4 11:05:59 CEST 2008 Daniel Veillard * src/xend_internal.c src/xs_internal.c: use poweroff instead of halt when shutting down a xen domain, patch by John Levon Thu Sep 4 10:13:43 CEST 2008 Daniel Veillard * src/qemu_driver.c: switch flags to unsigned by James Morris * AUTHORS: add James Morris Wed Sep 3 10:14:00 PDT 2008 Dan Smith * src/lxc_driver.c: Add hypervisor version implementation Wed Sep 3 11:52:00 EST 2008 Cole Robinson * src/domain_conf.c src/domain_conf.h src/qemu_driver.c: Fix qemu media connect/eject to work with latest syntax. Add support for ejecting floppy devices and scsi cdroms. Wed Sep 3 10:57:00 EST 2008 Cole Robinson * src/domain_conf.c src/domain_conf.h src/qemu_driver.c: Update domain xml after usb device hotplug. Wed Sep 3 10:42:00 EST 2008 Cole Robinson * src/qemu_driver.c: scrape media eject output to determine failure Wed Sep 3 09:58:00 EST 2008 Cole Robinson * src/domain_conf.c: fix disk device ordering when parsing domain xml. check for disk target duplicates as well. * tests/xml2sexprdata/xml2sexpr-fv-v2.sexpr: fix for disk ordering * tests/xml2sexprdata/xml2sexpr-fv-vncunused.sexpr: fix for disk ordering Wed Sep 3 14:51:03 CEST 2008 Daniel Veillard * src/qemu_driver.c: patch from Cole Robinson to avoid a segfault on KVM CD eject Wed Sep 3 14:37:06 CEST 2008 Daniel Veillard * src/virsh.c: patch from Cole Robinson to add output on attach and detach success Wed Sep 3 14:23:48 CEST 2008 Daniel Veillard * AUTHORS: add Cole Robinson as commiter Wed Sep 3 09:08:01 CEST 2008 Daniel Veillard * src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc Tue Sep 2 17:30:50 CEST 2008 Daniel Veillard * src/domain_conf.c: fix a parsing error for input devices patch by Cole Robinson Tue Sep 2 16:55:01 CEST 2008 Daniel Veillard * src/qemu_conf.c: patch from Cole Robinson to report in the capabilities only the ones where the emulators is actually found * po/libvirt.pot: regenerated * src/libvirt.c: small typo fix Tue Sep 2 16:12:20 CEST 2008 Daniel Veillard * src/storage_backend.h src/storage_backend_logical.c src/storage_conf.c src/storage_conf.h src/virsh.c: Applied patches from David Lively to add storage source elements needed for storage pool * docs/formatstorage.html docs/formatstorage.html.in: associated documentation Tue Sep 2 12:28:54 CEST 2008 Jim Meyering qemu_conf.c: use new function, virFileReadLimFD * src/qemu_conf.c (qemudExtractVersionInfo): Use virFileReadLimFD and VIR_FREE in place of an open-coded loop and a static buffer. util.c: add a file-descriptor-based wrapper for fread_file_lim * src/util.c (virFileReadLimFP): New function. (__virFileReadLimFD): New function. * src/util.h (__virFileReadLimFD): Declare. (virFileReadLimFD): Define. (virFileReadAll): Rewrite to use virFileReadLimFP. Fri Aug 29 08:04:15 BST 2008 Daniel P. Berrange * src/bridge.c, src/proxy_internal.c, src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c, src/remote_internal.c: Switch over to using virExec() function Thu Aug 28 23:39:15 BST 2008 Daniel P. Berrange * src/util.c: Fix off-by-one to allow making of paths at root * src/lxc_container.c: Allow for a private root filesystem using pivot_root. Thu Aug 28 12:58:15 BST 2008 Daniel P. Berrange * src/xend_internal.c: Fix lookup of Xen VMs after define (patch from Cole Robinson) Thu Aug 28 11:08:15 CEST 2008 Jim Meyering improve parallel build support * autobuild.sh: Append -j$N to MAKEFLAGS, if no -j option is there. * libvirt.spec.in: Use %{?_smp_mflags} with "make". Based on a patch from James Morris: http://thread.gmane.org/gmane.comp.emulators.libvirt/8201 Wed Aug 27 20:50:00 EST 2008 Daniel P. Berrange Storage pool source discovery from David Lively * include/libvirt/libvirt.h, include/libvirt/libvirt.h.in, src/libvirt_sym.version, src/libvirt.c, src/driver.h: Add the virConnectFindStoragePoolSources() API * src/remote_internal.c, qemu/remote.c, src/remote_protocol.{c,h,x} Implement remote protocol support for virConnectFindStoragePoolSources * src/remote_dispatch_*.h: Re-generate from remote_protocol.x * libvirt.spec.in:Add dep on nfs-utils * configure.in: Check for showmount binary * src/storage_backend.h, src/storage_driver.c: Generic impl of storage discovery * src/storage_backend_fs.c, src/storage_backend_logical.c: Add specific impl of storage discovery for NFS and LVM * src/virsh.c: Add command to discover storage pools Wed Aug 27 12:40:00 EST 2008 Daniel P. Berrange * src/util.h, src/util.c: Allow virExec to take set of FDs to preserve in child. * src/lxc_driver.c, src/qemu_driver.c, src/storage_backend.c: Preserve FDs as needed Wed Aug 27 12:20:00 EST 2008 Daniel P. Berrange * src/openvz_conf.c: Fix handling of EOF when reading list of domains Wed Aug 27 12:14:00 EST 2008 Daniel P. Berrange * src/openvz_driver.c: Remove incorrect usage of virState driver internal apis only intended for drivers within the daemon. * src/Makefile.am: No need to disable openvz if the daemon is disabled. Fri Aug 22 08:30:00 PDT 2008 Dan Smith * src/lxc_driver.c: Make sure we cleanup veth devices at shutdown Fri Aug 22 11:49:42 BST 2008 Daniel P. Berrange * python/libvir.py: Use libvirt error message as exception message for improved diagnostics Fri Aug 22 10:30:42 CEST 2008 Jim Meyering configure.in: link with -lpthread when necessary * configure.in: Explicitly add -lpthread to $LIBS. With an empty "ACTION_IF_FOUND", AC_CHECK_LIB would have done that for us automatically, but when there is an explicit third argument, those commands are run instead of the default. Reported by Jun Koi . Thu Aug 21 21:29:28 CEST 2008 Jim Meyering autobuild.sh: Fix minor shell-quoting bugs. * autobuild.sh: Remove unnecessary quotes. Don't choke on a file name argument containing a space. Don't misbehave for $AUTOBUILD_INSTALL_ROOT containing a shell meta-character. Wed Aug 21 11:14:09 BST 2008 Daniel P. Berrange * src/remote_internal.c: Clarify error messages from various failures while opening a connection Wed Aug 21 11:09:09 BST 2008 Daniel P. Berrange * src/libvirt.c: Propagate error from virConnect to global error object for virConnectOpen() failures Wed Aug 21 10:28:09 BST 2008 Daniel P. Berrange * libvirt.spec.in: Add libvirt_lxc to spec file and conditionals for lxc/openvz drivers which are now on by default Wed Aug 21 09:52:09 BST 2008 Daniel P. Berrange * src/lxc_controller.h: Remove now unused file Wed Aug 20 21:50:09 BST 2008 Daniel P. Berrange * src/domain_conf.c: Include PTY name if available * src/Makefile.am: Add lxc_controller binary * src/lxc_conf.c, src/lxc_conf.h, src/lxc_controller.c, src/lxc_controller.h, src/lxc_driver.c: Move LXC controller into a properly exec'd binary, instead of fork'd child of libvirtd daemon Wed Aug 20 21:05:09 BST 2008 Daniel P. Berrange * configure.in, qemud/Makefile.am, src/Makefile.am: Use automake conditions when deciding which files to include in build * src/bridge.c, src/bridge.h, src/conf.h, src/console.h, src/driver.h, src/hash.h, src/internal.h, src/libvirt.c, src/lxc_conf.c, src/lxc_conf.h, src/lxc_container.c, src/lxc_container.h, src/lxc_driver.c, src/lxc_driver.h, src/nodeinfo.h, src/openvz_conf.c, src/openvz_driver.c, src/proxy_internal.c, src/proxy_internal.h, src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c, src/qemu_driver.h, src/remote_internal.h, src/test.c, src/test.h, src/veth.c, 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/xs_internal.c, src/xs_internal.h tests/testutils.h: Remove preprocessor conditions for driver compilation. Remove unneccessary "extern C" declarations. Wed Aug 20 20:42:09 BST 2008 Daniel P. Berrange * src/util.c, src/util.h: Add convenience APIs for stripping a file extension * src/domain_conf.c, src/domain_conf.h, src/lxc_driver.c, src/qemu_driver.c: Remove fixed configfile/autostartlink fields in virDomainObjPtr. Generate paths on-demand at time of use Wed Aug 20 15:42:09 CEST 2008 Daniel Veillard * src/openvz_conf.c src/openvz_driver.c: patch from Evgeniy Sokolov to limit the number of CPUs used by OpenVZ domains. Wed Aug 20 15:31:47 CEST 2008 Daniel Veillard * src/storage_backend_logical.c: Patch from Cole Robinson, fix creating and cleaning up logical volumes if a target path is specified. Wed Aug 20 15:18:54 CEST 2008 Daniel Veillard * src/parthelper.c: Patch from Cole Robinson, fix size reporting for disks without partitions. Wed Aug 20 15:11:57 CEST 2008 Daniel Veillard * configure.in libvirt.spec.in docs/Makefile.am: fix the problem of HTML generation in the absence of XHTML1 DTDs in the system catalog. Wed Aug 20 14:49:29 CEST 2008 Daniel Veillard * src/network_conf.c src/network_conf.h src/qemu_driver.c: allow to add static host definition for dnsmasq Wed Aug 20 10:16:54 BST 2008 Daniel P. Berrange * src/util.c, src/util.h: Allow flags to be passed to specify non-blocking, or daemon mode * src/qemu_driver.c, src/openvz_driver.c, src/storage_backend.c: Switch to virExec() with VIR_EXEC_NONBLOCK flag Wed Aug 20 09:59:54 BST 2008 Daniel P. Berrange * src/util.c: Allow a pre-opened FD to be passed in for childs stdout/err * src/openvz_driver.c, src/qemu_driver.c: Initialize FDs to -1 before calling virExec() Wed Aug 20 09:35:33 BST 2008 Daniel P. Berrange Avoid signal race in virExec() * src/util.c: Block signals when forking and clear child's signal handlers. * src/remote_protocol.{c,h,x}: Add config.h include file * src/internal.h: define pthread_sigmask interms of sigprocmask for non-pthreads systems Wed Aug 20 09:28:33 BST 2008 Daniel P. Berrange * src/util.c: Re-arrange virExec() to improve error reporting Mon Aug 18 10:22:33 BST 2008 Daniel P. Berrange * src/libvirt.c: Remove duplicate call to virInitialize() in virStateInitialize spotted by Nguyen Anh Quynh Fri Aug 15 11:00:38 IST 2008 Mark McLoughlin * src/qemu_conf.c: fix serial/telnet to use "server" option rather than "listen" * tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args: fix the test case too Fri Aug 15 10:34:24 JST 2008 Atsushi SAKAI * src/virsh.c: fix typo from John Levon * src/domain_conf.c, src/openvz_driver.c, src/qemu_driver.c:fix typos Thu Aug 14 10:06:36 BST 2008 Daniel Berrange * po/POTFILES.in: Add lxc_controller.c, remove lxc_conf.c Wed Aug 13 13:40:36 BST 2008 Daniel Berrange * src/lxc_conf.c, src/lxc_conf.h: Remove all domain XML parsing / formatting methods, and all helpers for loading and saving files on disk. Added capabilities data object * src/lxc_container.c, src/lxc_container.h, src/lxc_driver.c, src/lxc_controller.h, src/lxc_controller.c: Switch over to use generic domain XML processing APIs. Wed Aug 13 11:48:36 BST 2008 Daniel Berrange * configure.in: Add check for termios.h * src/util.h, src/util.c: Add virFileOpenTty and helpers for creating/deleting/reading PID files * src/lxc_conf.h, src/lxc_conf.c, src/lxc_container.c, src/lxc_container.h, src/lxc_controller.c, src/lxc_controller.h, src/lxc_driver.c: Re-arrange container launch process so that the I/O helper is a direct parent of the container process. Daemonize container so it survives restarts of libvirtd. Wed Aug 13 11:23:36 BST 2008 Daniel Berrange Re-arrange code between LXC driver files * src/lxc_container.c, src/lxc_container.h, src/lxc_controller.h, src/lxc_container.c, src/lxc_driver.c: Move code for I/O handling into a seprate lxc_controller module, and move code for creating containers into lcx_container module. Wed Aug 13 10:55:36 BST 2008 Daniel Berrange * src/lxc_conf.h, src/lxc_conf.c, src/lxc_container.h, src/lxc_container.c, src/lxc_driver.c: Don't store socket or tty state in lxc_vm_t struct. Pass it around as args to functions when needed Wed Aug 13 11:43:36 CEST 2008 Daniel Veillard * docs/storage.html[.in] src/storage_backend_disk.c: revert previous msdos patch and apply new one from Cole Robinson Tue Aug 12 19:37:23 CEST 2008 Jim Meyering rewrite virFileLinkPointsTo * src/util.c (SAME_INODE): Define. (virFileLinkPointsTo): Rewrite to be more portable and more efficient. Tue Aug 12 13:28:09 CEST 2008 Daniel Veillard * src/storage_backend_disk.c: make sure parted doesn't ask confirmation, patch by Cole Robinson Tue Aug 12 13:20:07 CEST 2008 Daniel Veillard * docs/storage.html[.in] src/storage_backend_disk.c: patch from Cole Robinson to rename the disk type from 'dos' to 'msdos' Tue Aug 12 17:30:50 JST 2008 Atsushi SAKAI * src/domain_conf.h src/qemu_driver.c: name changing of stdin, stdout, stderr to add _fd for compilation on MinGW Tue Aug 12 17:20:36 JST 2008 Atsushi SAKAI * src/domain.conf.c src/network_conf.c src/util.c src/virsh.c tests/testutilsxen.c: fix compilation for MinGW Tue Aug 12 10:09:23 CEST 2008 Daniel Veillard * python/generator.py: patch from Cole Robinson trying to fix problem of connection lookup when creating storage instances Tue Aug 12 10:04:33 CEST 2008 Daniel Veillard * po/*: regeneration of pot file, updates of .po Tue Aug 12 09:27:03 CEST 2008 Daniel Veillard * docs/formatdomain.html docs/formatdomain.html.in: documentation for the USB format option by Guido Günther Mon Aug 11 14:29:02 CEST 2008 Jim Meyering tests: append a newline to expected-output files lacking NL-at-EOF * tests/qemuxml2argvtest.c (testCompareXMLToArgvFiles): Adjust the code that creates "actual" output, so that it too produces a newline-terminated buffer. * tests/qemuxml2argvdata/*.args: Append a newline to each, via: for i in $(find|grep '\.args$'); do echo >> $i;done Fri Aug 8 16:41:24 BST 2008 Daniel Berrange * src/iptables.c, src/lxc_driver.c, src/openvz_driver.c, src/qemu_conf.c, src/qemu_conf.h, src/qemu_driver.c, src/storage_backend.c, src/storage_backend_disk.c, src/storage_backend_fs.c, src/storage_backend_iscsi.c, src/storage_backend_logical.c, src/util.c, src/util.h, src/veth.c, tests/qemuxml2argvtest.c: Fix const-correctness of virRun and virExec, and remove unneccessary casts in callers Fri Aug 8 16:53:24 CEST 2008 Daniel Veillard * src/domain_conf.c src/domain_conf.h src/qemu_conf.c src/qemu_driver.c: patch from Guido Günther allowing to add disk as USB devices * docs/libvirt.rng: extend the schemas for the new value * tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args tests/qemuxml2argvdata/qemuxml2argv-disk-usb.xml tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: add a specific test to the regression suite Fri Aug 8 16:15:55 CEST 2008 Daniel Veillard * src/domain_conf.c src/domain_conf.h src/qemu_conf.c src/qemu_driver.c: Patch from Guido Günther allowing to pass usb devices to qemu/kvm * docs/libvirt.rng: add the new functionality to the grammar * tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.xml tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.xml tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c: adding examples to the regression tests * libvirt.spec.in: fix the licence tag Fri Aug 8 19:18:43 JST 2008 Atsushi SAKAI * docs/formatdomain.html docs/formatdomain.html.in docs/java.html docs/java.html.in: fix typos Thu Aug 7 19:47:40 CEST 2008 Daniel Veillard * tests/domainschematest: patch from Guido Günther to fix RNG checking in out of tree builds. Thu Aug 7 06:32:05 PDT 2008 Dan Smith * src/veth.c: Fix assigned device name clash Wed Aug 7 15:02:06 CEST 2008 Jim Meyering add the mkstemp module from gnulib * bootstrap (modules): Add mkstemp. The remainder of these changes are the result of running ./bootstrap, adding new files, and committing the result. * gnulib/lib/gettimeofday.c: New file. * gnulib/lib/mkstemp.c: New file. * gnulib/lib/tempname.c: New file. * gnulib/lib/tempname.h: New file. * gnulib/m4/gettimeofday.m4: New file. * gnulib/m4/mkstemp.m4: New file. * gnulib/m4/tempname.m4: New file. * gnulib/tests/test-gettimeofday.c: New file. * gnulib/lib/Makefile.am: Update. * gnulib/m4/gnulib-cache.m4: Likewise. * gnulib/m4/gnulib-comp.m4: Likewise. * gnulib/m4/inet_pton.m4: Likewise. * gnulib/tests/Makefile.am: Likewise. Thu Aug 7 12:21:31 CEST 2008 Daniel Veillard * src/bridge.c: fix a build failure on RHEL4 Wed Aug 7 13:30:44 CEST 2008 Jim Meyering update from gnulib: portability and bug fixes * build-aux/mktempd: * build-aux/useless-if-before-free: * build-aux/vc-list-files: * gnulib/lib/.cvsignore: * gnulib/lib/Makefile.am: * gnulib/lib/poll.c: * gnulib/lib/stdbool.in.h: * gnulib/lib/stdio-impl.h: * gnulib/lib/stdio.in.h (vasprintf, obstack_printf) (obstack_vprintf): * gnulib/lib/vasnprintf.c (_GNU_SOURCE, sprintf, IF_LINT, exp) (remainder, scale10_round_decimal_long_double) (scale10_round_decimal_double, pad_ourselves): * gnulib/m4/gnulib-cache.m4: * gnulib/m4/gnulib-common.m4 (gl_MODULE_INDICATOR): * gnulib/m4/gnulib-tool.m4 (gl_LOCAL_DIR, gl_M4_BASE, gl_PO_BASE) (gl_DOC_BASE, gl_TESTS_BASE, gl_WITH_TESTS, gl_LIB, gl_LGPL) (gl_MAKEFILE_NAME, gl_MACRO_PREFIX, gl_PO_DOMAIN, gl_VC_FILES): * gnulib/m4/lock.m4 (gl_LOCK_EARLY_BODY, gl_PREREQ_LOCK) (gl_DISABLE_THREADS): * gnulib/m4/onceonly.m4: * gnulib/m4/posix-shell.m4 (gl_POSIX_SHELL): * gnulib/m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): * gnulib/tests/test-getaddrinfo.c (ENABLE_DEBUGGING, dbgprintf) (simple): * gnulib/tests/test-stdint.c (UINTMAX_MAX, or): * gnulib/tests/test-vc-list-files-cvs.sh: * gnulib/tests/test-vc-list-files-git.sh: complete the MinGW inet_pton portability fix * gnulib/m4/inet_pton.m4: New file. Required for MinGW. * gnulib/m4/gnulib-comp.m4: Regenerate via gnulib-tool. Tue Aug 6 13:30:44 CEST 2008 Jim Meyering fix failing "make syntax-check" * src/stats_linux.c: Don't include no longer used. work around MinGW build failure due to its lack of inet_aton Use inet_pton instead; pull in gnulib's module by the same name. * src/network_conf.c (virNetworkDefParseXML): Use inet_pton, rather than inet_aton. * bootstrap (modules): Add inet_pton. * gnulib/lib/inet_pton.c: New file, from gnulib. Wed Aug 6 13:36:29 CEST 2008 Daniel Veillard * docs/formatdomain.html docs/formatdomain.html.in: fix memory unit as pointed out by matthew chan it's kilobytes Wed Aug 6 13:24:00 CEST 2008 Chris Lalancette * src/xend_internal.c: Oops. My bug fix from yesterday broke the regressions suite. We do actually need "(device" on the front of the sexpr, but only if we are first creating the domain, not when we are attaching a new disk. This patch fixes it by adding a flag that we check, and allows the regression suite to pass. Tue Aug 5 18:43:00 CEST 2008 Chris Lalancette * src/xend_internal.c: Fix three bugs related to virsh attach-disk: a) make sure to break in the xenDaemonAttachDevice() in the switch b) convert a stray fprintf to a virXendError() c) remove an additional "(device" on the front of the sexpr expression passed to xend. This actually fixes virsh attach-disk and virsh attach-interface work with Xen again Tue Aug 5 18:36:00 CEST 2008 Chris Lalancette * src/stats_linux.c tests/statstest.c: Update the parsing of disks for xen block statistics. In particular, add support for > 16 xvd devices recently put into upstream Xen, and fix up the test suite to fix some wrong tests and add a couple more. Tue Aug 5 12:51:11 CEST 2008 Daniel Veillard * src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: patch from Evgeniy Sokolov saving the UUID when creating or defining a domain. Tue Aug 5 10:43:42 CEST 2008 Jim Meyering make distclean: remove generated source files * src/Makefile.am (DISTCLEANFILES): Define to $(BUILT_SOURCES) so "make distcheck" passes. Mon Aug 4 15:30:02 JST 2008 Atsushi SAKAI * src/xend_internal.c: Replace TAB to space. Fri Aug 1 15:28:00 BST 2008 Richard W.M. Jones 'virsh edit' and related commands * src/virsh.c: Implement 'virsh edit', 'virsh net-edit' and 'virsh pool-edit' commands. These edit the XML for domains, networks and storage pools respectively, and are the equivalent of doing 'virsh dumpxml; vi foo.xml; virsh define' * src/Makefile.am, src/.cvsignore: Auto-generate the net-edit and pool-edit commands. * docs/virsh.pod: Updated the documentation. Fri Aug 1 15:15:00 BST 2008 Daniel P. Berrange * src/domain_conf.c: Ensure new VM state is initialized to be SHUTOFF, rather than NOSTATE. Fri Aug 1 15:51:04 CEST 2008 Jim Meyering * virsh.c: more const-correctness fixes * xend_internal.c, sexpr.c: Likewise. Fri Aug 1 13:57:00 BST 2008 Daniel P. Berrange * src/domain_conf.h, src/domain_conf.c, docs/libvirt.rng: Add support for an element in block, and device type, and 'exe' OS type. * tests/domainschematest: Check domainschemadata directory for XML files * tests/domainschemadata/domain-lxc-simple.xml: Simple example for LXC driver to validate Fri Aug 1 13:54:00 BST 2008 Daniel P. Berrange * src/qemu_driver.c: Always set forward-delay even if zero because the kernel defaults to 15 seconds which is too long Fri Aug 1 13:19:00 BST 2008 Richard W.M. Jones Const-correctness fixes in virsh.c * src/virsh.c: Const-correctness. Fri Aug 1 12:24:44 BST 2008 Richard W.M. Jones Link to "how to contribute to open source" * HACKING: Link to external document which describes how to contribute to open source projects. Fri Aug 1 13:20:44 CEST 2008 Daniel Veillard * src/qemu_driver.c: patch from Chris Lalancette adding missing carriage returns to logs Fri Aug 1 11:50:00 BST 2008 Daniel P. Berrange * docs/libvirt.rng: Add missing xenfv machine type * tests/Makefile.am, tests/domainschematest: Added test case to validate all domain XML files in tests/ directory against RNG schema Fri Aug 1 10:38:00 BST 2008 Richard W.M. Jones Improve error messages when XML is not well-formed. * src/domain_conf.c, src/network_conf.c, src/storage_conf.c: Improve error messages from commands such as 'virsh define' when the XML is not well-formed by passing libxml2 errors back out through virterror. Fri Aug 1 08:40:48 CEST 2008 Daniel Veillard * docs/formatdomain.html docs/formatdomain.html.in docs/libvirt-api.xml docs/libvirt-refs.xml docs/html/libvirt-libvirt.html src/libvirt.c: fixed somedocs and API entry point descriptions as suggested by Charles Duffy and regenerated the API descriptions. Fri Aug 1 08:22:08 CEST 2008 Daniel Veillard * src/qemu_driver.c: apply patch from Charles Duffy fixing erro messages when trying to crate a domain already defined. Thu Jul 31 15:37:00 BST 2008 Daniel P. Berrange * src/domain_conf.c: fix previous patch to ensure port number is kept as '-1' when autoport is set, and the domain is not running. Thu Jul 31 14:27:00 CEST 2008 Chris Lalancette * src/domain_conf.c: patch from Charles Duffy to make sure we print the "real" vncport if it exists instead of -1. Wed Jul 30 11:18:50 CEST 2008 Daniel Veillard * src/qemu_driver.c: patch from Guido Günther, interface stats should not crash on interfaces without an ifname. Wed Jul 30 10:51:12 CEST 2008 Daniel Veillard * src/storage_backend_logical.c: patch from David Lively fixing small differences of behaviour for 'lvs' and 'vgs' on SLES Wed Jul 30 10:45:41 CEST 2008 Daniel Veillard * qemud/qemud.c: patch from Guido Günther fixing the place where config file check is done. Tue Jul 29 14:08:00 CEST 2008 Chris Lalancette * src/qemu_conf.c: fix empty CD-ROM source device section * tests/qemuxml2argvtest.c, tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-empty.xml, tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-empty.args: Add test for empty source CD-ROM device section Tue Jul 29 10:41:30 CEST 2008 Daniel Veillard * src/openvz_conf.c: fix compilation with new XPath interface signatures * configure.in: build OpenVZ and LXC support by default Mon Jul 28 16:04:58 CEST 2008 Daniel Veillard * src/domain_conf.[ch] src/openvz_conf.[ch] src/openvz_driver.c: patch from Evgeniy Sokolov doing the OpenVZ xml refactoring, still needs to be ported to the new XML parsing code but implements the new format. Mon Jul 28 14:50:55 CEST 2008 Daniel Veillard * src/qemu_driver.c: patch from Guido Günther to make sure create doesn't override an existing domain definition or UUID Fri Jul 25 17:21:27 BST 2008 Daniel P. Berrange * src/domain_conf.c: Fix typos in comments, and the dummy filename passed to xmlReadDoc (patch from Chris Lalancette) Fri Jul 25 17:17:27 BST 2008 Daniel P. Berrange * src/xml.c: Remove now unused c-ctype.h include Fri Jul 25 15:21:27 BST 2008 Daniel P. Berrange * src/xml.c, src/xml.h: Take a virConnectPtr object as param for all methods to allow proper error reporting. * src/lxc_conf.c, src/domain_conf.c, src/network_conf.c, src/storage_conf.c, src/test.c: Pass virConnect object to XML routines Fri Jul 25 15:03:27 BST 2008 Daniel P. Berrange * src/xend_internal.c, src/xend_internal.h: Expose the xenDaemonFormatSxprChr and xenDaemonFormatSxprSound() methods to the XM driver * src/xm_internal.c, src/xm_internal.h: Switch to use new domain APIs for the XML -> config formatter * src/xml.h, src/xml.c: Remove unused Xen specific APIs which now live in xend_internal.c * tests/xmconfigdata/test-fullvirt-usb*.cfg: Add an explicit 'usb=1' config setting Fri Jul 25 14:48:27 BST 2008 Daniel P. Berrange * src/xend_internal.c, src/xend_internal.h: Remove the sound_string_to_xml() and make xenDaemonParseSxprChar non-static * src/xm_internal.c: Switch config -> XML parser to use the new domain APIs Fri Jul 25 14:29:27 BST 2008 Daniel P. Berrange Prepare xm_internal driver for new domain XML apis. * src/xm_internal.c, src/xm_internal.h: Track internal domain objects as virDomainDefPtr instead