]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years ago* src/domain_conf.c src/qemu_conf.c: implement PCI passthrough
Daniel Veillard [Wed, 7 Jan 2009 12:56:13 +0000 (12:56 +0000)]
* src/domain_conf.c src/qemu_conf.c: implement PCI passthrough
  for recent KVM versions in a similar way to USB, patch by
  Jason Krieg. Some cleanups and reformating too.
daniel

16 years ago* src/openvz_driver.c: fix the mac addresses generation for OpenVZ veth
Daniel Veillard [Wed, 7 Jan 2009 10:55:54 +0000 (10:55 +0000)]
* src/openvz_driver.c: fix the mac addresses generation for OpenVZ veth
  devices, patch by Evgeniy Sokolov
* docs/apps.html: regenerated fixing a typo
Daniel

16 years ago* src/libvirt_private.syms src/qemu_driver.c src/test.c
Daniel Veillard [Wed, 7 Jan 2009 10:43:16 +0000 (10:43 +0000)]
* src/libvirt_private.syms src/qemu_driver.c src/test.c
  src/uml_driver.c src/util.c src/util.h src/xen_unified.c:
  unify hostname lookup using virGetHostname convenience function,
  patch by David Lutterkort
daniel

16 years agoupdate from gnulib; use its time_r module for localtime_r on mingw
Jim Meyering [Tue, 6 Jan 2009 20:12:50 +0000 (20:12 +0000)]
update from gnulib; use its time_r module for localtime_r on mingw

* bootstrap (modules): Add time_r.
* gnulib/m4/time_h.m4: New file.
* gnulib/m4/time_r.m4: New file.
* gnulib/lib/time_r.c: New file.
* gnulib/tests/test-time.c: New file.
* gnulib/lib/time.in.h: New file.
* gnulib/lib/Makefile.am: Update.
* gnulib/lib/fseeko.c: Likewise.
* gnulib/lib/lstat.c: Likewise.
* gnulib/lib/netdb.in.h: Likewise.
* gnulib/lib/stdint.in.h: Likewise.
* gnulib/lib/stdlib.in.h: Likewise.
* gnulib/lib/sys_select.in.h: Likewise.
* gnulib/lib/sys_stat.in.h: Likewise.
* gnulib/lib/sys_time.in.h: Likewise.
* gnulib/lib/unistd.in.h: Likewise.
* gnulib/lib/wchar.in.h: Likewise.
* gnulib/m4/codeset.m4: Likewise.
* gnulib/m4/errno_h.m4: Likewise.
* gnulib/m4/extensions.m4: Likewise.
* gnulib/m4/getaddrinfo.m4: Likewise.
* gnulib/m4/gettext.m4: Likewise.
* gnulib/m4/glibc2.m4: Likewise.
* gnulib/m4/glibc21.m4: Likewise.
* gnulib/m4/gnulib-cache.m4: Likewise.
* gnulib/m4/gnulib-comp.m4: Likewise.
* gnulib/m4/iconv.m4: Likewise.
* gnulib/m4/include_next.m4: Likewise.
* gnulib/m4/intdiv0.m4: Likewise.
* gnulib/m4/intlmacosx.m4: Likewise.
* gnulib/m4/intmax.m4: Likewise.
* gnulib/m4/inttypes-pri.m4: Likewise.
* gnulib/m4/inttypes_h.m4: Likewise.
* gnulib/m4/lcmessage.m4: Likewise.
* gnulib/m4/lib-link.m4: Likewise.
* gnulib/m4/lstat.m4: Likewise.
* gnulib/m4/netdb_h.m4: Likewise.
* gnulib/m4/nls.m4: Likewise.
* gnulib/m4/po.m4: Likewise.
* gnulib/m4/printf-posix.m4: Likewise.
* gnulib/m4/printf.m4: Likewise.
* gnulib/m4/progtest.m4: Likewise.
* gnulib/m4/size_max.m4: Likewise.
* gnulib/m4/sockets.m4: Likewise.
* gnulib/m4/stdint.m4: Likewise.
* gnulib/m4/stdint_h.m4: Likewise.
* gnulib/m4/sys_ioctl_h.m4: Likewise.
* gnulib/m4/threadlib.m4: Likewise.
* gnulib/m4/uintmax_t.m4: Likewise.
* gnulib/m4/visibility.m4: Likewise.
* gnulib/m4/wchar.m4: Likewise.
* gnulib/m4/wchar_t.m4: Likewise.
* gnulib/m4/wint_t.m4: Likewise.
* gnulib/m4/xsize.m4: Likewise.
* gnulib/tests/Makefile.am: Likewise.
* gnulib/tests/sockets.h: Likewise.
* gnulib/tests/.cvsignore: Likewise.
* gnulib/tests/.gitignore: Likewise.
* tests/.gitignore: Likewise.
* docs/examples/.gitignore: Likewise.
* gnulib/lib/.cvsignore: Likewise.
* gnulib/lib/.gitignore: Likewise.

