]> git.ipfire.org Git - thirdparty/libvirt.git/log
thirdparty/libvirt.git
16 years agoAdded complete set of RNG schemas for all XML formats
Daniel P. Berrange [Tue, 27 Jan 2009 15:29:53 +0000 (15:29 +0000)] 
Added complete set of RNG schemas for all XML formats

16 years agoAdded link to libvirt-qpid on front page, and docs on URI formats for each driver
Daniel P. Berrange [Tue, 27 Jan 2009 14:49:09 +0000 (14:49 +0000)] 
Added link to libvirt-qpid on front page, and docs on URI formats for each driver

16 years agovirterror.c: don't read beyond end of buffer upon OOM
Jim Meyering [Tue, 27 Jan 2009 12:26:53 +0000 (12:26 +0000)] 
virterror.c: don't read beyond end of buffer upon OOM

* src/virterror.c (virReportSystemErrorFull): Fix typo in
my previous change.  Patch by Daniel P. Berrange.

16 years agokvm/virtio: Set IFF_VNET_HDR when setting up tap fds
Mark McLoughlin [Tue, 27 Jan 2009 11:12:05 +0000 (11:12 +0000)] 
kvm/virtio: Set IFF_VNET_HDR when setting up tap fds

IFF_VNET_HDR is a tun/tap flag that allows you to send and receive
large (i.e. GSO) packets and packets with partial checksums. Setting
the flag means that every packet is proceeded by the same header which
virtio uses to communicate GSO/csum metadata.

By enabling this flag on the tap fds we create, we greatly increase
the achievable throughput with virtio_net.

However, we need to be careful to only set the flag when a) QEMU has
support for this ABI and b) the value of the flag is queryable using
the TUNGETIFF ioctl.

It's nearly five months since kvm-74 - the first KVM release with this
feature - was released. Up until now, we've not added libvirt support
because there is no clean way to detect support for this in QEMU at
runtime. A brief attempt to add a "info capabilities" monitor command
to QEMU floundered. Perfect is the enemy of good enough. Probing the
KVM version will suffice for now.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
16 years agofix errors in virReportSystemErrorFull
Jim Meyering [Tue, 27 Jan 2009 10:57:18 +0000 (10:57 +0000)] 
fix errors in virReportSystemErrorFull

* src/virterror.c (virStrerror): New function.
(virReportSystemErrorFull): Don't leak "combined".
In fact, don't even attempt allocation.
Do include the result of formatted print in final diagnostic.

16 years agouse gnulib's stpcpy module
Jim Meyering [Tue, 27 Jan 2009 10:30:30 +0000 (10:30 +0000)] 
use gnulib's stpcpy module

* bootstrap (modules): Add stpcpy, and pull in gnulib bits:
* gnulib/lib/stpcpy.c: New file.
* gnulib/m4/stpcpy.m4: New file.
* gnulib/lib/Makefile.am: Update.
* gnulib/m4/gnulib-cache.m4: Update.
* gnulib/m4/gnulib-comp.m4: Update.

16 years agoupdate from gnulib
Jim Meyering [Tue, 27 Jan 2009 10:29:55 +0000 (10:29 +0000)] 
update from gnulib

16 years agobuild: avoid format warnings
Jim Meyering [Tue, 27 Jan 2009 08:50:03 +0000 (08:50 +0000)] 
build: avoid format warnings

