]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
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

16 years agopass flags argument to all virDomain*DefParse* functions
Guido Günther [Thu, 8 Jan 2009 13:54:20 +0000 (13:54 +0000)]
pass flags argument to all virDomain*DefParse* functions

16 years agopoll: don't return uninitialized
Jim Meyering [Thu, 8 Jan 2009 08:55:20 +0000 (08:55 +0000)]
poll: don't return uninitialized

* gnulib/lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
[sync from gnulib also adjusts cpp indentation to reflect nesting.]

16 years agoadd more files pulled in via yesterday's gnulib upgrade
Jim Meyering [Wed, 7 Jan 2009 17:11:02 +0000 (17:11 +0000)]
add more files pulled in via yesterday's gnulib upgrade

* gnulib/m4/multiarch.m4: New file.
* gnulib/m4/hostent.m4: New file.
* gnulib/m4/servent.m4: New file.
* .x-sc_prohibit_gethostby: Exempt all gnulib/m4/* files, so
hostent.m4's uses of gethostbyname and gethostbyaddr do not
trigger a "make syntax-check" failure.

16 years agobootstrap: pull in gnulib's ioctl module
Jim Meyering [Wed, 7 Jan 2009 17:10:00 +0000 (17:10 +0000)]
bootstrap: pull in gnulib's ioctl module

* bootstrap: Invoke gnulib-tool with its --no-vc-files
option, since we version-control the files it imports.
This tells it not to mark imported files as cvs-ignored.
(modules): Add ioctl.
* gnulib/lib/ioctl.c: New file.
* gnulib/lib/sys_ioctl.in.h: New file.
* gnulib/tests/sys_ioctl.in.h: Removed.
* gnulib/tests/ioctl.c: Removed.
* gnulib/lib/Makefile.am: Update.
* gnulib/m4/gnulib-cache.m4: Likewise.
* gnulib/m4/gnulib-comp.m4: Likewise.
* gnulib/tests/Makefile.am: Likewise.
* gnulib/lib/.cvsignore: Ignore sys_ioctl.h.
* gnulib/lib/.gitignore: Regenerate.

16 years agoignore generated libvirtd.logrotate.
Jim Meyering [Wed, 7 Jan 2009 17:09:06 +0000 (17:09 +0000)]
ignore generated libvirtd.logrotate.

* qemud/.cvsignore: Add libvirtd.logrotate.
* qemud/.gitignore: Regenerate.

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.