remove files associated with obsolete strpbrk module
* gnulib/lib/strpbrk.c: Remove file.
* gnulib/m4/strpbrk.m4: Remove file.

16 years agoFix misc mingw portability problems
Daniel P. Berrange [Tue, 6 Jan 2009 18:32:03 +0000 (18:32 +0000)]
Fix misc mingw portability problems

16 years agoadd virKillProcess
Guido Günther [Tue, 6 Jan 2009 17:46:46 +0000 (17:46 +0000)]
add virKillProcess

16 years agotrivial cleanups
Guido Günther [Tue, 6 Jan 2009 17:20:27 +0000 (17:20 +0000)]
trivial cleanups

16 years agoignore generated TAGS files
Guido Günther [Tue, 6 Jan 2009 17:14:18 +0000 (17:14 +0000)]
ignore generated TAGS files

16 years ago* AUTHORS: John Levon is now a commiter
Daniel Veillard [Tue, 6 Jan 2009 16:18:59 +0000 (16:18 +0000)]
* AUTHORS: John Levon is now a commiter
Daniel

16 years agofix "make dist" (from scratch) failure
Jim Meyering [Tue, 6 Jan 2009 15:22:57 +0000 (15:22 +0000)]
fix "make dist" (from scratch) failure

* src/Makefile.am (EXTRA_DIST): Don't distribute libvirt_sym.version,
now that it's been removed.  Spotted by Daniel Veillard.

16 years agodist: distribute all libvirt_*.syms files, ...
Jim Meyering [Tue, 6 Jan 2009 15:16:43 +0000 (15:16 +0000)]
dist: distribute all libvirt_*.syms files, ...

* src/Makefile.am (EXTRA_DIST): Distribute all libvirt_*.syms files,
not just those that happen to be selected at configure time.

16 years agoavoid syntax-check (po-check) failure due to FP match on gettext.m4
Jim Meyering [Tue, 6 Jan 2009 09:48:30 +0000 (09:48 +0000)]
avoid syntax-check (po-check) failure due to FP match on gettext.m4

* Makefile.maint (po-check): Exclude .m4 files.

16 years ago* qemud/remote.c: fix compilation without SASL, patch by John Levon
Daniel Veillard [Tue, 6 Jan 2009 09:44:34 +0000 (09:44 +0000)]
* qemud/remote.c: fix compilation without SASL, patch by John Levon
daniel

