]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years ago* docs/relatedlinks.html docs/relatedlinks.html.in: add link
Daniel Veillard [Wed, 29 Oct 2008 15:34:12 +0000 (15:34 +0000)]
* docs/relatedlinks.html docs/relatedlinks.html.in: add link
  for AMQP/QPid bindings
daniel

16 years ago* src/domain_conf.h src/qemu_driver.c: patch adding hor removal of
Daniel Veillard [Wed, 29 Oct 2008 14:32:40 +0000 (14:32 +0000)]
* src/domain_conf.h src/qemu_driver.c: patch adding hor removal of
  scsi/virtio disks for KVM, patch by Guido Günther
daniel

16 years agoremove src/socketcompat.h; no longer needed
Jim Meyering [Tue, 28 Oct 2008 19:09:04 +0000 (19:09 +0000)]
remove src/socketcompat.h;  no longer needed

* src/socketcompat.h: Remove file.
* src/remote_internal.c: Don't include socketcompat.h.
* qemud/qemud.h: Likewise.
* qemud/remote_protocol.x: Likewise, but do include <arpa/inet.h>
for htonl.
* src/remote_internal.c: Likewise, but do include <errno.h>.
* qemud/remote_protocol.c: Regenererate.
* qemud/remote_protocol.h: Regenererate.
* src/Makefile.am (REMOTE_DRIVER_SOURCES): Remove socketcompat.h.

