]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/log
people/liuw/libxenctrl-split/libvirt.git
16 years agoFix QEMU domain creation by allowing virExec to preserve certain FDs
Daniel P. Berrange [Wed, 27 Aug 2008 11:42:52 +0000 (11:42 +0000)]
Fix QEMU domain creation by allowing virExec to preserve certain FDs

16 years agoFix EOF handling when reading openvz domain list
Daniel P. Berrange [Wed, 27 Aug 2008 11:21:01 +0000 (11:21 +0000)]
Fix EOF handling when reading openvz domain list

16 years agoRemove use of virState apis from openvz driver
Daniel P. Berrange [Wed, 27 Aug 2008 11:19:45 +0000 (11:19 +0000)]
Remove use of virState apis from openvz driver

16 years ago[LXC] Cleanup devices on container shutdown
Dan Smith [Fri, 22 Aug 2008 15:35:37 +0000 (15:35 +0000)]
[LXC] Cleanup devices on container shutdown

16 years agoUse libvirt error message for python exceptions
Daniel P. Berrange [Fri, 22 Aug 2008 10:50:18 +0000 (10:50 +0000)]
Use libvirt error message for python exceptions

16 years agoconfigure.in: link with -lpthread when necessary
Jim Meyering [Fri, 22 Aug 2008 08:32:58 +0000 (08:32 +0000)]
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 <junkoi2004@gmail.com>.

16 years agoautobuild.sh: Fix minor shell-quoting bugs.
Jim Meyering [Thu, 21 Aug 2008 19:31:55 +0000 (19:31 +0000)]
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.

16 years agoForgotten ChangeLog entry
Mark McLoughlin [Thu, 21 Aug 2008 11:51:27 +0000 (11:51 +0000)]
Forgotten ChangeLog entry

16 years agoImprove error reporting from remote driver
Daniel P. Berrange [Thu, 21 Aug 2008 10:14:54 +0000 (10:14 +0000)]
Improve error reporting from remote driver

16 years agoPropagate virConnectOpen errors to global error object
Daniel P. Berrange [Thu, 21 Aug 2008 10:12:32 +0000 (10:12 +0000)]
Propagate virConnectOpen errors to global error object

16 years agoRemove unused lx_controller.h file
Daniel P. Berrange [Thu, 21 Aug 2008 10:07:21 +0000 (10:07 +0000)]
Remove unused lx_controller.h file

16 years agoAdd libvirt_lxc to file list
Daniel P. Berrange [Thu, 21 Aug 2008 09:28:54 +0000 (09:28 +0000)]
Add libvirt_lxc to file list

16 years agoIgnore libvirt_lxc binary
Daniel P. Berrange [Thu, 21 Aug 2008 09:14:39 +0000 (09:14 +0000)]
Ignore libvirt_lxc binary

16 years agoCreate lxc_controller standalone binary
Daniel P. Berrange [Wed, 20 Aug 2008 20:55:32 +0000 (20:55 +0000)]
Create lxc_controller standalone binary

16 years agoDo conditional driver config in Makefile.am, not source files
Daniel P. Berrange [Wed, 20 Aug 2008 20:48:35 +0000 (20:48 +0000)]
Do conditional driver config in Makefile.am, not source files

16 years agoRemove configFile/autostartLink vars from virDomainObj struct
Daniel P. Berrange [Wed, 20 Aug 2008 19:42:36 +0000 (19:42 +0000)]
Remove configFile/autostartLink vars from virDomainObj struct

16 years agoadd cpu management functionality to OpenVZ driver
Daniel Veillard [Wed, 20 Aug 2008 13:44:03 +0000 (13:44 +0000)]
add cpu management functionality to OpenVZ driver
* src/openvz_conf.c src/openvz_driver.c: patch from Evgeniy Sokolov
  to limit the number of CPUs used by OpenVZ domains.
Daniel

