Daniel Veillard [Wed, 5 Apr 2006 09:31:29 +0000 (09:31 +0000)]
* src/hash.c: tiny fix
* src/internal.h: starting to work on reentrancy
* src/libvirt.c: applied patch from Jim Fehlig to fix
virDomainLookupByID when run as root.
Daniel
Daniel Veillard [Mon, 3 Apr 2006 13:46:43 +0000 (13:46 +0000)]
* include/libvirt.h[.in] src/driver.h src/libvirt.c
src/libvirt_sym.version src/*_internal.[ch]: added an entry
point for reboot and corresponding driver plug
* src/virsh.c: added a reboot option using it
* docs/*: regenerated
Daniel
Daniel Veillard [Thu, 30 Mar 2006 16:08:13 +0000 (16:08 +0000)]
* src/virsh.c: allocation check (Jim Meyering) and adding a
new create command
* src/xend_internal.c src/xml.c: trying to cope with the new
xvda domains states generated on FC5, but Dom0 bootloader
really break the model, so that doesn't work.
Daniel
Daniel Veillard [Wed, 29 Mar 2006 13:33:37 +0000 (13:33 +0000)]
* python/libvir.c: fixed a bug in the new wrapper
* python/tests/Makefile.am python/tests/node.py: added a new test for
the new API
* python/tests/create.py: remove a debug
Daniel
Daniel Veillard [Wed, 29 Mar 2006 12:46:03 +0000 (12:46 +0000)]
* include/libvirt.h[.in] include/virterror.h src/driver.h
src/internal.h src/libvirt_sym.version src/xen_internal.c
src/xs_internal.c: added a new entry point to get node hardware
informations virGetNodeInfo, and associated driver hook.
* src/xend_internal.c: implemented the node and version information
hooks for the Xen Daemon
* python/libvir.c python/libvirt-python-api.xml python/generator.py:
also added Python bindings for the new call
Daniel
Daniel Veillard [Tue, 28 Mar 2006 14:41:04 +0000 (14:41 +0000)]
* python/libvir.c: call the initialize entry point
* src/libvirt_sym.version: add initialize entry point
* src/libvirt.c: make sure we always initialize the lib
* python/tests/*.py: start updating exemple for exception
handling as pointed by Jim Meyering
Daniel
Daniel Veillard [Mon, 27 Mar 2006 15:24:36 +0000 (15:24 +0000)]
* doc/*: updated module list and rebuilt
* include/libvirt.h include/libvirt.h.in: added intialization function
* include/virterror.h src/virterror.c: one more error code
* src/internal.h: first part of Jim's format checking
* src/libvirt.c src/xen_internal.[ch] src/xend_internal.[ch]
src/xs_internal.[ch]: initialization and registration of drivers
Daniel
Daniel Veillard [Thu, 23 Mar 2006 15:42:10 +0000 (15:42 +0000)]
* src/xs_internal.c src/xs_internal.h include/virterror.h
src/virterror.c: created a new module related to Xen Store accesses
* src/libvirt.c src/xen_internal.[ch] src/xend_internal.[ch]:
nearly completed the separation of the code from the different modules
Daniel
Daniel Veillard [Mon, 20 Mar 2006 23:42:12 +0000 (23:42 +0000)]
* src/driver.h src/xen_internal.c: just add a driver block for
the Xen hypervisor direct access module. Need to convert
xend_internal.[ch] and make one for the Xenstore now ...
Daniel
Daniel Veillard [Mon, 20 Mar 2006 17:49:28 +0000 (17:49 +0000)]
* src/driver.h src/internal.h src/libvirt.c src/xen_internal.c
src/xen_internal.h docs/apibuild.py: starting the refactoring,
first the direct Xen hypervisor module. New header describing the
entry points of a driver.
Daniel
Daniel Veillard [Wed, 15 Mar 2006 12:13:25 +0000 (12:13 +0000)]
* src/hash.c src/hash.h src/internal.h src/libvirt.c src/sexpr.c
src/sexpr.h src/virsh.c src/virterror.c src/xen_internal.c
src/xen_internal.h src/xend_internal.c src/xend_internal.h
src/xml.c src/xml.h: applied cb/indent to homogenize the source
style, as a first pass.
Daniel
Daniel Veillard [Tue, 28 Feb 2006 12:17:00 +0000 (12:17 +0000)]
* TODO: updated
* python/Makefile.am python/generator.py python/libvir.c
python/libvir.py: improved python binding, raise exception
when an instance creation or lookup fails, and add support
for the global error handler, per conn handler still needed
* python/tests/error.py python/tests/Makefile.am: adding a
regression test
Daniel
Daniel Veillard [Mon, 27 Feb 2006 22:32:54 +0000 (22:32 +0000)]
* TODO: updated, and added python hooks for error handling
* include/virterror.h src/virterror.c src/xml.c: error interception
and reporting should be done.
Daniel
Daniel Veillard [Mon, 27 Feb 2006 21:34:28 +0000 (21:34 +0000)]
* include/virterror.h src/libvirt_sym.version: exported
virDefaultErrorFunc()
* src/sexpr.c src/xen_internal.c src/virterror.c include/virterror.h:
adding more error reporting though the code, nearly complete.
* src/sexpr.c: added specific error function to avoid an error report.
Daniel
Daniel Veillard [Mon, 27 Feb 2006 16:27:18 +0000 (16:27 +0000)]
* TODO: updated
* include/virterror.h src/internal.h src/libvirt.c src/virterror.c
src/xend_internal.c: commiting a first pass at adding error handling
in the code, not finished, but it starts to work, need more coverage
and testing.
Daniel
Daniel Veillard [Fri, 24 Feb 2006 22:36:10 +0000 (22:36 +0000)]
* src/Makefile.am src/internal.h src/libvirt.c src/libvirt_sym.version
src/virterror.c include/Makefile.am include/virterror.h: adding
the public APIs for errors, callbacks and synchronous. The boring
stuff is still left to do, plugging it. Also need to be exposed
at the python level.
* doc//*: rebuilt
Daniel
Daniel Veillard [Fri, 24 Feb 2006 12:26:56 +0000 (12:26 +0000)]
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
UUID strings can contain zeroes, so the autogenerated conversion
functions don't work.
Daniel
Daniel Veillard [Thu, 23 Feb 2006 11:26:17 +0000 (11:26 +0000)]
* src/libvirt.c: fixing a bug before the release of 0.0.5
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
also fixing the binding for getting a domain UUID
* python/tests/Makefile.am python/tests/uuid.py: added a test
for the new UUID API
Daniel
Daniel Veillard [Thu, 23 Feb 2006 10:13:55 +0000 (10:13 +0000)]
* include/libvirt.h[.in] src/libvirt.c src/xend_internal.[ch]
src/libvirt_sym.version: added virDomainLookupByUUID and
virDomainGetUUID to be able to use the persistant UUID names
* docs//*: rebuilt the docs following the API extension
Daniel
Daniel Veillard [Tue, 21 Feb 2006 14:15:32 +0000 (14:15 +0000)]
* Makefile.am: extended make tests to run those in docs/examples
* docs/examples/suspend.c docs/examples/*: added an example of
suspend/resume and regenerated
Daniel
Daniel Veillard [Tue, 21 Feb 2006 13:23:16 +0000 (13:23 +0000)]
* TODO: updated
* python/tests/Makefile.am: fix a small PYTHONPATH bug
* docs//*: fixed the xsl a bit for toc names, added doc for
the python bindings, regenerated
Daniel
Daniel Veillard [Mon, 20 Feb 2006 23:08:47 +0000 (23:08 +0000)]
* src/libvirt.c src/xend_internal.c src/xend_internal.h: move the
XML dump function around to make sure all entry points are centralized
in libvirt.c and also avoid doc generation troubles.
* docs/examples/Makefile.am docs/examples/index.py: fix the makefile
a bit.
* TODO: updated
* docs/format.html: added a description of the XML used for the
domains.
* docs//*: rebuilt
Daniel
Daniel Veillard [Mon, 20 Feb 2006 20:50:48 +0000 (20:50 +0000)]
* docs/examples/examples.xsl docs/examples/index.html
docs/site.xsl: integates the examples page in the web site
* docs//* : fixed generator and rebuilt the docs
* python/tests/basic.py python/tests/create.py: couple cleanups
Daniel
Daniel Veillard [Mon, 20 Feb 2006 17:22:16 +0000 (17:22 +0000)]
* TODO: updated
* include/libvirt.h include/libvirt.h.in: cleanup
* src/libvirt.c: remove debugging output
* src/xend_internal.c src/xml.c src/xml.h: reimplement
virDomainGetXMLDesc() based on xend interface, now work as user too.
Daniel
Daniel Veillard [Fri, 17 Feb 2006 13:18:57 +0000 (13:18 +0000)]
* python/tests/create.py: trying to make test more generic, but it's
difficult since it requires a system image
* src/libvirt.c src/xend_internal.c: fixed the shutdown API which
was broken due to a bad reason at the xend level.
Daniel
Daniel Veillard [Thu, 16 Feb 2006 22:50:52 +0000 (22:50 +0000)]
* configure.in src/Makefile.am: adding dependency to libxml2
* include/libvirt.h* src/libvirt.c src/xend_internal.[ch]
src/xml.[ch]: added XML parsing for Xen domain descriptions
needed for creates, plugged in a converter to s-exp and
xend call. Modified the virDomainCreateLinux() to reflect
that XML based description. Seems to work.
* python/tests/create.py: added a test case which seems to work
not tested much yet
* docs/*: regenerated
Daniel
Daniel Veillard [Tue, 14 Feb 2006 14:30:42 +0000 (14:30 +0000)]
* Makefile.am configure.in python/Makefile.am python/tests/Makefile.am
python/tests/basic.py: added first python test script and
a 'make tests' target
Daniel
Daniel Veillard [Fri, 20 Jan 2006 10:00:08 +0000 (10:00 +0000)]
* include/libvir.h include/libvir.h.in src/libvir.c: revamped the
restore API (though it would be better if it was returning
a domain pointer in case of success)
* src/virsh.c: added save and restore to the commands, tested,
the option handling need work though
Daniel
Daniel Veillard [Thu, 19 Jan 2006 10:23:15 +0000 (10:23 +0000)]
* src/libvir.c src/xend_internal.c src/xend_internal.h: continue
the integration of more xend based accesses, virsh seems to work
without accessing the xen store now.
Daniel
Daniel Veillard [Wed, 18 Jan 2006 10:37:08 +0000 (10:37 +0000)]
* include/libvir.h include/libvir.h.in src/libvir.c: more integration
of libxend capabilities, including checkpointing and restoring
in a file.
* docs//*: regenerated the docs
Daniel
Daniel Veillard [Tue, 17 Jan 2006 16:56:17 +0000 (16:56 +0000)]
* include/libvir.h[.in]: added VIR_DOMAIN_CRASHED status, small
doc fix
* src/virsh.c: fix a integer being formatted as %s in idof
* src/internal.h src/libvir.c src/xend_internal.[ch]: started to
integrated the xend back-end, especially for getting informations
about a domain.
Daniel
Daniel Veillard [Fri, 13 Jan 2006 16:41:01 +0000 (16:41 +0000)]
* include/libvir.h.in include/libvir.h src/internal.h src/libvir.c
src/xend_internal.c src/xend_internal.h: starting to plug the
xend code in, replacing structures mostly, but not finished.
Daniel