16 years agomake generated qemud/*.[ch] files read-only
Jim Meyering [Tue, 28 Oct 2008 17:48:11 +0000 (17:48 +0000)]
make generated qemud/*.[ch] files read-only

* qemud/Makefile.am (.x.c): Rewrite not to write directly to $@,
and to make generated files read-only.
(.x.h): Likewise.

16 years agoavoid compiler warning when all storage backends are disabled
Jim Meyering [Tue, 28 Oct 2008 17:48:06 +0000 (17:48 +0000)]
avoid compiler warning when all storage backends are disabled

* src/storage_backend.c (backends): Add a NULL terminator.
(virStorageBackendForType): Use NULL terminator rather than
warning-provoking (possibly 0) array size.

16 years agoavoid many mingw-specific warnings
Jim Meyering [Tue, 28 Oct 2008 17:48:01 +0000 (17:48 +0000)]
avoid many mingw-specific warnings

* tests/virshtest.c (mymain): Use only one definition of this function.
[WIN32]: Call exit(77) to skip the test.
* tests/nodeinfotest.c: Likewise.

16 years agocvsignore mingw build artifacts: *.exe
Jim Meyering [Tue, 28 Oct 2008 17:47:54 +0000 (17:47 +0000)]
cvsignore mingw build artifacts: *.exe

16 years agoinclude netinet etc #ifndef HAVE_WINSOCK2_H
Jim Meyering [Tue, 28 Oct 2008 17:47:45 +0000 (17:47 +0000)]
include netinet etc #ifndef HAVE_WINSOCK2_H

16 years ago* src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile.
Jim Meyering [Tue, 28 Oct 2008 17:47:40 +0000 (17:47 +0000)]
* src/remote_internal.c (remoteFindDaemonPath) [!WIN32]: Don't compile.

16 years agouse errno, not socket_errno()
Jim Meyering [Tue, 28 Oct 2008 17:47:33 +0000 (17:47 +0000)]
use errno, not socket_errno()

* remote_internal.c: s/socket_errno()/errno/, now that gnulib's
socket module ensures errno is useful in those cases.

16 years agosocketcompat.h: simplify, to match latest gnulib
Jim Meyering [Tue, 28 Oct 2008 17:47:23 +0000 (17:47 +0000)]
socketcompat.h: simplify, to match latest gnulib

Now, sys/socket.h is always available, and errno works.

16 years agoupdates from gnulib
Jim Meyering [Tue, 28 Oct 2008 17:47:12 +0000 (17:47 +0000)]
updates from gnulib

16 years agouse more gnulib modules
Jim Meyering [Tue, 28 Oct 2008 17:46:07 +0000 (17:46 +0000)]
use more gnulib modules

* bootstrap: use more gnulib modules: close, connect, perror, recv,
send, socket setsockopt, gethostname.

16 years agoadapt to API change in gnulib
Jim Meyering [Tue, 28 Oct 2008 17:46:00 +0000 (17:46 +0000)]
adapt to API change in gnulib

* qemud/qemud.c: Include <netdb.h>, not "getaddrinfo.h"
* src/remote_internal.c: Likewise.

16 years ago* src/network_conf.c: Include <string.h> for declaration of memcmp.
Jim Meyering [Tue, 28 Oct 2008 17:45:41 +0000 (17:45 +0000)]
* src/network_conf.c: Include <string.h> for declaration of memcmp.

16 years agouse ARRAY_CARDINALITY more
Jim Meyering [Tue, 28 Oct 2008 17:43:24 +0000 (17:43 +0000)]
use ARRAY_CARDINALITY more

* tests/nodeinfotest.c: Include "util.h".
* src/xen_internal.c: Likewise.
* src/qemu_conf.c (qemudCapsInit): Use ARRAY_CARDINALITY.
* src/storage_backend.c (virStorageBackendForType): Likewise.
* src/storage_backend_fs.c (virStorageBackendProbeFile): Likewise.
* src/xen_internal.c (xenHypervisorMakeCapabilitiesInternal): Likewise.
* src/xend_internal.c (xenDaemonParseSxpr): Likewise.
* tests/nodeinfotest.c (mymain): Likewise.
* tests/qparamtest.c (DO_TEST): Likewise.

16 years agoexempt gnulib from write-avoidance syntax check
Jim Meyering [Tue, 28 Oct 2008 17:42:41 +0000 (17:42 +0000)]
exempt gnulib from write-avoidance syntax check

16 years agoexempt gnulib from ctype-macros prohibition
Jim Meyering [Tue, 28 Oct 2008 17:36:31 +0000 (17:36 +0000)]
exempt gnulib from ctype-macros prohibition

Author: Jim Meyering <meyering@redhat.com>

16 years agoRemove use of sys/poll.h on mingw
Daniel P. Berrange [Fri, 24 Oct 2008 13:10:30 +0000 (13:10 +0000)]
Remove use of sys/poll.h on mingw

16 years agoFix syntax check errors
Daniel P. Berrange [Fri, 24 Oct 2008 12:05:39 +0000 (12:05 +0000)]
Fix syntax check errors

16 years agoImplement getVersion API for openvz driver
Daniel P. Berrange [Fri, 24 Oct 2008 11:32:48 +0000 (11:32 +0000)]
Implement getVersion API for openvz driver

16 years agoFix mingw build due to missing icons in tar.gz
Daniel P. Berrange [Fri, 24 Oct 2008 11:31:15 +0000 (11:31 +0000)]
Fix mingw build due to missing icons in tar.gz

16 years agoCentralize domain mac address handling in domain_conf.c/util.c
Daniel P. Berrange [Fri, 24 Oct 2008 11:20:08 +0000 (11:20 +0000)]
Centralize domain mac address handling in domain_conf.c/util.c

16 years agofix mingw compilation warning
Jim Meyering [Fri, 24 Oct 2008 08:55:13 +0000 (08:55 +0000)]
fix mingw compilation warning

* src/libvirt.c (winsock_init) [HAVE_WINSOCK2_H]: Always return a value.

16 years agoBrown paper bag bug. I didn't preserve the
Chris Lalancette [Thu, 23 Oct 2008 13:21:01 +0000 (13:21 +0000)]
Brown paper bag bug.  I didn't preserve the
<sources> tags properly, and I didn't put the <source> tag into the
proper place, so I totally changed the output of the discovery XML.
Fix this up to do the right thing.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoMassive patch adding event APIs by Ben Guthro
Daniel Veillard [Thu, 23 Oct 2008 13:18:18 +0000 (13:18 +0000)]
Massive patch adding event APIs by Ben Guthro
* 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
daniel

16 years ago* docs/apps.html docs/apps.html.in: update monitoring apps section
Daniel Veillard [Thu, 23 Oct 2008 11:42:42 +0000 (11:42 +0000)]
* docs/apps.html docs/apps.html.in: update monitoring apps section
Daniel

16 years agoAn updated patch for adding <device> tags to logical
Chris Lalancette [Thu, 23 Oct 2008 11:39:53 +0000 (11:39 +0000)]
An updated patch for adding <device> tags to logical
findPoolSources.  Given danpb's last feedback, I completely removed the XML
parsing and did it all with structures.  The result should (hopefully) be a lot
easier on the eyes, and is a little more generic.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoAs suggested by danpb, to fix up the regression caused by last week's VIR_ENUM
Chris Lalancette [Thu, 23 Oct 2008 11:32:22 +0000 (11:32 +0000)]
As suggested by danpb, to fix up the regression caused by last week's VIR_ENUM
cleanup patch, add a ".defaultFormat" member to .poolOptions.  In
storage_conf.c, if virXPathString(/pool/source/format/@type) returns NULL, then
set the pool type to .defaultFormat; otherwise, lookup the type via
formatFromString.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoFix syntax error that was breaking RPM builds.
Cole Robinson [Wed, 22 Oct 2008 13:55:15 +0000 (13:55 +0000)]
Fix syntax error that was breaking RPM builds.

16 years agoCurrently, you can define a logical storage pool with something like:
Chris Lalancette [Tue, 21 Oct 2008 17:23:38 +0000 (17:23 +0000)]
Currently, you can define a logical storage pool with something like:
<pool type='logical'>
<source>
<name>MyVG</name>
<device name='/dev/sdb'/>
...

However, dumping out the XML for this same storage pool (with, say, virsh
pool-dumpxml), gives:

<pool type='logical'>
<source>
<name>MyVG</name>
<device name='/dev/sdb'>
</device>

To make this more idempotent, do the <device name='/dev/sdb'/> form by default,
and only do the <device>...</device> form if .nfreeExtent is defined for the
storage pool.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoBecause of my patch last week that converted the various virStorage*FromString
Chris Lalancette [Tue, 21 Oct 2008 17:18:45 +0000 (17:18 +0000)]
Because of my patch last week that converted the various virStorage*FromString
and virStorage*ToString implementations to the generic VIR_ENUM_IMPL, there were
a couple of places that didn't properly set errors when they failed.  This patch
fixes these places up.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoWhile doing on this patch series, I mistakenly added a bogus piece of
Chris Lalancette [Tue, 21 Oct 2008 17:15:53 +0000 (17:15 +0000)]
While doing on this patch series, I mistakenly added a bogus piece of
storage XML to libvirtd, which was saved in /etc/libvirt/storage.  On subsequent
stop/start of libvirtd, because of another bug , an
error wasn't being set properly in an error path, so libvirtd was SEGV'ing in
storage_conf.c:virStoragePoolObjLoad when trying to dereference the NULL err
returned from virGetLastError().  Make this more robust against errors by always
doing "err ? err->message : NULL" in the printf.  I looked around the tree and
found a couple of other places that weren't guarded, so this patch fixes them as
well.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoFix up cgroup initialization order and allow /dev/pts device access in LXC
Dan Smith [Tue, 21 Oct 2008 16:46:47 +0000 (16:46 +0000)]
Fix up cgroup initialization order and allow /dev/pts device access in LXC

16 years agoDocument somme commit rules, and add application monitoring links to docs
Daniel Veillard [Tue, 21 Oct 2008 14:26:59 +0000 (14:26 +0000)]
Document somme commit rules, and add application monitoring links to docs
* HACKING: update with some rules for commiters
* docs/apps.html docs/apps.html.in: add a section on monitoring
  support
daniel

16 years ago* src/qemu_driver.c: cleanup patch for usb masstorage hotadd
Daniel Veillard [Tue, 21 Oct 2008 13:09:23 +0000 (13:09 +0000)]
* src/qemu_driver.c: cleanup patch for usb masstorage hotadd
  by Guido Günther
daniel

16 years agoALL_LINGUAS: set unconditionally, using $srcdir/po
Jim Meyering [Tue, 21 Oct 2008 07:47:29 +0000 (07:47 +0000)]
ALL_LINGUAS: set unconditionally, using $srcdir/po

* configure.in: Remove hard-coded list altogether.

16 years agoALL_LINGUAS: remove "no", now that it's superseded by np.po
Jim Meyering [Sun, 19 Oct 2008 09:56:47 +0000 (09:56 +0000)]
ALL_LINGUAS: remove "no", now that it's superseded by np.po

* configure.in: Remove "no" from hard-coded list.

16 years ago* src/qemu_driver.c: add scsi/virtio hotplug support for KVM
Daniel Veillard [Fri, 17 Oct 2008 12:36:39 +0000 (12:36 +0000)]
* src/qemu_driver.c: add scsi/virtio hotplug support for KVM
  patch by Guido Günther
daniel

16 years agoMakefile.maint (sync-vcs-ignore-files): avoid risk of abuse
Jim Meyering [Fri, 17 Oct 2008 12:04:27 +0000 (12:04 +0000)]
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.

16 years agogenerate .gitignore files from .cvsignore ones
Jim Meyering [Fri, 17 Oct 2008 10:03:15 +0000 (10:03 +0000)]
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.

16 years agogenerate .gitignore files from .cvsignore ones
Jim Meyering [Fri, 17 Oct 2008 09:59:02 +0000 (09:59 +0000)]
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.

16 years agoqemudDomainBlockStats use qemudDiskDeviceName
Daniel Veillard [Fri, 17 Oct 2008 09:29:29 +0000 (09:29 +0000)]
qemudDomainBlockStats use qemudDiskDeviceName
* src/qemu_driver.c: use qemudDiskDeviceName to determine the block
  device name in qemudDomainBlockStats(), patch by Guido Günther
daniel

16 years ago* src/qemu_driver.c: fix qemudDiskDeviceName to handle disk devices
Daniel Veillard [Fri, 17 Oct 2008 09:24:07 +0000 (09:24 +0000)]
* src/qemu_driver.c: fix qemudDiskDeviceName to handle disk devices
  too, patch by Guido Günther
daniel

16 years ago* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
Daniel Veillard [Fri, 17 Oct 2008 09:18:21 +0000 (09:18 +0000)]
* src/domain_conf.c: fix virDiskNameToBusDeviceIndex() to allow 0
  patch by Guido Günther
Daniel

16 years agobuild: when po-check fails, say why and suggest a fix
Jim Meyering [Thu, 16 Oct 2008 17:18:48 +0000 (17:18 +0000)]
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.

16 years agoAdd support for detecting the partition table type when scanning
Chris Lalancette [Thu, 16 Oct 2008 15:06:03 +0000 (15:06 +0000)]
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.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoCompiling with -Werror showed a possible use before initialization
Chris Lalancette [Thu, 16 Oct 2008 13:44:09 +0000 (13:44 +0000)]
Compiling with -Werror showed a possible use before initialization
in src/qemu_driver.c.  Make sure to initialize the olddisk ptr to NULL.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agobuild: exempt *.ico files from the trailing blank check
Jim Meyering [Thu, 16 Oct 2008 13:28:07 +0000 (13:28 +0000)]
build: exempt *.ico files from the trailing blank check

* .x-sc_trailing_blank: Add \.ico$ to the list.

16 years ago"make syntax-check" was complaining that network_driver.c was missing from
Chris Lalancette [Thu, 16 Oct 2008 12:04:06 +0000 (12:04 +0000)]
"make syntax-check" was complaining that network_driver.c was missing from
POTFILES.in.  Add it there, and then fix up one warning about included
c-ctypes.h that wasn't being used.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years ago* configure.in, src/Makefile.am, src/virsh_win_icon.rc:
Richard W.M. Jones [Wed, 15 Oct 2008 18:39:34 +0000 (18:39 +0000)]
* configure.in, src/Makefile.am, src/virsh_win_icon.rc:
Add a Windows icon resource.

16 years ago* src/libvirt.c: Register the remote driver even when we are
Richard W.M. Jones [Wed, 15 Oct 2008 10:33:01 +0000 (10:33 +0000)]
* src/libvirt.c: Register the remote driver even when we are
        configured --without-libvirtd.  Also adds debugging of
        registration events.

16 years agoavoid many format string warnings
Jim Meyering [Mon, 13 Oct 2008 16:46:28 +0000 (16:46 +0000)]
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):

16 years agoDocumentation for NIC model selection.
Richard W.M. Jones [Mon, 13 Oct 2008 15:25:38 +0000 (15:25 +0000)]
Documentation for NIC model selection.
* docs/formatdomain.html.in, docs/formatdomain.html: Add the
documentation for NIC model selection.

16 years agoBuild failure fixed.
Richard W.M. Jones [Mon, 13 Oct 2008 15:24:34 +0000 (15:24 +0000)]
Build failure fixed.
* src/domain_conf.c: Fix build failure of the Xen proxy.

16 years agotestError format strings: explicitly include domain and network names
Jim Meyering [Sat, 11 Oct 2008 07:24:49 +0000 (07:24 +0000)]
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.

16 years agoFix virRealloc bug for zero-size
Daniel P. Berrange [Fri, 10 Oct 2008 18:17:13 +0000 (18:17 +0000)]
Fix virRealloc bug for zero-size

16 years agoSupport SDL config with QEMU guests
Daniel P. Berrange [Fri, 10 Oct 2008 16:52:20 +0000 (16:52 +0000)]
Support SDL config with QEMU guests

16 years agoSwitch domain device objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 16:08:01 +0000 (16:08 +0000)]
Switch domain device objects to array instead of linked list

16 years agoSwitch storage objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 15:13:28 +0000 (15:13 +0000)]
Switch storage objects to array instead of linked list

16 years agoSwitch network objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 14:50:26 +0000 (14:50 +0000)]
Switch network objects to array instead of linked list

16 years agoSwitch domain objects to array instead of linked list
Daniel P. Berrange [Fri, 10 Oct 2008 14:20:37 +0000 (14:20 +0000)]
Switch domain objects to array instead of linked list

16 years agoSplit network driver out into separate files
Daniel P. Berrange [Fri, 10 Oct 2008 13:57:13 +0000 (13:57 +0000)]
Split network driver out into separate files

16 years agoFix two format string warnings on 32bit hosts
Daniel P. Berrange [Fri, 10 Oct 2008 12:54:10 +0000 (12:54 +0000)]
Fix two format string warnings on 32bit hosts

16 years agoUpdated MinGW spec file.
Richard W.M. Jones [Fri, 10 Oct 2008 11:33:10 +0000 (11:33 +0000)]
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.

16 years agovirDomainDefineXML, and a few additional cleanups
Daniel Veillard [Fri, 10 Oct 2008 09:32:27 +0000 (09:32 +0000)]
virDomainDefineXML, and a few additional cleanups
* 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
Daniel

16 years agofix index creation for disks
Daniel Veillard [Fri, 10 Oct 2008 08:37:35 +0000 (08:37 +0000)]
fix index creation for disks
* src/domain_conf.c src/util.c: fix index creation for disks >
  {sd,hd,xvd,vd}z (Sanjay Rao and Chris Wright)
Daniel

16 years agoCentralize majority of error reporting logic.
Cole Robinson [Thu, 9 Oct 2008 15:38:31 +0000 (15:38 +0000)]
Centralize majority of error reporting logic.

16 years agoFix two compile warnings
Daniel P. Berrange [Thu, 9 Oct 2008 14:50:25 +0000 (14:50 +0000)]
Fix two compile warnings

16 years agoAdd LXC scheduling parameters and support in virsh schedinfo
Dan Smith [Wed, 8 Oct 2008 16:28:48 +0000 (16:28 +0000)]
Add LXC scheduling parameters and support in virsh schedinfo

16 years agouse safewrite() and plug a leak
Daniel Veillard [Wed, 8 Oct 2008 13:44:40 +0000 (13:44 +0000)]
use safewrite() and plug a leak
* src/cgroup.c: use safewrite()
* src/qemu_driver.c: missing VIR_FREE pojnted out by Eduardo Habkost
Daniel

16 years agoavoid "make syntax-check" failure
Jim Meyering [Wed, 8 Oct 2008 09:31:13 +0000 (09:31 +0000)]
avoid "make syntax-check" failure

* src/cgroup.c (virCgroupSetValueStr): Use safe_write, not write.

16 years ago* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
Daniel Veillard [Tue, 7 Oct 2008 16:39:32 +0000 (16:39 +0000)]
* src/qemu_driver.c: another OOM handling cleanup (Guido Günther)
daniel

16 years ago* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error
Daniel Veillard [Tue, 7 Oct 2008 16:01:23 +0000 (16:01 +0000)]
* src/qemu_driver.c: don't print and extra OOM error on top of getpwuid error
(Guido Günther)
Daniel

16 years agoMove DEBUG macros to central location.
Cole Robinson [Mon, 6 Oct 2008 19:53:06 +0000 (19:53 +0000)]
Move DEBUG macros to central location.

16 years agoFix segfault if starting qemu VM with an inactive virtual network.
Cole Robinson [Mon, 6 Oct 2008 19:36:46 +0000 (19:36 +0000)]
Fix segfault if starting qemu VM with an inactive virtual network.

16 years agoSlim down schema test result output
Cole Robinson [Mon, 6 Oct 2008 19:25:29 +0000 (19:25 +0000)]
Slim down schema test result output

16 years agouse C99 initializers for virState
Daniel Veillard [Mon, 6 Oct 2008 15:40:37 +0000 (15:40 +0000)]
use C99 initializers for virState
* src/lxc_driver.c src/qemu_driver.c src/remote_internal.c
  src/storage_driver.c: use C99 initializers for virState (Guido
  Gunther)
Daniel

16 years agoFix vpath build
Daniel P. Berrange [Mon, 6 Oct 2008 10:24:31 +0000 (10:24 +0000)]
Fix vpath build

16 years ago* po/no.po: removed it's obsoleted by np.po, fixes #335211
Daniel Veillard [Mon, 6 Oct 2008 10:10:10 +0000 (10:10 +0000)]
* po/no.po: removed it's obsoleted by np.po, fixes #335211
daniel

16 years agoAdd forgotten cgroup.{c,h} and ChangeLog
Dan Smith [Fri, 3 Oct 2008 17:58:02 +0000 (17:58 +0000)]
Add forgotten cgroup.{c,h} and ChangeLog

16 years agoAdd cgroup manipulation and LXC driver
Dan Smith [Fri, 3 Oct 2008 16:46:01 +0000 (16:46 +0000)]
Add cgroup manipulation and LXC driver

16 years ago* libvirt.spec.in: fix bug #465274 to build on RHEL
Daniel Veillard [Thu, 2 Oct 2008 15:04:11 +0000 (15:04 +0000)]
* libvirt.spec.in: fix bug #465274 to build on RHEL
daniel

16 years agoFix starting qemu VM with multiple pty char devices.
Cole Robinson [Thu, 2 Oct 2008 14:10:20 +0000 (14:10 +0000)]
Fix starting qemu VM with multiple pty char devices.

16 years agoXen interface order and fix python parallel build
Daniel Veillard [Wed, 1 Oct 2008 15:31:02 +0000 (15:31 +0000)]
Xen interface order and fix python parallel build
* src/xend_internal.c: fix ordering when parsing multiple Xen
  interfaces, patch by Jim Fehlig
* python/Makefile.am: fix parallel build
Daniel

16 years agoThu Sep 25 13:37:42 IST 2008 Mark McLoughlin <markmc@redhat.com>
Mark McLoughlin [Thu, 25 Sep 2008 12:40:01 +0000 (12:40 +0000)]
Thu Sep 25 13:37:42 IST 2008 Mark McLoughlin <markmc@redhat.com>

        * docs/virsh.pod: fixup some minor issues - e.g. bogus
        references to "xm"

16 years agoDohh, new release is 0.4.6 not 0.4.5 !
Daniel Veillard [Wed, 24 Sep 2008 08:01:28 +0000 (08:01 +0000)]
Dohh, new release is 0.4.6 not 0.4.5 !
Daniel

16 years ago* configure.in libvirt.spec.in NEWS docs/*: release of libvirt-0.4.6
Daniel Veillard [Tue, 23 Sep 2008 20:48:49 +0000 (20:48 +0000)]
* 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
Daniel

16 years ago* po/pt_BR.po: updated brazilian translation
Daniel Veillard [Tue, 23 Sep 2008 10:18:02 +0000 (10:18 +0000)]
* po/pt_BR.po: updated brazilian translation
Daniel

16 years agocleanup and removal for pools in logical backend
Daniel Veillard [Mon, 22 Sep 2008 20:22:35 +0000 (20:22 +0000)]
cleanup and removal for pools in logical backend
* 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
Daniel

16 years ago* src/storage_conf.c: fixes parsing to allow no sources for a pool
Daniel Veillard [Mon, 22 Sep 2008 19:57:47 +0000 (19:57 +0000)]
* src/storage_conf.c: fixes parsing to allow no sources for a pool
  fix by Dan and Chris Lalancette
Daniel

16 years ago* src/remote_internal.c src/storage_driver.c: structure init cleanup
Daniel Veillard [Mon, 22 Sep 2008 19:53:42 +0000 (19:53 +0000)]
* src/remote_internal.c src/storage_driver.c: structure init cleanup
  by Chris Lalancette
Daniel

16 years agoread network config in OpenVZ driver
Daniel Veillard [Mon, 22 Sep 2008 15:21:44 +0000 (15:21 +0000)]
read network config in OpenVZ driver
* src/openvz_conf.c: patch from Evgeniy Sokolov to read
  network config in OpenVZ driver.
Daniel

16 years agoFix broken specfile build
Daniel P. Berrange [Thu, 18 Sep 2008 10:20:24 +0000 (10:20 +0000)]
Fix broken specfile build

16 years agoDocumentation cleanups.
Richard W.M. Jones [Thu, 18 Sep 2008 09:00:10 +0000 (09:00 +0000)]
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.

16 years agoFix trailing whitespace & unmarked diagnostic warning
Daniel P. Berrange [Thu, 18 Sep 2008 08:54:23 +0000 (08:54 +0000)]
Fix trailing whitespace & unmarked diagnostic warning

16 years agosrc/openvz_driver.c: Fix segfault in OpenVZ driver
Richard W.M. Jones [Wed, 17 Sep 2008 16:07:03 +0000 (16:07 +0000)]
src/openvz_driver.c: Fix segfault in OpenVZ driver
(Evgeniy Sokolov).

16 years agoFix broken test case data files
Daniel P. Berrange [Wed, 17 Sep 2008 15:39:11 +0000 (15:39 +0000)]
Fix broken test case data files

16 years agosrc/storage_backend_disk.c: Missing include file.
Richard W.M. Jones [Wed, 17 Sep 2008 14:29:47 +0000 (14:29 +0000)]
src/storage_backend_disk.c: Missing include file.

16 years agoRemove some deadcode (Nguyen Anh Quynh).
Richard W.M. Jones [Wed, 17 Sep 2008 14:21:27 +0000 (14:21 +0000)]
Remove some deadcode (Nguyen Anh Quynh).