16 years agoFix creating and cleaning up logical volumes if a target path is specified
Daniel Veillard [Wed, 20 Aug 2008 13:33:01 +0000 (13:33 +0000)]
Fix creating and cleaning up logical volumes if a target path is specified
* src/storage_backend_logical.c: Patch from Cole Robinson, fix
  creating and cleaning up logical volumes if a target path is
  specified.
Daniel

16 years agoFix size reporting for disks without partitions.
Daniel Veillard [Wed, 20 Aug 2008 13:20:01 +0000 (13:20 +0000)]
Fix size reporting for disks without partitions.
* src/parthelper.c: Patch from Cole Robinson, fix size reporting for
  disks without partitions.
Daniel

16 years agoHandle HTML generation in the absence of XHTML1 DTDs
Daniel Veillard [Wed, 20 Aug 2008 13:16:29 +0000 (13:16 +0000)]
Handle HTML generation in the absence of XHTML1 DTDs
* configure.in libvirt.spec.in docs/Makefile.am: fix the problem
  of HTML generation in the absence of XHTML1 DTDs in the system
  catalog.
Daniel

16 years ago* src/network_conf.c src/network_conf.h src/qemu_driver.c: allow to
Daniel Veillard [Wed, 20 Aug 2008 12:50:29 +0000 (12:50 +0000)]
* src/network_conf.c src/network_conf.h src/qemu_driver.c: allow to
  add static host definition for dnsmasq
Daniel

16 years agoAllow non-blocking/daemon mode to be specified via virExec flags
Daniel P. Berrange [Wed, 20 Aug 2008 09:24:14 +0000 (09:24 +0000)]
Allow non-blocking/daemon mode to be specified via virExec flags

16 years agoAllow a pre-opened FD to be be pass to virExec for stdout/err
Daniel P. Berrange [Wed, 20 Aug 2008 09:08:17 +0000 (09:08 +0000)]
Allow a pre-opened FD to be be pass to virExec for stdout/err

16 years agoAvoid signal race in virExec
Daniel P. Berrange [Wed, 20 Aug 2008 08:53:49 +0000 (08:53 +0000)]
Avoid signal race in virExec

16 years agoImprove virExec error reporting
Daniel P. Berrange [Wed, 20 Aug 2008 08:30:04 +0000 (08:30 +0000)]
Improve virExec error reporting

16 years agoRemove duplicated call to virInitialize
Daniel P. Berrange [Mon, 18 Aug 2008 09:24:46 +0000 (09:24 +0000)]
Remove duplicated call to virInitialize

16 years agoFri Aug 15 11:00:38 IST 2008 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Fri, 15 Aug 2008 10:02:33 +0000 (10:02 +0000)]
Fri Aug 15 11:00:38 IST 2008 Mark McLoughlin <markmc@redhat.com>

        * 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

16 years agofix typos src/virsh.c from John Levon,
Atsushi SAKAI [Fri, 15 Aug 2008 01:41:49 +0000 (01:41 +0000)]
fix typos src/virsh.c from John Levon,
  and 3 more files(src/domain_conf.c src/openvz_driver.c src/qemu_driver.c)

16 years agoUpdate LXC driver in POTFILES.in
Daniel P. Berrange [Thu, 14 Aug 2008 09:07:18 +0000 (09:07 +0000)]
Update LXC driver in POTFILES.in

16 years agoSwitch LXC driver over to generic domain XML processing APIs
Daniel P. Berrange [Wed, 13 Aug 2008 12:50:55 +0000 (12:50 +0000)]
Switch LXC driver over to generic domain XML processing APIs

16 years agoMake LXC I/O controller process a parent of the container process
Daniel P. Berrange [Wed, 13 Aug 2008 10:52:15 +0000 (10:52 +0000)]
Make LXC I/O controller process a parent of the container process

16 years agoRe-arrange code between LXC driver files
Daniel P. Berrange [Wed, 13 Aug 2008 10:25:34 +0000 (10:25 +0000)]
Re-arrange code between LXC driver files

16 years agoRefactor LXC driver to pass tty/socket state directly
Daniel P. Berrange [Wed, 13 Aug 2008 10:14:47 +0000 (10:14 +0000)]
Refactor LXC driver to pass tty/socket state directly