16 years ago* po/*: updated polish and brazilian translations, regenerated
Daniel Veillard [Tue, 6 Jan 2009 08:48:48 +0000 (08:48 +0000)]
* po/*: updated polish and brazilian translations, regenerated
Daniel

16 years ago* src/storage_backend_fs.c: Make mntent.h specific to the FS storage
Daniel Veillard [Tue, 6 Jan 2009 08:43:44 +0000 (08:43 +0000)]
* src/storage_backend_fs.c: Make mntent.h specific to the FS storage
  backend, patch by John Levon
daniel

16 years agoRemove storage backend symbols from version script
Jim Meyering [Mon, 5 Jan 2009 14:10:40 +0000 (14:10 +0000)]
Remove storage backend symbols from version script

* src/libvirt_private.syms: Remove virStorageBackend* symbol names.
They're linked into qemud, not libvirt.
Author: John Levon

16 years agomigrate linux-specific symbol names into their own sym file
Jim Meyering [Mon, 5 Jan 2009 14:08:26 +0000 (14:08 +0000)]
migrate linux-specific symbol names into their own sym file

* configure.in (WITH_LINUX): New automake conditional.
* src/Makefile.am (PRIVSYMFILES) [WITH_LINUX]: Append libvirt_linux.syms.
* src/libvirt_private.syms: Move two symbol names into...
* src/libvirt_linux.syms: ...this new file.
Author: John Levon

16 years agoMove bridge symbols into a separate syms file
Jim Meyering [Mon, 5 Jan 2009 14:07:31 +0000 (14:07 +0000)]
Move bridge symbols into a separate syms file

* configure.in: Provide a new --with-bridge option.
* src/Makefile.am (PRIVSYMFILES) [WITH_BRIDGE]: Append libvirt_bridge.syms.
* src/bridge.c: Test WITH_BRIDGE rather than particular drivers.
* src/libvirt_private.syms: Move bridge-related symbols into...
* src/libvirt_bridge.syms: ...this new file.
Author: John Levon

16 years agoMove --with-driver-modules symbols into a separate sym file
Jim Meyering [Mon, 5 Jan 2009 14:06:41 +0000 (14:06 +0000)]
Move --with-driver-modules symbols into a separate sym file

* src/Makefile.am (PRIVSYMFILES): Append libvirt_driver_modules.syms.
* src/libvirt_private.syms: Move virDriverLoadModule into...
* src/libvirt_driver_modules.syms: ... this new file.
Author: John Levon

16 years agosplit version script into multiple files
Jim Meyering [Mon, 5 Jan 2009 14:05:29 +0000 (14:05 +0000)]
split version script into multiple files

* src/Makefile.am (PRIVSYMFILES): Define.
(EXTRA_DIST): Append $(PRIVSYMFILES).
(libvirt.syms): New rule.
Reflect renaming: s/libvirt_sym.version/libvirt.syms/.
(BUILT_SOURCES): Depend on libvirt.syms.
* configure.in: Define ENABLE_DEBUG as an automake conditional.
(AC_OUTPUT): Remove src/libvirt_sym.version.
* src/.cvsignore: s/libvirt_sym.version/libvirt.syms/.
* src/.gitignore: Regenerate.
* src/libvirt_public.syms: Renamed from src/libvirt_sym.version.in.
* src/libvirt_debug.syms: New file.
* src/libvirt_private.syms: New file.
Author: John Levon

16 years agoavoid xgettext warning aboug bug-reporting address
Jim Meyering [Mon, 5 Jan 2009 13:28:33 +0000 (13:28 +0000)]
avoid xgettext warning aboug bug-reporting address

* po/Makevars (MSGID_BUGS_ADDRESS): Set, to avoid xgettext warning.
* po/libvirt.pot: Set bug-reporting address.

16 years agoavoid bogus descriptions due to use of gettext with the empty string
Jim Meyering [Mon, 5 Jan 2009 13:27:43 +0000 (13:27 +0000)]
avoid bogus descriptions due to use of gettext with the empty string

* src/virsh.c: Use `""', not `gettext_noop("")', in numerous
vshCmdInfo definitions.  The latter provokes a warning from gettext.

16 years agoMakefile.maint: sync from coreutils
Jim Meyering [Mon, 5 Jan 2009 13:17:34 +0000 (13:17 +0000)]
Makefile.maint: sync from coreutils

16 years agoFix numa build on F9, 32-bit
Daniel P. Berrange [Mon, 5 Jan 2009 12:56:36 +0000 (12:56 +0000)]
Fix numa build on F9, 32-bit

16 years ago* Makefile.maint (msg_gen_function): Add to the list.
Jim Meyering [Mon, 5 Jan 2009 08:17:31 +0000 (08:17 +0000)]
* Makefile.maint (msg_gen_function): Add to the list.

16 years agomark a few diagnostics for translation
Jim Meyering [Mon, 5 Jan 2009 08:16:44 +0000 (08:16 +0000)]
mark a few diagnostics for translation

* src/xen_inotify.c (xenInotifyXendDomainsDirLookup): Mark a diagnostic.
(xenInotifyXendDomainsDirRemoveEntry, xenInotifyOpen): Likewise.

16 years agoHACKING: mention bool and other scalar types, const-correctness
Jim Meyering [Mon, 5 Jan 2009 08:12:11 +0000 (08:12 +0000)]
HACKING: mention bool and other scalar types, const-correctness

16 years agodocument vnc's keymap attribute
Guido Günther [Fri, 26 Dec 2008 13:37:53 +0000 (13:37 +0000)]
document vnc's keymap attribute

16 years ago* docs/logging.html docs/logging.html.in: new page documenting
Daniel Veillard [Tue, 23 Dec 2008 13:47:10 +0000 (13:47 +0000)]
* docs/logging.html docs/logging.html.in: new page documenting
  the logging system
* docs/auth.html docs/deployment.html docs/remote.html
  docs/sitemap.html docs/sitemap.html.in docs/uri.html
  docs/windows.html: integration in the existing set
Daniel

16 years agoadd .x-sc_prohibit_asprintf
Guido Günther [Tue, 23 Dec 2008 13:40:42 +0000 (13:40 +0000)]
add .x-sc_prohibit_asprintf

16 years agouse virAsprintf instead of asprintf
Guido Günther [Tue, 23 Dec 2008 13:03:29 +0000 (13:03 +0000)]
use virAsprintf instead of asprintf

16 years agoFix storage driver null dereference.
Cole Robinson [Mon, 22 Dec 2008 16:30:57 +0000 (16:30 +0000)]
Fix storage driver null dereference.

16 years agoMerge xml building for virsh pool-*-as
Cole Robinson [Mon, 22 Dec 2008 16:23:36 +0000 (16:23 +0000)]
Merge xml building for virsh pool-*-as

16 years agofix make check with the new logging support
Daniel Veillard [Mon, 22 Dec 2008 16:16:10 +0000 (16:16 +0000)]
fix make check with the new logging support
* qemud/qemud.c qemud/test_libvirtd_qemu.aug tests/Makefile.am
  tests/daemon-conf: fix make check with the new logging support
  the messages now carry a timestamp which need to be removed,
  the daemon needs to exit if the log configuration informations
  are wrong and we also look at the LIBVIRT_DEBUG environment
  variable
Daniel

16 years ago* qemud/mdns.c: fix a compilation problem in the switch
Daniel Veillard [Mon, 22 Dec 2008 13:08:13 +0000 (13:08 +0000)]
* qemud/mdns.c: fix a compilation problem in the switch
daniel

16 years agoDocument the new daemon options
Daniel Veillard [Mon, 22 Dec 2008 12:57:35 +0000 (12:57 +0000)]
Document the new daemon options
* qemud/libvirtd.aug qemud/libvirtd.conf: document the new
  options in the config file and augment the Augeas description
daniel

16 years agoFinish switching the daemon code to new logging
Daniel Veillard [Mon, 22 Dec 2008 12:55:47 +0000 (12:55 +0000)]
Finish switching the daemon code to new logging
* qemud/event.c qemud/mdns.c qemud/remote.c: switch other pieces
  of the daemon to the new logging infrastructure
daniel

16 years agoSwitch daemon to new logging APIs
Daniel Veillard [Mon, 22 Dec 2008 12:53:26 +0000 (12:53 +0000)]
Switch daemon to new logging APIs
* qemud/qemud.c qemud/qemud.h: replace the daemon old logging
  infrastructure with the new one and parse configuration options
daniel

16 years ago* src/uml_conf.c: another logging conversion
Daniel Veillard [Mon, 22 Dec 2008 10:53:07 +0000 (10:53 +0000)]
* src/uml_conf.c: another logging conversion
daniel

16 years agoconvert old logging to the new API
Daniel Veillard [Mon, 22 Dec 2008 10:48:59 +0000 (10:48 +0000)]
convert old logging to the new API
* src/node_device_devkit.c src/uml_driver.c src/virterror.c:
  convert old logging to the new API
daniel

16 years ago* src/libvirt.c: convert entry points to new logging
Daniel Veillard [Mon, 22 Dec 2008 10:46:01 +0000 (10:46 +0000)]
* src/libvirt.c: convert entry points to new logging
daniel

16 years ago* src/logging.h src/logging.c: commited the more recent version
Daniel Veillard [Mon, 22 Dec 2008 10:44:10 +0000 (10:44 +0000)]
* src/logging.h src/logging.c: commited the more recent version
  with function name and line number
daniel

16 years agonew internal logging APIs
Daniel Veillard [Mon, 22 Dec 2008 10:36:54 +0000 (10:36 +0000)]
new internal logging APIs
* src/logging.h src/logging.c: add the infrastructure and internal
  APIs for logging, some of those APIs should be made public later
* src/libvirt_sym.version.in: flag the internal APIs as such
daniel

16 years ago* src/xen_internal.h: remove tabs to fix make syntax-check
Daniel Veillard [Mon, 22 Dec 2008 10:32:20 +0000 (10:32 +0000)]
* src/xen_internal.h: remove tabs to fix make syntax-check
  and fix the indentation
daniel

16 years agomake NUMA-initialization code more portable and more robust
Jim Meyering [Sun, 21 Dec 2008 18:55:09 +0000 (18:55 +0000)]
make NUMA-initialization code more portable and more robust

qemudCapsInitNUMA and umlCapsInitNUMA were identical, so this change
factors them into a new function, virCapsInitNUMA, and puts it in
nodeinfo.c.

In addition to factoring out the duplicates, this change also
adjusts that function definition (along with its macros) so
that it works with Fedora 9's numactl version 1, and makes it
so the code will work even if someone builds the kernel with
CONFIG_NR_CPUS > 4096.

Finally, also perform this NUMA initialization for the lxc
and openvz drivers.

* src/nodeinfo.c: Include <stdint.h>, <numa.h> and "memory.h".
(virCapsInitNUMA): Rename from qemudCapsInitNUMA and umlCapsInitNUMA.
(NUMA_MAX_N_CPUS): Define depending on NUMA API version.
(n_bits, MASK_CPU_ISSET): Define, adjust, use uint64 rather than long.
* src/nodeinfo.h: Include "capabilities.h".
(virCapsInitNUMA): Declare it.
* examples/domain-events/events-c/Makefile.am:
* src/Makefile.am: Add $(NUMACTL_CFLAGS) and $(NUMACTL_LIBS) to various
compile/link-related variables.
* src/qemu_conf.c: Include "nodeinfo.h".
(qemudCapsInitNUMA): Remove duplicate code.  Adjust caller.
* src/uml_conf.c (umlCapsInitNUMA): Likewise.
Include "nodeinfo.h".
* src/lxc_conf.c: Include "nodeinfo.h".
(lxcCapsInit): Perform NUMA initialization here, too.
* src/openvz_conf.c (openvzCapsInit): And here.
Include "nodeinfo.h".
* src/libvirt_sym.version.in: Add virCapsInitNUMA so that libvirtd
can link to this function.

16 years ago* src/node_device_hal.c: Include <config.h> before everything else.
Jim Meyering [Sun, 21 Dec 2008 18:49:11 +0000 (18:49 +0000)]
* src/node_device_hal.c: Include <config.h> before everything else.

16 years agoRe-generated doc
Daniel P. Berrange [Sun, 21 Dec 2008 17:26:21 +0000 (17:26 +0000)]
Re-generated doc

16 years agoavoid "make check" failures due to localized error messages
Guido Günther [Sat, 20 Dec 2008 23:23:50 +0000 (23:23 +0000)]
avoid "make check" failures due to localized error messages

16 years agosave and remove kvm/qemu domain status
Guido Günther [Sat, 20 Dec 2008 13:17:49 +0000 (13:17 +0000)]
save and remove kvm/qemu domain status

16 years agoadd XML parsing for qemu/kvm status files
Guido Günther [Sat, 20 Dec 2008 13:09:45 +0000 (13:09 +0000)]
add XML parsing for qemu/kvm status files

16 years agodocs/formatdomain.html.in: Fix documentation typo
Richard W.M. Jones [Fri, 19 Dec 2008 10:44:01 +0000 (10:44 +0000)]
docs/formatdomain.html.in: Fix documentation typo
         (aozturk in #virt).

16 years agofix device hotplug
Guido Günther [Thu, 18 Dec 2008 16:49:49 +0000 (16:49 +0000)]
fix device hotplug

16 years agolet qemu/kvm instances write a pid file
Guido Günther [Thu, 18 Dec 2008 15:22:49 +0000 (15:22 +0000)]
let qemu/kvm instances write a pid file

16 years agoReplace __FUNCTION__ with __func__ for better portability (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 12:25:11 +0000 (12:25 +0000)]
Replace __FUNCTION__ with __func__ for better portability (John Levon)

16 years agoFix gcc-ism in python build (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 12:20:00 +0000 (12:20 +0000)]
Fix gcc-ism in python build (John Levon)

16 years agoFix mistaken free of domain event object after queueing (David Lively)
Daniel P. Berrange [Thu, 18 Dec 2008 12:11:53 +0000 (12:11 +0000)]
Fix mistaken free of domain event object after queueing (David Lively)

16 years agoFix test driver return value & disable nodeinfotest on non-linux (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 12:08:05 +0000 (12:08 +0000)]
Fix test driver return value & disable nodeinfotest on non-linux (John Levon)

16 years agoFix unused variable compile warning when polkit is disabled (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 12:00:45 +0000 (12:00 +0000)]
Fix unused variable compile warning when polkit is disabled (John Levon)

16 years agoUse pid_t for all PID tracking variables (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 11:58:28 +0000 (11:58 +0000)]
Use pid_t for all PID tracking variables (John Levon)

16 years agoDon't munge default network XML if uuidgen is not present (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 11:54:34 +0000 (11:54 +0000)]
Don't munge default network XML if uuidgen is not present (John Levon)

16 years agoMisc daemon fixes (John Levon)
Daniel P. Berrange [Thu, 18 Dec 2008 11:52:06 +0000 (11:52 +0000)]
Misc daemon fixes (John Levon)

16 years agodocs/virsh.pod: typo fix
Jim Meyering [Thu, 18 Dec 2008 06:48:13 +0000 (06:48 +0000)]
docs/virsh.pod: typo fix

16 years agoMakefile.maint: use $(srcdir), not $(top_srcdir)
Jim Meyering [Thu, 18 Dec 2008 06:45:05 +0000 (06:45 +0000)]
Makefile.maint: use $(srcdir), not $(top_srcdir)

16 years agoFix unreachable statement (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:50:02 +0000 (21:50 +0000)]
Fix unreachable statement (John Levon)

16 years agoFix domain events callback type (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:48:20 +0000 (21:48 +0000)]
Fix domain events callback type (John Levon)

16 years agoRemove non-existant symbols from linker script (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:42:49 +0000 (21:42 +0000)]
Remove non-existant symbols from linker script (John Levon)

16 years agoConvert linker script comments & linker args to be Solaris compat (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:39:41 +0000 (21:39 +0000)]
Convert linker script comments & linker args to be Solaris compat (John Levon)

16 years agoFix __sun macro check (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:31:51 +0000 (21:31 +0000)]
Fix __sun macro check (John Levon)

16 years agoFix return type for Xen open subdriver method impl (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:26:16 +0000 (21:26 +0000)]
Fix return type for Xen open subdriver method impl (John Levon)

16 years agoFix openvz crash when setting vcpus & initialize mutex (Anton Protopopov)
Daniel P. Berrange [Wed, 17 Dec 2008 21:13:19 +0000 (21:13 +0000)]
Fix openvz crash when setting vcpus & initialize mutex (Anton Protopopov)

16 years agoRemove trailing semi-colons causing empty statement warnings (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 21:09:44 +0000 (21:09 +0000)]
Remove trailing semi-colons causing empty statement warnings (John Levon)

16 years agoRemove use of anonymous unions for non-GCC (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 18:12:07 +0000 (18:12 +0000)]
Remove use of anonymous unions for non-GCC (John Levon)

16 years agoportability: don't include <endian.h> or <byteswap.h>
Jim Meyering [Wed, 17 Dec 2008 18:08:42 +0000 (18:08 +0000)]
portability: don't include <endian.h> or <byteswap.h>

* src/storage_backend_fs.c: Don't include <endian.h> or <byteswap.h>.
(LV_BIG_ENDIAN, LV_LITTLE_ENDIAN): Define.
Use those instead of __BIG_ENDIAN and __LITTLE_ENDIAN.

16 years agoRemove use of _PATH_DEVNULL in favour of /dev/null for portability (John Levon)
Daniel P. Berrange [Wed, 17 Dec 2008 18:04:55 +0000 (18:04 +0000)]
Remove use of _PATH_DEVNULL in favour of /dev/null for portability (John Levon)

16 years agoenforce the "include <config.h> first" rule
Jim Meyering [Wed, 17 Dec 2008 17:23:21 +0000 (17:23 +0000)]
enforce the "include <config.h> first" rule

* qemud/Makefile.am: Ensure that the generated remote_protocol.c
includes <config.h> first.
* Makefile.maint (sc_require_config_h_first): New rule, so that
"make syntax-check" enforces this.
* .x-sc_require_config_h_first: New file.
* Makefile.am (.x-sc_require_config_h_first): Add it.
* qemud/remote_protocol.x: Don't include <config.h> here.
* qemud/remote_protocol.c: Regenerate.

16 years agolet gcc's -Wformat do its job; avoid "make syntax-check" failure
Jim Meyering [Wed, 17 Dec 2008 17:22:43 +0000 (17:22 +0000)]
let gcc's -Wformat do its job; avoid "make syntax-check" failure

* src/util.c (virAsprintf): Remove trailing space.
* src/util.h (virAsprintf): Use ATTRIBUTE_FORMAT.
* HACKING (Printf-style functions): New section.

16 years agoAdd missing checks for read-only connection flag (CVE-2008-5086)
Daniel P. Berrange [Wed, 17 Dec 2008 16:45:22 +0000 (16:45 +0000)]
Add missing checks for read-only connection flag (CVE-2008-5086)

16 years ago* configure.in: detect syslog.h
Daniel Veillard [Wed, 17 Dec 2008 16:08:47 +0000 (16:08 +0000)]
* configure.in: detect syslog.h
daniel

16 years agouse $(top_srcdir) for m4/ and $(VC_LIST)
Guido Günther [Wed, 17 Dec 2008 08:30:20 +0000 (08:30 +0000)]
use $(top_srcdir) for m4/ and $(VC_LIST)

16 years agofix numa-related (and kernel-dependent) test failures
Jim Meyering [Wed, 17 Dec 2008 07:05:45 +0000 (07:05 +0000)]
fix numa-related (and kernel-dependent) test failures

This change is required on some kernels due to the way a change in
the kernel's CONFIG_NR_CPUS propagates through the numa library.
* src/qemu_conf.c (qemudCapsInitNUMA): Pass numa_all_cpus_ptr->size/8
as the buffer-length-in-bytes in the call to numa_node_to_cpus, since
that's what is required on second and subseqent calls.
* src/uml_conf.c (umlCapsInitNUMA): Likewise.

16 years agoSanitize qemu monitor reads.
Cole Robinson [Tue, 16 Dec 2008 22:34:13 +0000 (22:34 +0000)]
Sanitize qemu monitor reads.

16 years agoadd virAsprintf
Guido Günther [Mon, 15 Dec 2008 20:09:29 +0000 (20:09 +0000)]
add virAsprintf

16 years ago* src/storage_driver.c: fix a segfault, patch by Miloslav TrmaC
Daniel Veillard [Mon, 15 Dec 2008 15:34:30 +0000 (15:34 +0000)]
* src/storage_driver.c: fix a segfault, patch by Miloslav TrmaC
daniel

16 years agoFix deadlock when reloading configs
Daniel P. Berrange [Mon, 15 Dec 2008 11:00:11 +0000 (11:00 +0000)]
Fix deadlock when reloading configs

16 years agoremove redundant optname arguments
Jim Meyering [Mon, 15 Dec 2008 10:26:54 +0000 (10:26 +0000)]
remove redundant optname arguments

This is the second part of the change mentioned here:

  http://thread.gmane.org/gmane.comp.emulators.libvirt/10331

It removes the essentially redundant "optname" parameter
from each of the vshCommandOptNetworkBy and vshCommandOptDomainBy
functions as well as the correspond macros (without "By" suffix).
Now, instead of always passing the optname, "domain", to
vshCommandOptDomainBy, that function requires that its command
argument refer to an opts array containing a "domain" option.

This normalization makes one more help-related change:
it renames the net-start "name" argument to the more
sensible and consistent "network".
* src/virsh.c (VSH_BYNAME, vshCommandOptDomain)
(cmd_has_option): New function, used in vshCommandOptDomainBy
and vshCommandOptNetworkBy.
(vshCommandOptDomainBy, vshCommandOptNetworkBy): Remove the optname
parameter, it's always "domain" ("network").  Update all callers.
Call cmd_has_option.
(vshCommandOptNetwork, cmdAutostart, cmdConsole, cmdDomstate)
(cmdDomblkstat, cmdDomIfstat, cmdSuspend, cmdUndefine, cmdStart)
(cmdSave, cmdSchedinfo, cmdDump, cmdResume, cmdShutdown)
(cmdReboot, cmdDestroy, cmdDominfo, cmdVcpuinfo, cmdVcpupin)
(cmdSetvcpus, cmdSetmem, cmdSetmaxmem, cmdDumpXML, cmdDomname)
(cmdDomid, cmdDomuuid, cmdMigrate, cmdNetworkAutostart)
(cmdNetworkDestroy, cmdNetworkDumpXML, cmdNetworkName)
(opts_network_start, cmdNetworkStart, cmdNetworkUndefine)
(cmdNetworkUuid, cmdVNCDisplay, cmdTTYConsole, cmdAttachDevice)
(cmdDetachDevice, cmdAttachInterface, cmdDetachInterface)
(cmdAttachDisk, cmdDetachDisk, cmdEdit)
* src/Makefile.am (virsh-pool-edit.c): This code is generated
from cmdEdit, and cmdEdit uses the vshCommandOptDomain macro which
now, with the changes above, has only 3 (was 4) arguments, yet the
macro use is mapped to vshCommandOptPool, which still requires 4
arguments.  So this change adjusts the sed code to reinsert the
just-removed argument -- we're not changing pool-related code right
now, because it's not as straight-forward.

16 years agosyntax-check: enforce the no-cvs-keywords prohibition
Jim Meyering [Mon, 15 Dec 2008 10:24:54 +0000 (10:24 +0000)]
syntax-check: enforce the no-cvs-keywords prohibition

* Makefile.maint (sc_prohibit_cvs_keyword): New rule.
Suggested by Daniel Veillard.
The new test exposed two uses of $Date$.
* docs/Goals: Don't use $Date$.
* python/TODO: Likewise.

16 years agoavoid a spurious test failure on non-numa systems
Jim Meyering [Fri, 12 Dec 2008 16:11:50 +0000 (16:11 +0000)]
avoid a spurious test failure on non-numa systems

* tests/daemon-conf: Ignore a spurious libnuma warning.
Reported by Daniel Veillard.

16 years agoOops did the wrong fix in previous commit, correct fix, Daniel
Daniel Veillard [Fri, 12 Dec 2008 14:01:03 +0000 (14:01 +0000)]
Oops did the wrong fix in previous commit, correct fix, Daniel

16 years ago* Makefile.maint: fix tabs in C source error message based on
Daniel Veillard [Fri, 12 Dec 2008 13:58:25 +0000 (13:58 +0000)]
* Makefile.maint: fix tabs in C source error message based on
  Dave Allan feedback
daniel

16 years agoremove cvs $Id$ strings
Jim Meyering [Fri, 12 Dec 2008 12:45:34 +0000 (12:45 +0000)]
remove cvs $Id$ strings

* po/id.po: Likewise.
* qemud/remote_generate_stubs.pl: Likewise.
* src/virsh.c: Likewise.
* tests/testutils.c: Likewise.
* tests/testutils.h: Likewise.
* RENAMES: Likewise.

16 years ago*** empty log message ***
Jim Meyering [Fri, 12 Dec 2008 12:19:21 +0000 (12:19 +0000)]
*** empty log message ***

16 years agoremove unused xmlrpc-related files
Jim Meyering [Fri, 12 Dec 2008 11:31:15 +0000 (11:31 +0000)]
remove unused xmlrpc-related files

* src/xmlrpc.h: Remove file.
* src/xmlrpc.c: Likewise.
* tests/test_xmlrpc.sh: Likewise.
* tests/xmlrpctest.c: Likewise.
* tests/xmlrpcserver.py: Likewise.
* tests/Makefile.am (EXTRA_DIST): Remove xmlserver.py.
(noinst_PROGRAMS): Remove xmlrpctest, along with associated variables.
* po/POTFILES.in: Remove src/xmlrpc.c.
* tests/.cvsignore: Remove xmlrpctest.

16 years agofix bits/bytes memory request mismatches
Daniel Veillard [Fri, 12 Dec 2008 10:39:19 +0000 (10:39 +0000)]
fix bits/bytes memory request mismatches
* src/qemu_conf.c src/uml_conf.c: fix a couple of places where
  we were requesting 8 times the required amount of memory,
  patch by Dave Allan
daniel

16 years agolook for devhelp.xsl in $(srcdir)
Guido Günther [Fri, 12 Dec 2008 09:47:14 +0000 (09:47 +0000)]
look for devhelp.xsl in $(srcdir)

16 years agofix serial/parallel virtual devices over tcp, unix and telnet
Guido Günther [Fri, 12 Dec 2008 09:39:31 +0000 (09:39 +0000)]
fix serial/parallel virtual devices over tcp, unix and telnet

16 years agoadd --version support to libvirtd
Daniel Veillard [Fri, 12 Dec 2008 07:56:50 +0000 (07:56 +0000)]
add --version support to libvirtd
* qemud/qemud.c: add --version support to libvirtd, patch by
  Dave Allan
* AUTHORS: add Dave Allan
Daniel

16 years ago* libvirt.spec.in: fix a conditional bug in spec file #460510,
Daniel Veillard [Fri, 12 Dec 2008 07:36:20 +0000 (07:36 +0000)]
* libvirt.spec.in: fix a conditional bug in spec file #460510,
  patch by Dave Allan
daniel

16 years ago* src/util.c: retry poll() in EINTR failures, patch by Dave Allan
Daniel Veillard [Fri, 12 Dec 2008 07:29:39 +0000 (07:29 +0000)]
* src/util.c: retry poll() in EINTR failures, patch by Dave Allan
daniel

16 years agobuild: avoid libvirtd link failure with CFLAGS=-g
Jim Meyering [Thu, 11 Dec 2008 18:11:41 +0000 (18:11 +0000)]
build: avoid libvirtd link failure with CFLAGS=-g

* qemud/Makefile.am (libvirtd_LDADD): Add gnulib's libgnu.la last.
Otherwise, building with -g (no inlining) would fail due to a use
of c_isspace in libvirt_driver_qemu.a, which used to followed
libgnu.a in the link command.

16 years agosyntax-check: prohibit all new uses of gethostby* functions
Jim Meyering [Thu, 11 Dec 2008 15:14:03 +0000 (15:14 +0000)]
syntax-check: prohibit all new uses of gethostby* functions

* Makefile.maint (sc_prohibit_gethostby): New rule.
* .x-sc_prohibit_gethostby: Exempt the few existing uses.