* src/proxy_internal.c (xenProxyCommand): Mark a diagnostic.
* src/xen_unified.c (xenUnifiedOpen, xenUnifiedAddDomainInfo):
Fix unmarked diagnostics by removing the diagnostic altogether:
replace each xenUnifiedError(...,VIR_ERR_NO_MEMORY call with a
call to virReportOOMError.

16 years ago* src/virterror.c (virErrorMsg): Correct indentation.
Jim Meyering [Tue, 27 Jan 2009 08:49:15 +0000 (08:49 +0000)] 
* src/virterror.c (virErrorMsg): Correct indentation.

16 years agofix recursive lock hang in xenstore driver
John Levon [Fri, 23 Jan 2009 19:18:24 +0000 (19:18 +0000)] 
fix recursive lock hang in xenstore driver

16 years agoSupport QEMU disk format specification in XML
Daniel P. Berrange [Fri, 23 Jan 2009 16:22:20 +0000 (16:22 +0000)] 
Support QEMU disk format specification in XML

16 years ago.cvsignore: Add explicit list of generated files.
Jim Meyering [Fri, 23 Jan 2009 16:15:49 +0000 (16:15 +0000)] 
.cvsignore: Add explicit list of generated files.

* .hgignore: Regenerate.
* m4/.gitignore: Regenerate.

16 years agofix comment typo: s/contains/continues/
Jim Meyering [Fri, 23 Jan 2009 14:18:43 +0000 (14:18 +0000)] 
fix comment typo: s/contains/continues/

* src/libvirt.c (virStorageVolFree): Correct typo in comment.

16 years agoqemud: don't dereference NULL on failed virGetUserDirectory
Jim Meyering [Fri, 23 Jan 2009 13:50:59 +0000 (13:50 +0000)] 
qemud: don't dereference NULL on failed virGetUserDirectory

* qemud/qemud.c (qemudInitPaths): Return right away,
upon virGetUserDirectory failure.

16 years agom4: update from gnulib to avoid warnings from cutting-edge autoconf
Jim Meyering [Fri, 23 Jan 2009 13:32:48 +0000 (13:32 +0000)] 
m4: update from gnulib to avoid warnings from cutting-edge autoconf

* gnulib/m4/errno_h.m4
* gnulib/m4/gnulib-comp.m4
* gnulib/m4/multiarch.m4

16 years agocorrect and tighten up .*ignore files
Jim Meyering [Fri, 23 Jan 2009 13:32:17 +0000 (13:32 +0000)] 
correct and tighten up .*ignore files

* .cvsignore: Don't ignore *.orig or *.rej.  They're not build products.
Don't ignore the entire m4 directory.
* Makefile.maint (sync-vcs-ignore-files): Correct quoting.
Use sed rather than a for loop.
Search only version-controled files (for reproducibility)
* gnulib/lib/netinet/.cvsignore: Append missing newline-at-EOF,
so that the use of sed doesn't mistakenly concatenate lines.
* gnulib/lib/sys/.cvsignore: Likewise.
* m4/.cvsignore: Ignore acinclude.m4 and aclocal.m4, not *.m4.
* .hgignore: Regenerate.
* all .gitignore files: Regenerate.

16 years agomaint: update list of error function names and adapt
Jim Meyering [Fri, 23 Jan 2009 12:29:29 +0000 (12:29 +0000)] 
maint: update list of error function names and adapt

* Makefile.maint (msg_gen_function): Update list.
Remove some now-unused names, add some new ones.
* src/hash.c (virHashError): Remove unused definition.
* src/openvz_conf.h (openvzLog): Likewise.
* src/xen_unified.c: Mark newly-exposed diagnostics for translation.

16 years agoparse IP address for bridge interfaces
John Levon [Fri, 23 Jan 2009 01:48:47 +0000 (01:48 +0000)] 
parse IP address for bridge interfaces

16 years agouse the gnulib random_r function
Daniel P. Berrange [Thu, 22 Jan 2009 20:27:01 +0000 (20:27 +0000)] 
use the gnulib random_r function

16 years agoRemove use of non-reentrant POSIX apis
Daniel P. Berrange [Thu, 22 Jan 2009 19:41:48 +0000 (19:41 +0000)] 
Remove use of non-reentrant POSIX apis

16 years agoxm_internal.c: fix locking bug: s/Lock/Unlock/
Jim Meyering [Thu, 22 Jan 2009 19:18:24 +0000 (19:18 +0000)] 
xm_internal.c: fix locking bug: s/Lock/Unlock/

* src/xm_internal.c (xenXMDomainDefineXML): Release lock, (don't
try to acquire it) upon failure, just before returning.

16 years agogenerate .hgignore
John Levon [Thu, 22 Jan 2009 19:03:11 +0000 (19:03 +0000)] 
generate .hgignore

16 years agoRemove non-existent symbol from linker script
John Levon [Thu, 22 Jan 2009 18:33:13 +0000 (18:33 +0000)] 
Remove non-existent symbol from linker script

16 years agoSupport script for bridge interface type
John Levon [Thu, 22 Jan 2009 18:29:13 +0000 (18:29 +0000)] 
Support script for bridge interface type

16 years agoFix to xen test case for threadsafety patches
Daniel P. Berrange [Thu, 22 Jan 2009 18:19:20 +0000 (18:19 +0000)] 
Fix to xen test case for threadsafety patches

16 years agoLeast privilege support for Solaris
John Levon [Thu, 22 Jan 2009 17:49:41 +0000 (17:49 +0000)] 
Least privilege support for Solaris

16 years agoMake xen driver threadsafe
Daniel P. Berrange [Wed, 21 Jan 2009 18:11:14 +0000 (18:11 +0000)] 
Make xen driver threadsafe

16 years agoIf you un-install libvirt and re-install it, you get a warning
Mark McLoughlin [Wed, 21 Jan 2009 10:50:03 +0000 (10:50 +0000)] 
If you un-install libvirt and re-install it, you get a warning
from the post-install script:

  Installing     : libvirt
  ln: creating symbolic link `/etc/libvirt/qemu/networks/autostart/default.xml': File exists

See https://bugzilla.redhat.com/462011

16 years agoAllow storage driver to handle daemon restarts
Daniel P. Berrange [Tue, 20 Jan 2009 22:43:07 +0000 (22:43 +0000)] 
Allow storage driver to handle daemon restarts

16 years agoAllow virtual networks to survive daemon restart
Daniel P. Berrange [Tue, 20 Jan 2009 22:36:10 +0000 (22:36 +0000)] 
Allow virtual networks to survive daemon restart

16 years agoSupport ac97 soundcard model
Daniel P. Berrange [Tue, 20 Jan 2009 22:15:55 +0000 (22:15 +0000)] 
Support ac97 soundcard model

16 years agoUse global thread-local error for all python error reporting
Daniel P. Berrange [Tue, 20 Jan 2009 22:10:52 +0000 (22:10 +0000)] 
Use global thread-local error for all python error reporting

16 years agolibvirtd: respect LIBVIRT_DEBUG when logging to syslog
John Levon [Tue, 20 Jan 2009 21:50:31 +0000 (21:50 +0000)] 
libvirtd: respect LIBVIRT_DEBUG when logging to syslog

16 years agoAdd missing .x-sc_prohibit_nonreentrant
Daniel P. Berrange [Tue, 20 Jan 2009 21:49:05 +0000 (21:49 +0000)] 
Add missing .x-sc_prohibit_nonreentrant

16 years ago* src/logging.c: fix openlog() ident lifetime for Solaris
Daniel Veillard [Tue, 20 Jan 2009 21:34:44 +0000 (21:34 +0000)] 
* src/logging.c: fix openlog() ident lifetime for Solaris
daniel

16 years agoRefresh GNULIB, also pulling in random_r module
Daniel P. Berrange [Tue, 20 Jan 2009 21:05:33 +0000 (21:05 +0000)] 
Refresh GNULIB, also pulling in random_r module

16 years agoSupport domain events in test driver
Daniel P. Berrange [Tue, 20 Jan 2009 20:23:53 +0000 (20:23 +0000)] 
Support domain events in test driver

16 years agoAdd syntax check rule to look for non-reentrant POSIX apis
Daniel P. Berrange [Tue, 20 Jan 2009 20:19:55 +0000 (20:19 +0000)] 
Add syntax check rule to look for non-reentrant POSIX apis

16 years agodon't ignore write failure
Jim Meyering [Tue, 20 Jan 2009 19:29:08 +0000 (19:29 +0000)] 
don't ignore write failure

* src/network_driver.c (networkEnableIpForwarding): This function
would always return 1 (success).  Now it returns 0 upon write or
close failure, being careful to preserve any errno from a write failure.
Add comments.

16 years agoDynamically adjust worker threads in daemon
Daniel P. Berrange [Tue, 20 Jan 2009 19:27:11 +0000 (19:27 +0000)] 
Dynamically adjust worker threads in daemon

16 years agoAllow concurrent processing of RPC calls in daemon
Daniel P. Berrange [Tue, 20 Jan 2009 19:25:15 +0000 (19:25 +0000)] 
Allow concurrent processing of RPC calls in daemon

16 years agoFix some misleading comments in XM driver
Daniel P. Berrange [Tue, 20 Jan 2009 18:20:09 +0000 (18:20 +0000)] 
Fix some misleading comments in XM driver

16 years agoRemove a use of strerror() in error reporting in remote driver
Daniel P. Berrange [Tue, 20 Jan 2009 17:47:13 +0000 (17:47 +0000)] 
Remove a use of strerror() in error reporting in remote driver

16 years agoRemove use of static data in Xen XM driver
Daniel P. Berrange [Tue, 20 Jan 2009 17:34:56 +0000 (17:34 +0000)] 
Remove use of static data in Xen XM driver

16 years agoActivate RHEL5 specific flags when needed
Daniel Veillard [Tue, 20 Jan 2009 17:27:34 +0000 (17:27 +0000)] 
Activate RHEL5 specific flags when needed
* libvirt.spec.in: try to autodetect when rhel5 option should be
  passed to configure
Daniel

16 years agoRemove use of static data in Xen inotify driver
Daniel P. Berrange [Tue, 20 Jan 2009 17:19:23 +0000 (17:19 +0000)] 
Remove use of static data in Xen inotify driver

16 years agoMake error reporting threadsafe by avoiding strerror
Daniel P. Berrange [Tue, 20 Jan 2009 17:13:33 +0000 (17:13 +0000)] 
Make error reporting threadsafe by avoiding strerror

16 years ago* src/qemu_driver.c: remove a warning when printing a file offset
Daniel Veillard [Tue, 20 Jan 2009 16:39:35 +0000 (16:39 +0000)] 
* src/qemu_driver.c: remove a warning when printing a file offset
daniel

16 years agoMake RPC call dispatch threaded
Daniel P. Berrange [Tue, 20 Jan 2009 16:36:34 +0000 (16:36 +0000)] 
Make RPC call dispatch threaded

16 years agoremove stdout_fd, stderr_fd from virDomainObj
Daniel Veillard [Tue, 20 Jan 2009 16:10:20 +0000 (16:10 +0000)] 
remove stdout_fd, stderr_fd from virDomainObj
* src/domain_conf.h src/lxc_driver.c src/uml_driver.c: virDomainObj
  doesn't need stdout and stderr fields anymore, patch from
  Guido Günther
daniel

16 years ago* src/domain_conf.h src/qemu_driver.c: use monitor fd for QEmu/KVM
Daniel Veillard [Tue, 20 Jan 2009 15:52:11 +0000 (15:52 +0000)] 
* src/domain_conf.h src/qemu_driver.c: use monitor fd for QEmu/KVM
  domain shutdown and read saved vm status on libvirtd startup,
  last 2 patches from Guido Günther finishing up the surviving the
  libvirt daemon restart
daniel

16 years agoFix apibuild.py and update/regenerate localizations
Daniel Veillard [Tue, 20 Jan 2009 15:42:07 +0000 (15:42 +0000)] 
Fix apibuild.py and update/regenerate localizations
* docs/apibuild.py: fix the parser with another Win32 keyword
* po/*: updated a couple of translations and regenerated
daniel

16 years agofix "make syntax-check" failures
Jim Meyering [Tue, 20 Jan 2009 13:51:52 +0000 (13:51 +0000)] 
fix "make syntax-check" failures

* ChangeLog: Start with TAB, not 8 spaces.
* src/virterror.c: Remove trailing spaces.

16 years agoFix config summary output alignment
Daniel P. Berrange [Tue, 20 Jan 2009 12:25:40 +0000 (12:25 +0000)] 
Fix config summary output alignment

16 years agoAdd public APIs for ref counting on public objects
Daniel P. Berrange [Tue, 20 Jan 2009 12:14:03 +0000 (12:14 +0000)] 
Add public APIs for ref counting on public objects

16 years agoFix actual vs expected data comparison order to get correct diff +++/--- output
Daniel P. Berrange [Tue, 20 Jan 2009 12:03:40 +0000 (12:03 +0000)] 
Fix actual vs expected data comparison order to get correct diff +++/--- output

16 years agoThread local error reporting
Daniel P. Berrange [Tue, 20 Jan 2009 12:01:45 +0000 (12:01 +0000)] 
Thread local error reporting

16 years agoAvoid bogus event loop wakeups in remote driver when doing RPC call
Daniel P. Berrange [Tue, 20 Jan 2009 11:45:09 +0000 (11:45 +0000)] 
Avoid bogus event loop wakeups in remote driver when doing RPC call

16 years agoAdd locking to the remote driver
Daniel P. Berrange [Tue, 20 Jan 2009 11:41:24 +0000 (11:41 +0000)] 
Add locking to the remote driver

16 years agodaemonize qemu processes
Guido Günther [Mon, 19 Jan 2009 21:55:54 +0000 (21:55 +0000)] 
daemonize qemu processes

16 years agosave domstate as string in status file
Guido Günther [Mon, 19 Jan 2009 21:06:26 +0000 (21:06 +0000)] 
save domstate as string in status file

16 years agoChange Ben Guthro email
Daniel Veillard [Mon, 19 Jan 2009 20:24:12 +0000 (20:24 +0000)] 
Change Ben Guthro email
Daniel

16 years ago* src/xen_internal.c src/xend_internal.c: Relax NUMA checking
Daniel Veillard [Mon, 19 Jan 2009 20:16:10 +0000 (20:16 +0000)] 
* src/xen_internal.c src/xend_internal.c: Relax NUMA checking
  for RHEL-5 and change the detection stategy for default Xen
  accesses, patch by Markus Armbruster
daniel

16 years agoFix PVFB version check for RHEL-5
Daniel Veillard [Mon, 19 Jan 2009 19:49:30 +0000 (19:49 +0000)] 
Fix PVFB version check for RHEL-5
* src/xend_internal.c src/xm_internal.c: fix paravirt framebuffer
  handling since it was backoprted for RHEL-5, patch by Markus
  Armbruster
daniel

16 years ago* src/xend_internal.c src/xm_internal.c: fix fully virt network
Daniel Veillard [Mon, 19 Jan 2009 18:12:00 +0000 (18:12 +0000)] 
* src/xend_internal.c src/xm_internal.c: fix fully virt network
  device configuration for Xen on RHEL-5, patch by Markus Armbruster
daniel

16 years ago* configure.in: add a --with-rhel5-api configure option
Daniel Veillard [Mon, 19 Jan 2009 17:41:39 +0000 (17:41 +0000)] 
* configure.in: add a --with-rhel5-api configure option
  for the Xen specific version of RHEL-5, patch by Markus Armbruster
daniel

16 years agoTwo bug fixes coming from RHEL and Markus being added to AUTHORS
Daniel Veillard [Mon, 19 Jan 2009 15:24:41 +0000 (15:24 +0000)] 
Two bug fixes coming from RHEL and Markus being added to AUTHORS
* src/xm_internal.c: two bug fixes coming from RHEL package
  posted by Markus Armbruster
* AUTHORS: adding Markus
daniel

16 years agotests: virsh-all and virsh-synopsis were not being run
Jim Meyering [Fri, 16 Jan 2009 18:07:24 +0000 (18:07 +0000)] 
tests: virsh-all and virsh-synopsis were not being run

* tests/Makefile.am (test_scripts): Add two missing backslashes.

16 years agotests: exercise a bug that could make virsh and libvirtd segfault
Jim Meyering [Fri, 16 Jan 2009 18:06:33 +0000 (18:06 +0000)] 
tests: exercise a bug that could make virsh and libvirtd segfault

* tests/define-dev-segfault: New file.
* tests/Makefile.am (test_scripts): Add define-dev-segfault.

16 years agoFix segfault with console device back compat.
Cole Robinson [Fri, 16 Jan 2009 16:50:11 +0000 (16:50 +0000)] 
Fix segfault with console device back compat.

16 years agoFix bug when fork isn't available (Win32) in remote driver
Daniel P. Berrange [Thu, 15 Jan 2009 20:13:12 +0000 (20:13 +0000)] 
Fix bug when fork isn't available (Win32) in remote driver

16 years agoReduce exit paths in remote driver APIs
Daniel P. Berrange [Thu, 15 Jan 2009 20:07:10 +0000 (20:07 +0000)] 
Reduce exit paths in remote driver APIs

16 years agoRemove use of macros in remote driver private data access
Daniel P. Berrange [Thu, 15 Jan 2009 20:04:44 +0000 (20:04 +0000)] 
Remove use of macros in remote driver private data access

16 years agoFix incorrect use of private data field in remote driver
Daniel P. Berrange [Thu, 15 Jan 2009 20:03:10 +0000 (20:03 +0000)] 
Fix incorrect use of private data field in remote driver

16 years agoGeneric internal threads API
Daniel P. Berrange [Thu, 15 Jan 2009 19:56:05 +0000 (19:56 +0000)] 
Generic internal threads API

16 years agoImplement virKill for Win32 platform
Daniel P. Berrange [Thu, 15 Jan 2009 19:40:21 +0000 (19:40 +0000)] 
Implement virKill for Win32 platform

16 years agoAvoid passing NULL to printf %s specifier
John Levon [Thu, 15 Jan 2009 17:54:20 +0000 (17:54 +0000)] 
Avoid passing NULL to printf %s specifier

16 years agoImprove xend_get error message
John Levon [Thu, 15 Jan 2009 15:17:53 +0000 (15:17 +0000)] 
Improve xend_get error message

16 years agoimplement capabilities parsing for Solaris
John Levon [Thu, 15 Jan 2009 01:35:17 +0000 (01:35 +0000)] 
implement capabilities parsing for Solaris

16 years agoFix xs_unwatch() to correctly pass the token
John Levon [Thu, 15 Jan 2009 01:23:32 +0000 (01:23 +0000)] 
Fix xs_unwatch() to correctly pass the token

16 years agoFix activeDomainList handling
John Levon [Thu, 15 Jan 2009 01:21:36 +0000 (01:21 +0000)] 
Fix activeDomainList handling

16 years agoFix ref-counting for Xen driver event registration
John Levon [Thu, 15 Jan 2009 01:18:37 +0000 (01:18 +0000)] 
Fix ref-counting for Xen driver event registration

16 years agoFix devhelp build dependencies
John Levon [Wed, 14 Jan 2009 17:36:05 +0000 (17:36 +0000)] 
Fix devhelp build dependencies

16 years agoLet devhelp build in a separate objdir.
John Levon [Wed, 14 Jan 2009 17:30:39 +0000 (17:30 +0000)] 
Let devhelp build in a separate objdir.

16 years agoremove references to non-existent files in docs/
John Levon [Wed, 14 Jan 2009 17:24:18 +0000 (17:24 +0000)] 
remove references to non-existent files in docs/

16 years agoMark Xen PV CD-ROM devices as such
John Levon [Wed, 14 Jan 2009 16:21:12 +0000 (16:21 +0000)] 
Mark Xen PV CD-ROM devices as such

16 years agoImprove compiler flag checking
John Levon [Wed, 14 Jan 2009 15:23:26 +0000 (15:23 +0000)] 
Improve compiler flag checking

16 years agoqemud.c: fix error in yesterday's change: s/X_OK/R_OK/
Jim Meyering [Tue, 13 Jan 2009 12:22:24 +0000 (12:22 +0000)] 
qemud.c: fix error in yesterday's change: s/X_OK/R_OK/

* qemud/qemud.c (main): Fix error s/X_OK/R_OK/ reported by
Daniel Berrange.

16 years ago* HACKING: Clarify "bool" vs. XDR/wire-format.
Jim Meyering [Tue, 13 Jan 2009 10:45:41 +0000 (10:45 +0000)] 
* HACKING: Clarify "bool" vs. XDR/wire-format.

16 years agofix the QEmu links
Daniel Veillard [Mon, 12 Jan 2009 21:09:09 +0000 (21:09 +0000)] 
fix the QEmu links
* docs/index.html docs/index.html.in docs/relatedlinks.html
  docs/relatedlinks.html.in: fix the QEmu links
daniel

16 years agoFix invocation of rpcgen.
Richard W.M. Jones [Mon, 12 Jan 2009 19:19:22 +0000 (19:19 +0000)] 
Fix invocation of rpcgen.
* qemud/Makefile.am: Fix invocation of rpcgen, and make sure
we run the right one.

16 years agotests: quiet virsh-all
Jim Meyering [Mon, 12 Jan 2009 18:23:10 +0000 (18:23 +0000)] 
tests: quiet virsh-all

* tests/virsh-all: For now, ignore diagnostics and exit status,
when running all virsh commands.

16 years agodiagnose "libvirtd --config=no-such-file"
Jim Meyering [Mon, 12 Jan 2009 18:22:32 +0000 (18:22 +0000)] 
diagnose "libvirtd --config=no-such-file"

* qemud/qemud.c (remoteReadConfigFile): Don't return 0 (success)
when the config file is unreadable or nonexistent
Return -1, not 0, upon virConfReadFile failure.
(main): If remote_config_file is not specified via --config(-f),
use the default config file only if it exists.  Otherwise,
use /dev/null.
* src/conf.c (virConfReadFile): Don't diagnose virFileReadAll
failure, since it already does that.

16 years agofix non-srcdir build failure
Jim Meyering [Mon, 12 Jan 2009 18:21:49 +0000 (18:21 +0000)] 
fix non-srcdir build failure

* qemud/Makefile.am (check-local): Prefix use of test_libvirtd.aug
with $(srcdir)/.  Add quotes around $(AUGPARSE), in case it expands
to something unusual.

16 years agoAdd tests and docs for the new PCI passthrough format
Daniel Veillard [Mon, 12 Jan 2009 15:09:19 +0000 (15:09 +0000)] 
Add tests and docs for the new PCI passthrough format
* docs/formatdomain.html.in docs/libvirt.rng docs/formatdomain.html:
  document the new PCI passthrough format
* tests/qemuxml2argvtest.c tests/qemuxml2xmltest.c
  tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address.args
  tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address.xml:
  and add a regression test for it.
Daniel

16 years agodon't emulate snprintf
Guido Günther [Sun, 11 Jan 2009 11:21:29 +0000 (11:21 +0000)] 
don't emulate snprintf

16 years agosplit out opening of the qemu logfile
Guido Günther [Sun, 11 Jan 2009 11:18:31 +0000 (11:18 +0000)] 
split out opening of the qemu logfile

16 years agosrc/logging.h: fix non-debug compile
John Levon [Fri, 9 Jan 2009 19:22:02 +0000 (19:22 +0000)] 
src/logging.h: fix non-debug compile

16 years agoFixups after gnulib refresh
John Levon [Thu, 8 Jan 2009 20:42:01 +0000 (20:42 +0000)] 
Fixups after gnulib refresh

16 years agoadd missing flags argument
Guido Günther [Thu, 8 Jan 2009 19:52:15 +0000 (19:52 +0000)] 
add missing flags argument