16 years ago* docs/storage.html[.in] src/storage_backend_disk.c: revert previous
Daniel Veillard [Wed, 13 Aug 2008 09:45:10 +0000 (09:45 +0000)]
* docs/storage.html[.in] src/storage_backend_disk.c: revert previous
  msdos patch and apply new one from Cole Robinson
daniel

16 years agorewrite virFileLinkPointsTo
Jim Meyering [Tue, 12 Aug 2008 17:38:08 +0000 (17:38 +0000)]
rewrite virFileLinkPointsTo

* src/util.c (SAME_INODE): Define.
(virFileLinkPointsTo): Rewrite to be more portable and more efficient.

16 years agomake sure parted doesn't ask for confirmation
Daniel Veillard [Tue, 12 Aug 2008 11:29:49 +0000 (11:29 +0000)]
make sure parted doesn't ask for confirmation
* src/storage_backend_disk.c: make sure parted doesn't ask
  confirmation,  patch by Cole Robinson
Daniel

16 years agorename the disk type from 'dos' to 'msdos'
Daniel Veillard [Tue, 12 Aug 2008 11:26:00 +0000 (11:26 +0000)]
rename the disk type from 'dos' to 'msdos'
* docs/storage.html[.in] src/storage_backend_disk.c: patch from
  Cole Robinson to rename the disk type from 'dos' to 'msdos'
Daniel

16 years agoadd _fd to stdin, stderr stdout in struct virDomainObj for compilation on MinGW
Atsushi SAKAI [Tue, 12 Aug 2008 08:38:22 +0000 (08:38 +0000)]
add _fd to stdin, stderr stdout in struct virDomainObj for compilation on MinGW

16 years agofix compilation for MinGW
Atsushi SAKAI [Tue, 12 Aug 2008 08:25:48 +0000 (08:25 +0000)]
fix compilation for MinGW

16 years agoFix connection lookup in python storage instances
Daniel Veillard [Tue, 12 Aug 2008 08:11:09 +0000 (08:11 +0000)]
Fix connection lookup in python storage instances
* python/generator.py: patch from Cole Robinson trying to fix
  problem of connection lookup when creating storage instances
Daniel

