]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agoAdd LXC version implementation
Dan Smith [Wed, 3 Sep 2008 17:21:27 +0000 (17:21 +0000)]
Add LXC version implementation

This patch adds an implementation of the version function to the LXC driver.
The providers use the hypervisor version in a field of one of the instances,
so we need to have something meaningful here.  AFAICT, the only real option
we have (considering the limitations of the libvirt version information) is
to use the kernel version.

16 years agoFix qemu media connect/eject to work with latest syntax. Add support for ejecting...
Cole Robinson [Wed, 3 Sep 2008 16:05:25 +0000 (16:05 +0000)]
Fix qemu media connect/eject to work with latest syntax. Add support for ejecting floppy devices and scsi cdroms.

16 years agoUpdate domain xml after usb device hotplug.
Cole Robinson [Wed, 3 Sep 2008 15:05:31 +0000 (15:05 +0000)]
Update domain xml after usb device hotplug.

16 years agoScrap media eject output to try and determine success/fail.
Cole Robinson [Wed, 3 Sep 2008 14:43:34 +0000 (14:43 +0000)]
Scrap media eject output to try and determine success/fail.

16 years agoFix disk ordering and add target duplication checking when parsing domain xml.
Cole Robinson [Wed, 3 Sep 2008 14:30:24 +0000 (14:30 +0000)]
Fix disk ordering and add target duplication checking when parsing domain xml.

16 years agoavoid a segfault on CD eject in KVM/QEmu
Daniel Veillard [Wed, 3 Sep 2008 12:52:27 +0000 (12:52 +0000)]
avoid a segfault on CD eject in KVM/QEmu
* src/qemu_driver.c: patch from Cole Robinson to avoid a segfault
  on KVM CD eject
Daniel

16 years agoadd output on attach and detach success
Daniel Veillard [Wed, 3 Sep 2008 12:38:28 +0000 (12:38 +0000)]
add output on attach and detach success
* src/virsh.c: patch from Cole Robinson to add output on attach
  and detach success
daniel

16 years ago* AUTHORS: add Cole Robinson as commiter
Daniel Veillard [Wed, 3 Sep 2008 12:24:50 +0000 (12:24 +0000)]
* AUTHORS: add Cole Robinson as commiter
daniel

16 years ago* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
Daniel Veillard [Wed, 3 Sep 2008 07:12:37 +0000 (07:12 +0000)]
* src/storage_conf.c: add one missing check in virStoragePoolDefParseDoc
Daniel

16 years ago* src/domain_conf.c: fix a parsing error for input devices
Daniel Veillard [Tue, 2 Sep 2008 15:33:39 +0000 (15:33 +0000)]
* src/domain_conf.c: fix a parsing error for input devices
  patch by Cole Robinson
daniel

16 years agocheck availbility of emulators before reporting them in capabilities
Daniel Veillard [Tue, 2 Sep 2008 15:00:09 +0000 (15:00 +0000)]
check availbility of emulators before reporting them in capabilities
* 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
Daniel

16 years agoAdds storage source element for pools
Daniel Veillard [Tue, 2 Sep 2008 14:15:42 +0000 (14:15 +0000)]
Adds storage source element for pools
* 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
Daniel

16 years agoqemu_conf.c: use new function, virFileReadLimFD
Jim Meyering [Tue, 2 Sep 2008 10:30:40 +0000 (10:30 +0000)]
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.

16 years agoutil.c: add a file-descriptor-based wrapper for fread_file_lim
Jim Meyering [Tue, 2 Sep 2008 10:29:51 +0000 (10:29 +0000)]
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.

16 years agoSwitch over fork/exec code to use virExec
Daniel P. Berrange [Fri, 29 Aug 2008 07:11:15 +0000 (07:11 +0000)]
Switch over fork/exec code to use virExec

16 years agoAllow for private root filessytem in containers using pivot_root
Daniel P. Berrange [Thu, 28 Aug 2008 22:40:50 +0000 (22:40 +0000)]
Allow for private root filessytem in containers using pivot_root

16 years agoFix lookup of xen VM after define (Cole Robinson)
Daniel P. Berrange [Thu, 28 Aug 2008 11:59:07 +0000 (11:59 +0000)]
Fix lookup of xen VM after define (Cole Robinson)

16 years agoimprove parallel build support
Jim Meyering [Thu, 28 Aug 2008 09:08:44 +0000 (09:08 +0000)]
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

16 years agoAdd storage pool source discovery support (patch from David Lively)
Daniel P. Berrange [Wed, 27 Aug 2008 20:05:58 +0000 (20:05 +0000)]
Add storage pool source discovery support (patch from David Lively)

16 years agoFix QEMU domain creation by allowing virExec to preserve certain FDs
Daniel P. Berrange [Wed, 27 Aug 2008 11:44:58 +0000 (11:44 +0000)]
Fix QEMU domain creation by allowing virExec to preserve certain FDs

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.