16 years ago* po/*: regeneration of pot file, updates of .po
Daniel Veillard [Tue, 12 Aug 2008 08:05:36 +0000 (08:05 +0000)]
* po/*: regeneration of pot file, updates of .po
Daniel

16 years agodocumentation for USB passthrough
Daniel Veillard [Tue, 12 Aug 2008 07:28:28 +0000 (07:28 +0000)]
documentation for USB passthrough
* docs/formatdomain.html docs/formatdomain.html.in: documentation
  for the USB format option by Guido Günther
daniel

16 years agotests: append a newline to expected-output files lacking NL-at-EOF
Jim Meyering [Mon, 11 Aug 2008 12:29:58 +0000 (12:29 +0000)]
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

16 years agoFix const-correctness of virRUn and virExec
Daniel P. Berrange [Fri, 8 Aug 2008 15:43:38 +0000 (15:43 +0000)]
Fix const-correctness of virRUn and virExec

16 years agollow to add a disk as an USB device (QEmu/KVM)
Daniel Veillard [Fri, 8 Aug 2008 15:03:00 +0000 (15:03 +0000)]
llow to add a disk as an USB device (QEmu/KVM)
* 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
Daniel

16 years agoExtend parser and add support for USB devices in QEmu/KVM
Daniel Veillard [Fri, 8 Aug 2008 14:27:05 +0000 (14:27 +0000)]
Extend parser and add support for USB devices in QEmu/KVM
* 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
Daniel

16 years agofix typos in docs
Atsushi SAKAI [Fri, 8 Aug 2008 10:24:14 +0000 (10:24 +0000)]
fix typos in docs
docs/formatdomain.html docs/formatdomain.html.in docs/java.html docs/java.html.in

16 years ago* tests/domainschematest: patch from Guido Günther to fix RNG checking
Daniel Veillard [Thu, 7 Aug 2008 17:52:16 +0000 (17:52 +0000)]
* tests/domainschematest: patch from Guido Günther to fix RNG checking
  in out of tree builds.
daniel

16 years agoFix device name clash in src/veth.c
Dan Smith [Thu, 7 Aug 2008 13:34:17 +0000 (13:34 +0000)]
Fix device name clash in src/veth.c

16 years agoadd the mkstemp module from gnulib
Jim Meyering [Thu, 7 Aug 2008 13:02:45 +0000 (13:02 +0000)]
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.

16 years ago* src/bridge.c: fix a build failure on RHEL4
Daniel Veillard [Thu, 7 Aug 2008 10:22:52 +0000 (10:22 +0000)]
* src/bridge.c: fix a build failure on RHEL4
Daniel

16 years agoupdate from gnulib
Jim Meyering [Thu, 7 Aug 2008 09:42:29 +0000 (09:42 +0000)]
update from gnulib

* build-aux/mktempd (rand_bytes, mktempd):
* build-aux/useless-if-before-free (FILE):
* build-aux/vc-list-files:
* gnulib/lib/.cvsignore:
* gnulib/lib/Makefile.am:
* gnulib/lib/poll.c (poll):
* gnulib/lib/stdbool.in.h (_GL_STDBOOL_H, true):
* gnulib/lib/stdio-impl.h (fp_, fp_ub):
* 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 (compare):
* gnulib/tests/test-vc-list-files-git.sh (compare):

16 years agocomplete the MinGW inet_pton portability fix
Jim Meyering [Thu, 7 Aug 2008 09:36:49 +0000 (09:36 +0000)]
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.

16 years agofix failing "make syntax-check"
Jim Meyering [Wed, 6 Aug 2008 13:07:55 +0000 (13:07 +0000)]
fix failing "make syntax-check"

* src/stats_linux.c: Don't include <c-ctype.h> no longer used.

16 years agowork around MinGW build failure due to its lack of inet_aton
Jim Meyering [Wed, 6 Aug 2008 12:08:49 +0000 (12:08 +0000)]
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.

16 years ago* docs/formatdomain.html docs/formatdomain.html.in: fix memory unit
Daniel Veillard [Wed, 6 Aug 2008 11:37:53 +0000 (11:37 +0000)]
* docs/formatdomain.html docs/formatdomain.html.in: fix memory unit
  as pointed out by matthew chan it's kilobytes
Daniel

16 years agoDanB pointed out that my sexpr xend_internal patch from yesterday broke one of
Chris Lalancette [Wed, 6 Aug 2008 11:26:47 +0000 (11:26 +0000)]
DanB pointed out that my sexpr xend_internal patch from yesterday broke one of
the regression tests.  The problem is that the xenDaemonFormatSxpr{Disk,Net}
functions are shared between domain creation time and attaching disk time.
Unfortunately, though, Xend expects something different during these two times.
 During domain creation time, it wants the "(device" in front of the sexpr,
while during attach time it does not.  To remedy this situation, I added a flag
to these two functions to differentiate between these two modes.  With this
patch in place, all of the regression tests pass.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoWith the recent refactoring of the domain code, plus the changes with the Xend
Chris Lalancette [Tue, 5 Aug 2008 16:45:07 +0000 (16:45 +0000)]
With the recent refactoring of the domain code, plus the changes with the Xend
code, a couple of bugs were introduced into the attach-disk and attach-interface
functionality.  This patch fixes 3 bugs:

1)  In xenDaemonAttachDevice(), there is a switch statement to determine which
of the xenDaemonFormatSxpr{Disk,Net} functions to call.  Unfortunately, the case
statements are all missing the corresponding "break", so we always fall-through
to the default error case.  This patch just adds the appropriate break statements.

2)  (minor) In xenDaemonDomainDefineXML (that's a mouthful!), there is a stray
"fprintf".  This is now converted to a proper virXendError().

3)  xenDaemonFormatSxpr{Disk,Net} were adding an extra (device to the front of
the sexpr expressions that xend did not expect (this is Xend on RHEL 5.2).
Because of this, the attaches would fail.  The patch fixes this by removing the
(device from the front, which makes attach-disk and attach-interface work again.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoRecently upstream Xen added support for having xvd devices > 16. For the most
Chris Lalancette [Tue, 5 Aug 2008 16:38:49 +0000 (16:38 +0000)]
Recently upstream Xen added support for having xvd devices > 16.  For the most
part, this doesn't really concern libvirt, since for things like attach and
detach we just pass it through and let xend worry about whether it is supported
or not.  The one place this breaks down is in the stats collecting code, where
we need to figure out the device number so we can go digging in /sys for the
statistics.

To remedy this, I've re-written xenLinuxDomainDeviceID() to use regular
expressions to figure out the device number from the name.  The major advantage
is that now xenLinuxDomainDeviceID() looks fairly identical to
tools/python/xen/util/blkif.py (in the Xen sources), so that adding additional
devices in the future should be much easier.  It also reduces the size of the
code, and, in my opinion, the code complexity.

With this patch in place, I was able to get block statistics both on older style
devices (/dev/xvda) and on the new, expanded devices (/dev/xvdaa).

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agosaving UUID of new OpenVZ domains
Daniel Veillard [Tue, 5 Aug 2008 10:53:05 +0000 (10:53 +0000)]
saving UUID of new OpenVZ domains
* 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.
Daniel

16 years agomake distclean: remove generated source files
Jim Meyering [Tue, 5 Aug 2008 08:43:03 +0000 (08:43 +0000)]
make distclean: remove generated source files

* src/Makefile.am (DISTCLEANFILES): Define to $(BUILT_SOURCES)
so "make distcheck" passes.

16 years agofix syntax-check error (replace TAB to space)
Atsushi SAKAI [Mon, 4 Aug 2008 06:33:25 +0000 (06:33 +0000)]
fix syntax-check error (replace TAB to space)

16 years agosrc/xend_internal.c (xenDaemonParseSxpr): Add const to "root" parameter.
Jim Meyering [Fri, 1 Aug 2008 15:32:28 +0000 (15:32 +0000)]
src/xend_internal.c (xenDaemonParseSxpr): Add const to "root" parameter.

This piece was mistakenly omitted from the previous patch.

16 years agoxend_internal.c, sexpr.c: const-correctness fixes
Jim Meyering [Fri, 1 Aug 2008 14:43:12 +0000 (14:43 +0000)]
xend_internal.c, sexpr.c: const-correctness fixes

16 years agoIncorrect attribution.
Richard W.M. Jones [Fri, 1 Aug 2008 14:30:59 +0000 (14:30 +0000)]
Incorrect attribution.

16 years ago'virsh edit' and related commands
Richard W.M. Jones [Fri, 1 Aug 2008 14:30:41 +0000 (14:30 +0000)]
'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.

16 years agoFix initial VM state
Daniel P. Berrange [Fri, 1 Aug 2008 14:19:06 +0000 (14:19 +0000)]
Fix initial VM state

16 years agovirsh.c: more const-correctness fixes
Jim Meyering [Fri, 1 Aug 2008 13:51:18 +0000 (13:51 +0000)]
virsh.c: more const-correctness fixes

16 years agoSupport for container related domain XML extensions
Daniel P. Berrange [Fri, 1 Aug 2008 13:31:37 +0000 (13:31 +0000)]
Support for container related domain XML extensions

16 years agoAlways set forward-delay on bridge, even if 0
Daniel P. Berrange [Fri, 1 Aug 2008 12:56:52 +0000 (12:56 +0000)]
Always set forward-delay on bridge, even if 0

16 years agoConst-correctness fixes in virsh.c
Richard W.M. Jones [Fri, 1 Aug 2008 12:19:56 +0000 (12:19 +0000)]
Const-correctness fixes in virsh.c
* src/virsh.c: Const-correctness.

16 years agoLink to "how to contribute to open source"
Richard W.M. Jones [Fri, 1 Aug 2008 11:25:22 +0000 (11:25 +0000)]
Link to "how to contribute to open source"
* HACKING: Link to external document which describes how to
  contribute to open source projects.

16 years ago* src/qemu_driver.c: patch from Chris Lalancette adding missing
Daniel Veillard [Fri, 1 Aug 2008 11:24:04 +0000 (11:24 +0000)]
* src/qemu_driver.c: patch from Chris Lalancette adding missing
  carriage returns to logs
Daniel

16 years agoAdded test to validate all domain XML files against schema
Daniel P. Berrange [Fri, 1 Aug 2008 10:53:41 +0000 (10:53 +0000)]
Added test to validate all domain XML files against schema

16 years agoImprove error messages when XML is not well-formed.
Richard W.M. Jones [Fri, 1 Aug 2008 09:39:44 +0000 (09:39 +0000)]
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.

16 years ago* docs/formatdomain.html docs/formatdomain.html.in docs/libvirt-api.xml
Daniel Veillard [Fri, 1 Aug 2008 06:42:45 +0000 (06:42 +0000)]
* 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.
Daniel

16 years agoAdding Charles Duffy as author, Daniel
Daniel Veillard [Fri, 1 Aug 2008 06:28:33 +0000 (06:28 +0000)]
Adding Charles Duffy as author, Daniel

16 years ago* src/qemu_driver.c: apply patch from Charles Duffy fixing erro
Daniel Veillard [Fri, 1 Aug 2008 06:23:31 +0000 (06:23 +0000)]
* src/qemu_driver.c: apply patch from Charles Duffy fixing erro
  messages when trying to crate a domain already defined.
Daniel

16 years agoFix autoport when domain is inactive
Daniel P. Berrange [Thu, 31 Jul 2008 14:39:30 +0000 (14:39 +0000)]
Fix autoport when domain is inactive

16 years agoFrom Charles Duffy:
Chris Lalancette [Thu, 31 Jul 2008 12:30:34 +0000 (12:30 +0000)]
From Charles Duffy:

Per subject; if autoport is in use for a host, the current
virDomainGraphicsDefFormat code always emits "port=-1", even if a port
is assigned to the host; this leaves no way for a client to find the VNC
port assigned to the host in question.

This patches fixes it by putting the vncport in place if there is one, and
only putting "-1" if we fail that test.

16 years ago* src/qemu_driver.c: patch from Guido Günther, interface stats should
Daniel Veillard [Wed, 30 Jul 2008 09:20:19 +0000 (09:20 +0000)]
* src/qemu_driver.c: patch from Guido Günther, interface stats should
  not crash on interfaces without an ifname.
Daniel

16 years ago* src/storage_backend_logical.c: patch from David Lively fixing
Daniel Veillard [Wed, 30 Jul 2008 08:52:44 +0000 (08:52 +0000)]
* src/storage_backend_logical.c: patch from David Lively fixing
  small differences of behaviour for 'lvs' and 'vgs' on SLES
Daniel

16 years ago* qemud/qemud.c: patch from Guido Günther fixing the place where
Daniel Veillard [Wed, 30 Jul 2008 08:47:10 +0000 (08:47 +0000)]
* qemud/qemud.c: patch from Guido Günther fixing the place where
  config file check is done.
Daniel

16 years agoThe new generic domain re-factor introduced a small regression into the drive
Chris Lalancette [Tue, 29 Jul 2008 12:09:21 +0000 (12:09 +0000)]
The new generic domain re-factor introduced a small regression into the drive
handling code.  In particular, if you had a section of XML like:

    <disk type='file' device='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>

This used to work with older libvirt, but now fails.  This is because we are
actually passing the literal string (null) to the qemu command-line, which qemu
barfs on.  This patch fixes it up by making it blank, which allows qemu to
continue on it's merry way.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agobuild OpenVZ and LXC support by default, fix OpenVZ build
Daniel Veillard [Tue, 29 Jul 2008 08:42:56 +0000 (08:42 +0000)]
build OpenVZ and LXC support by default, fix OpenVZ build
* src/openvz_conf.c: fix compilation with new XPath interface
  signatures
* configure.in: build OpenVZ and LXC support by default
Daniel

16 years agoOpenVZ xml refactoring
Daniel Veillard [Mon, 28 Jul 2008 14:06:54 +0000 (14:06 +0000)]
OpenVZ xml refactoring
* 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.
Daniel

16 years ago* src/qemu_driver.c: patch from Guido Günther to make sure create
Daniel Veillard [Mon, 28 Jul 2008 12:52:37 +0000 (12:52 +0000)]
* src/qemu_driver.c: patch from Guido Günther to make sure create
  doesn't override an existing domain definition or UUID
Daniel

16 years agoFix misc typos in domain XML handling
Daniel P. Berrange [Fri, 25 Jul 2008 16:25:11 +0000 (16:25 +0000)]
Fix misc typos in domain XML handling

16 years agoRemove unused c-ctype.h include
Daniel P. Berrange [Fri, 25 Jul 2008 16:19:00 +0000 (16:19 +0000)]
Remove unused c-ctype.h include

16 years agoFix reporting of errors against virConnect object in XML apis
Daniel P. Berrange [Fri, 25 Jul 2008 14:27:25 +0000 (14:27 +0000)]
Fix reporting of errors against virConnect object in XML apis

16 years agoSwitch XM config file driver to use new domain APIs for XML to config conversion
Daniel P. Berrange [Fri, 25 Jul 2008 14:10:49 +0000 (14:10 +0000)]
Switch XM config file driver to use new domain APIs for XML to config conversion

16 years agoSwitch XM config file driver to use new domain APIs for XML generation
Daniel P. Berrange [Fri, 25 Jul 2008 13:50:08 +0000 (13:50 +0000)]
Switch XM config file driver to use new domain APIs for XML generation

16 years agoPrepare xm_internal driver for new domain XML apis
Daniel P. Berrange [Fri, 25 Jul 2008 13:39:02 +0000 (13:39 +0000)]
Prepare xm_internal driver for new domain XML apis

16 years agoFix test driver inactive domains and domain ID allocation
Daniel P. Berrange [Fri, 25 Jul 2008 13:27:12 +0000 (13:27 +0000)]
Fix test driver inactive domains and domain ID allocation

16 years agoConvert XenD XML->SEXPR conversion to new domain XML APIs
Daniel P. Berrange [Fri, 25 Jul 2008 13:17:27 +0000 (13:17 +0000)]
Convert XenD XML->SEXPR conversion to new domain XML APIs

16 years agoSkip python bindings for virDomainBlockPeek and virDomainMemoryPeek
Daniel Veillard [Fri, 25 Jul 2008 12:37:06 +0000 (12:37 +0000)]
Skip python bindings for virDomainBlockPeek and virDomainMemoryPeek
* python/generator.py: skip generation for virDomainBlockPeek and
  virDomainMemoryPeek as they break the build
Daniel

16 years agoConvert XenD SEXPR->XML convesion to new domain XML APIs
Daniel P. Berrange [Fri, 25 Jul 2008 10:49:33 +0000 (10:49 +0000)]
Convert XenD SEXPR->XML convesion to new domain XML APIs

16 years agoRemove unused/no-op Xen driver code
Daniel P. Berrange [Fri, 25 Jul 2008 09:51:23 +0000 (09:51 +0000)]
Remove unused/no-op Xen driver code

16 years agoEnable openvz, lxc and xen proxy in automated builds
Daniel P. Berrange [Fri, 25 Jul 2008 09:43:23 +0000 (09:43 +0000)]
Enable openvz, lxc and xen proxy in automated builds

16 years agoMisc bug fixes
Daniel P. Berrange [Fri, 25 Jul 2008 09:31:24 +0000 (09:31 +0000)]
Misc bug fixes