]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agovirDomainMemoryPeek API
Richard W.M. Jones [Tue, 10 Jun 2008 10:43:28 +0000 (10:43 +0000)]
virDomainMemoryPeek API
        * include/libvirt/libvirt.h.in, src/libvirt.c, src/driver.h,
          src/libvirt_sym.version: New virDomainMemoryPeek API.
        * qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
          Support for remote.
        * src/qemu_driver.c: QEMU driver implementation of API.
        * src/test.c: Test driver (null) implementation of API.
        * docs/hvsupport.html.in: Document API.
        * libvirt.spec.in: New path /var/cache/libvirt for temporary
          storage of memory images.
        * qemud/libvirtd.init.in: Remove any old temp files in
          /var/cache/libvirt on restarts.
        * src/Makefile.am: make install creates /var/cache/libvirt.
        * configure.in: Detect mkdir -p.

16 years agoMon Jun 9 15:42:34 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>
David L. Leskovec [Mon, 9 Jun 2008 22:51:32 +0000 (22:51 +0000)]
Mon Jun  9 15:42:34 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>

* src/lxc_driver.c: Make console element is output only.  Always open new
PTY when starting a container.
Fix string overrun when storing console name in VM def struct

16 years agoBetter error messages in xend driver.
Richard W.M. Jones [Mon, 9 Jun 2008 12:16:03 +0000 (12:16 +0000)]
Better error messages in xend driver.
* src/xend_internal.c: Change virXendError function to take
varargs.  Better error messages throughout.

16 years agoSwitch over remaining driver code to use memory alloc apis
Daniel P. Berrange [Fri, 6 Jun 2008 11:09:57 +0000 (11:09 +0000)]
Switch over remaining driver code to use memory alloc apis

16 years agoSwitch daemon over to use internal memory allocation APIs
Daniel P. Berrange [Fri, 6 Jun 2008 10:52:01 +0000 (10:52 +0000)]
Switch daemon over to use internal memory allocation APIs

16 years agovirDomainBlockPeek QEMU and remote support
Richard W.M. Jones [Thu, 5 Jun 2008 21:12:26 +0000 (21:12 +0000)]
virDomainBlockPeek QEMU and remote support
* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
  Remote support.
* qemud/remote_dispatch_localvars.h,
  qemud/remote_dispatch_proc_switch.h,
  qemud/remote_dispatch_prototypes.h,
  qemud/remote_protocol.c,
  qemud/remote_protocol.h:
  Generated files for remote support.
* src/xen_unified.c, src/driver.h, src/libvirt.c: Small fix -
  pass flags around internally.
* src/qemu_driver.c: Support for QEMU.
* src/xend_internal.c: Remove redundant fstat call from Xen.

16 years agovirDomainBlockPeek call
Richard W.M. Jones [Thu, 5 Jun 2008 13:17:45 +0000 (13:17 +0000)]
virDomainBlockPeek call
* configure.in: Document AC_SYS_LARGEFILE.
* docs/hvsupport.html.in: Document HV support for virDomainBlockPeek.
* include/libvirt/libvirt.h.in, src/driver.h, src/libvirt.c,
src/libvirt_sym.version: Add virDomainBlockPeek infrastructure.
* src/qemu_driver.c, src/test.c: Null versions of this call.
* src/xen_unified.c, src/xend_internal.c, src/xend_internal.h,
src/xm_internal.c, src/xm_internal.h: Xen implementation.
* tests/sexpr2xmldata/sexpr2xml-curmem.xml,
tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: XML output
has been reordered slightly in the Xen driver, but should be
functionally the same.

16 years agoFix a few issues related to restart of libvirtd with containers running.
David L. Leskovec [Thu, 5 Jun 2008 06:03:00 +0000 (06:03 +0000)]
Fix a few issues related to restart of libvirtd with containers running.

Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>

* src/lxc_driver.c: Add sanity of tty pid before kill()
Ignore ECHILD errors during VM cleanup
Call functions to store tty pid and cleanup tty pid file
* src/lxc_conf.h: Add function to verify container process exists
Add facilities to manage storing the tty forward process pid
* src/lxc_conf.c: Add function to verify container process exists
Call function to verify container process during config load
Add facilities to manage storing the tty forward process pid
Call function to load tty pid during load config

16 years ago* src/xm_internal.c: If vcpu cpuset attribute is invalid
Richard W.M. Jones [Tue, 3 Jun 2008 08:01:45 +0000 (08:01 +0000)]
* src/xm_internal.c: If vcpu cpuset attribute is invalid
then display an error instead of silently ignoring it
(Hiroyuki Kaguchi).

16 years agoGeneral tips for contributing patches
Richard W.M. Jones [Mon, 2 Jun 2008 11:53:23 +0000 (11:53 +0000)]
General tips for contributing patches
* HACKING: Added section "general tips for contributing patches"
to this file.

16 years agoOnly run coverage tests if lcov is installed
Daniel P. Berrange [Thu, 29 May 2008 20:43:08 +0000 (20:43 +0000)]
Only run coverage tests if lcov is installed

16 years agoFix make dist
Daniel P. Berrange [Thu, 29 May 2008 20:09:56 +0000 (20:09 +0000)]
Fix make dist

16 years agoFix warning with OOM testing is disabled
Daniel P. Berrange [Thu, 29 May 2008 19:41:40 +0000 (19:41 +0000)]
Fix warning with OOM testing is disabled

16 years agoSwitch to using lcov for code coverage repots
Daniel P. Berrange [Thu, 29 May 2008 19:27:04 +0000 (19:27 +0000)]
Switch to using lcov for code coverage repots

16 years agoFix parted check & disable storage driver if daemon isn't present
Daniel P. Berrange [Thu, 29 May 2008 19:23:17 +0000 (19:23 +0000)]
Fix parted check & disable storage driver if daemon isn't present

16 years agoConvert to use new memory allocation APIs
Daniel P. Berrange [Thu, 29 May 2008 19:20:22 +0000 (19:20 +0000)]
Convert to use new memory allocation APIs

16 years agoPass allocation number to callback
Daniel P. Berrange [Thu, 29 May 2008 18:47:00 +0000 (18:47 +0000)]
Pass allocation number to callback

16 years agoConvert to use new memory allocation APIs
Daniel P. Berrange [Thu, 29 May 2008 18:45:36 +0000 (18:45 +0000)]
Convert to use new memory  allocation APIs

16 years agoFix missing check for memory allocation failure
Daniel P. Berrange [Thu, 29 May 2008 18:45:07 +0000 (18:45 +0000)]
Fix missing check for memory allocation failure

16 years agoConvert test suites over to new test infrastructure
Daniel P. Berrange [Thu, 29 May 2008 15:31:49 +0000 (15:31 +0000)]
Convert test suites over to new test infrastructure

16 years agoMisc OOM / memory leak fixes
Daniel P. Berrange [Thu, 29 May 2008 15:28:28 +0000 (15:28 +0000)]
Misc OOM / memory leak fixes

16 years agoGeneric test suite helpers for OOM testing
Daniel P. Berrange [Thu, 29 May 2008 15:21:45 +0000 (15:21 +0000)]
Generic test suite helpers for OOM testing

16 years agoGeneric OOM testing hooks
Daniel P. Berrange [Thu, 29 May 2008 15:13:07 +0000 (15:13 +0000)]
Generic OOM testing hooks

16 years agoDon't add trailing blanks in dominfo output
Daniel P. Berrange [Thu, 29 May 2008 14:56:12 +0000 (14:56 +0000)]
Don't add trailing blanks in dominfo output

16 years agoFix python code generation for storage APIs
Daniel P. Berrange [Thu, 29 May 2008 14:53:58 +0000 (14:53 +0000)]
Fix python code generation for storage APIs

16 years agoFix make syntax-check caused by trailing blanks
Atsushi SAKAI [Thu, 29 May 2008 05:21:53 +0000 (05:21 +0000)]
Fix make syntax-check caused by trailing blanks

16 years agoFix virsh dominfo test.
Richard W.M. Jones [Tue, 27 May 2008 13:51:52 +0000 (13:51 +0000)]
Fix virsh dominfo test.
* tests/virshdata/dominfo-fc4.txt: 'virsh dominfo' test
matches actual output with autostart status.

16 years agoDisplay autostart status in virsh dominfo command.
Richard W.M. Jones [Tue, 27 May 2008 09:41:25 +0000 (09:41 +0000)]
Display autostart status in virsh dominfo command.
* src/virsh.c: Display autostart status in virsh dominfo
command (Shigeki Sakamoto).

16 years agoFix use of header files in disk storage backend.
Richard W.M. Jones [Tue, 27 May 2008 08:56:56 +0000 (08:56 +0000)]
Fix use of header files in disk storage backend.
* src/storage_backend_disk.c: Include internal.h to resolve use
of header files.

16 years agoDeprecate the conn, dom and net fields in the _virError structure.
Richard W.M. Jones [Fri, 23 May 2008 08:32:08 +0000 (08:32 +0000)]
Deprecate the conn, dom and net fields in the _virError structure.
* include/libvirt/libvirt.h.in: Add VIR_DEPRECATED macro.
* src/internal.h: Internal code is allowed to use deprecated
features, so override VIR_DEPRECATED here.
* include/libvirt/virterror.h: Deprecate the conn, dom and net
fields in the _virError structure.

16 years agoStandardize use of header files, making internal.h primary.
Richard W.M. Jones [Fri, 23 May 2008 08:24:41 +0000 (08:24 +0000)]
Standardize use of header files, making internal.h primary.
* qemud/internal.h, qemud/qemud.h: Rename this file so it
doesn't conflict with src/internal.h.
* HACKING: Document how header files should be used.
* qemud/Makefile.am: Add src/ directory to includes.
* qemud/event.c, qemud/mdns.c, qemud/qemud.c, qemud/remote.c,
qemud/remote_protocol.c, qemud/remote_protocol.h,
qemud/remote_protocol.x, src/buf.c, src/libvirt.c,
src/nodeinfo.c, src/qemu_conf.c, src/qemu_driver.c,
src/stats_linux.c, src/storage_backend.c, src/storage_backend_fs.c,
src/storage_backend_iscsi.c, src/storage_backend_logical.c,
src/storage_conf.c, src/storage_driver.c, src/util.c,
src/util.h, src/virsh.c, src/virterror.c, src/xend_internal.c,
src/xml.c, tests/reconnect.c, tests/xmlrpctest.c,
tests/qparamtest.c: Standardize use of header files.
* docs/*, po/*: Rebuild docs.

16 years agoFix type-punning warning in remote code.
Richard W.M. Jones [Fri, 23 May 2008 07:59:00 +0000 (07:59 +0000)]
Fix type-punning warning in remote code.
* qemud/rpcgen_fix.pl: Case-insensitive string match on identifiers.
* qemud/remote_protocol.c: Update this generated file.

16 years agoFix misc leaks in qparams code, support ; as param separator. Add test suite
Daniel P. Berrange [Thu, 22 May 2008 23:49:36 +0000 (23:49 +0000)]
Fix misc leaks in qparams code, support ; as param separator. Add test suite

16 years agoRefactor QEMU command line building code for readability
Daniel P. Berrange [Thu, 22 May 2008 23:45:09 +0000 (23:45 +0000)]
Refactor QEMU command line building code for readability

16 years agoApply CPU pinning at startup for QEMU guests
Daniel P. Berrange [Thu, 22 May 2008 16:27:20 +0000 (16:27 +0000)]
Apply CPU pinning at startup for QEMU guests

16 years agoAdd support for VCPU pinning in QEMU driver
Daniel P. Berrange [Thu, 22 May 2008 16:20:31 +0000 (16:20 +0000)]
Add support for VCPU pinning in QEMU driver

16 years agoAdded missing config.h import
Daniel P. Berrange [Thu, 22 May 2008 16:18:40 +0000 (16:18 +0000)]
Added missing config.h import

16 years agoFix removal of iptable forwarding rules
Daniel P. Berrange [Thu, 22 May 2008 15:49:50 +0000 (15:49 +0000)]
Fix removal of iptable forwarding rules

16 years agoRemove duplicated error messages
Daniel P. Berrange [Thu, 22 May 2008 15:40:01 +0000 (15:40 +0000)]
Remove duplicated error messages

16 years agoFix misleading comment about numactl
Daniel P. Berrange [Thu, 22 May 2008 15:35:51 +0000 (15:35 +0000)]
Fix misleading comment about numactl

16 years agoQuote all args to configure.in macros
Daniel P. Berrange [Thu, 22 May 2008 15:34:02 +0000 (15:34 +0000)]
Quote all args to configure.in macros

16 years agoImplement NUMA info/apis in QEMU driver
Daniel P. Berrange [Thu, 22 May 2008 15:29:50 +0000 (15:29 +0000)]
Implement NUMA info/apis in QEMU driver

16 years agoWire up free memory APIs to remote driver/daemon
Daniel P. Berrange [Thu, 22 May 2008 15:20:25 +0000 (15:20 +0000)]
Wire up free memory APIs to remote driver/daemon

16 years agoFix misc memory leaks
Daniel P. Berrange [Thu, 22 May 2008 15:12:25 +0000 (15:12 +0000)]
Fix misc memory leaks

16 years ago"copy-paste" errors
Daniel Veillard [Thu, 22 May 2008 14:57:32 +0000 (14:57 +0000)]
"copy-paste" errors
* docs/formatdomain.html docs/formatdomain.html.in: Anton Protopopov
  pointed out a few "copy-paste" errors
daniel

16 years agoFix exit status check with qemu -help
Daniel P. Berrange [Wed, 21 May 2008 21:14:36 +0000 (21:14 +0000)]
Fix exit status check with qemu -help

16 years agoFixed couple of memory leaks wrt to virXXXDestroy APIs, and clarify docs to match...
Daniel P. Berrange [Wed, 21 May 2008 20:53:30 +0000 (20:53 +0000)]
Fixed couple of memory leaks wrt to virXXXDestroy APIs, and clarify docs to match reality

16 years agoDon't free C object after destroy method in python
Daniel P. Berrange [Wed, 21 May 2008 20:18:20 +0000 (20:18 +0000)]
Don't free C object after destroy method in python

16 years agoRun qemu with -help when probing for args
Daniel P. Berrange [Wed, 21 May 2008 19:43:39 +0000 (19:43 +0000)]
Run qemu with -help when probing for args

16 years agoAvoid initializing driver if pidfie is claimed. Always claim pidfile as root
Daniel P. Berrange [Tue, 20 May 2008 16:17:36 +0000 (16:17 +0000)]
Avoid initializing driver if pidfie is claimed. Always claim pidfile as root

16 years agoNotes on the use of listen_tls/listen_tcp
Daniel Veillard [Tue, 20 May 2008 15:55:00 +0000 (15:55 +0000)]
Notes on the use of listen_tls/listen_tcp
* docs/remote.html docs/remote.html.in: patch from Kenneth Nagin
  with Notes on the use of listen_tls/listen_tcp
Daniel

16 years agoplug two leaks
Jim Meyering [Fri, 16 May 2008 16:53:44 +0000 (16:53 +0000)]
plug two leaks

* src/qemu_conf.c (qemudParseXML): Free "obj" unconditionally.

16 years agoMake QEMU test suite independant of host OS capabilities
Daniel P. Berrange [Fri, 16 May 2008 16:51:30 +0000 (16:51 +0000)]
Make QEMU test suite independant of host OS capabilities

16 years ago* src/xml.c: Include "c-ctype.h".
Jim Meyering [Fri, 16 May 2008 14:18:38 +0000 (14:18 +0000)]
* src/xml.c: Include "c-ctype.h".

16 years agostart using c-ctype functions
Jim Meyering [Fri, 16 May 2008 09:37:44 +0000 (09:37 +0000)]
start using c-ctype functions

Up to now, we've been avoiding ctype functions like isspace, isdigit,
etc.  because they are locale-dependent.  Now that we have the c-ctype
functions, we can start using *them*, to make the code more readable
with changes like these:

-        /* This may not work on EBCDIC. */
-        if ((*p >= 'a' && *p <= 'z') ||
-            (*p >= 'A' && *p <= 'Z') ||
-            (*p >= '0' && *p <= '9'))
+        if (c_isalnum(*p))

-    while ((*cur >= '0') && (*cur <= '9')) {
+    while (c_isdigit(*cur)) {

Also, some macros in conf.c used names that conflicted with
standard meaning of "BLANK" and "SPACE", so I've adjusted them
to be in line with the definition of e.g., isblank.
In addition, I've wrapped those statement macros with do {...} while (0),
so that we can't forget the ";" after a use.  There was one like that
already (fixed below).  The missing semicolon would mess up automatic
indenting.
* src/buf.c (virBufferURIEncodeString):
* src/conf.c (IS_EOL, SKIP_BLANKS_AND_EOL, SKIP_BLANKS)
(virConfParseLong, virConfParseValue, virConfParseName)
(virConfParseSeparator, virConfParseStatement, IS_BLANK, IS_CHAR)
(IS_DIGIT, IS_SPACE, SKIP_SPACES):
* src/nodeinfo.c:
* src/qemu_conf.c (qemudParseInterfaceXML):
* src/qemu_driver.c (qemudDomainBlockStats):
* src/sexpr.c:
* src/stats_linux.c:
* src/util.c (virParseNumber, virDiskNameToIndex):
* src/uuid.c (hextobin, virUUIDParse):
* src/virsh.c:
* src/xml.c (parseCpuNumber, virParseCpuSet):

16 years agoavoid a double-free bug
Jim Meyering [Fri, 16 May 2008 09:30:10 +0000 (09:30 +0000)]
avoid a double-free bug

* src/qemu_conf.c (qemudParseXML): Ensure that "obj" is either
NULL or a valid malloc'd pointer before we might "goto error"
where it is freed.

16 years agoRemove use of strcmp()
Daniel P. Berrange [Thu, 15 May 2008 20:07:34 +0000 (20:07 +0000)]
Remove use of strcmp()

16 years agoFixe default disk bus selection logic
Daniel P. Berrange [Thu, 15 May 2008 16:24:26 +0000 (16:24 +0000)]
Fixe default disk bus selection logic

16 years agoSupport Xenner bootloader
Daniel P. Berrange [Thu, 15 May 2008 16:21:11 +0000 (16:21 +0000)]
Support Xenner bootloader

16 years agoPass -name arg to QEMU when available
Daniel P. Berrange [Thu, 15 May 2008 16:15:17 +0000 (16:15 +0000)]
Pass -name arg to QEMU when available

16 years agoAdd support for Xen input device in QEMU driver for xenner
Daniel P. Berrange [Thu, 15 May 2008 16:11:40 +0000 (16:11 +0000)]
Add support for Xen input device in QEMU driver for xenner

16 years agoSupport paravirt disk configuration for xenner guests
Daniel P. Berrange [Thu, 15 May 2008 16:05:41 +0000 (16:05 +0000)]
Support paravirt disk configuration for xenner guests

16 years agoavoid using STREQLEN with a literal; use STRPREFIX instead
Jim Meyering [Thu, 15 May 2008 14:21:34 +0000 (14:21 +0000)]
avoid using STREQLEN with a literal; use STRPREFIX instead

Likewise for STRNEQLEN -> !STRPREFIX.
* src/nodeinfo.c (linuxNodeInfoCPUPopulate):
* src/qemu_conf.c (qemudNetworkIfaceConnect):
(qemudParseInterfaceXML):
* src/qemu_driver.c (qemudDomainBlockStats):
* src/remote_internal.c (call):
* src/stats_linux.c (xenLinuxDomainDeviceID):
* src/xend_internal.c (xend_parse_sexp_desc):
(xend_get, sexpr_to_xend_topology):
* src/xm_internal.c (xenXMConfigCacheRefresh)
(xenXMDomainFormatXML):

16 years agoUpdate Stefan's email addr
Daniel P. Berrange [Thu, 15 May 2008 14:04:14 +0000 (14:04 +0000)]
Update Stefan's email addr

16 years agoFix default config param
Daniel P. Berrange [Thu, 15 May 2008 13:19:34 +0000 (13:19 +0000)]
Fix default config param

16 years ago* Makefile.maint (sc_prohibit_strcmp): Also prohibit strncmp.
Jim Meyering [Thu, 15 May 2008 07:12:43 +0000 (07:12 +0000)]
* Makefile.maint (sc_prohibit_strcmp): Also prohibit strncmp.

16 years agoChange libvirtd description from qemu only to various VM(i.e. Xen, LXC)
Atsushi SAKAI [Thu, 15 May 2008 06:12:32 +0000 (06:12 +0000)]
Change libvirtd description from qemu only to various VM(i.e. Xen, LXC)
Fix typos and comments

16 years agoIgnore generated test binaries
Daniel P. Berrange [Wed, 14 May 2008 23:56:33 +0000 (23:56 +0000)]
Ignore generated test binaries

16 years agoreplace two indentation TABs with spaces
Jim Meyering [Wed, 14 May 2008 21:23:02 +0000 (21:23 +0000)]
replace two indentation TABs with spaces

16 years agoremove trailing blanks
Jim Meyering [Wed, 14 May 2008 21:22:04 +0000 (21:22 +0000)]
remove trailing blanks

16 years agoexempt gnulib/ from "make syntax-check" strcmp prohibition
Jim Meyering [Wed, 14 May 2008 21:18:27 +0000 (21:18 +0000)]
exempt gnulib/ from "make syntax-check" strcmp prohibition

* .x-sc_prohibit_strcmp: New file.
* Makefile.am (EXTRA_DIST): Add .x-sc_prohibit_strcmp.

16 years agoAdded listen_addr config param for daemon (Stefan de Konink)
Daniel P. Berrange [Wed, 14 May 2008 20:57:20 +0000 (20:57 +0000)]
Added listen_addr config param for daemon (Stefan  de Konink)

16 years agoRemove all use of strcmp, strncmp in favour of STREQ, STREQLEN, STRPREFIX
Daniel P. Berrange [Wed, 14 May 2008 19:51:24 +0000 (19:51 +0000)]
Remove all use of strcmp, strncmp in favour of STREQ, STREQLEN, STRPREFIX

16 years agoavoid "not a string literal..." warnings
Jim Meyering [Tue, 13 May 2008 09:15:11 +0000 (09:15 +0000)]
avoid "not a string literal..." warnings

* src/qemu_conf.c (qemudParseInterfaceXML): Add "%s".
(qemudBuildCommandLine, qemudGenerateXML): Likewise.

16 years agoFix some stray leading spaces in Changelog entry for my last commit
David L. Leskovec [Tue, 13 May 2008 06:51:42 +0000 (06:51 +0000)]
Fix some stray leading spaces in Changelog entry for my last commit

16 years agoEnable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup
David L. Leskovec [Tue, 13 May 2008 06:30:58 +0000 (06:30 +0000)]
Enable libvirtd drivers to handle signals, in lxc, sigchld triggers vm cleanup
Mon May 12 23:32:21 PST 2008 David L. Leskovec <dlesko@linux.vnet.ibm.com>

* qemud/qemud.c: get siginfo with signals, distribute to drivers that
    register a handler
* src/driver.h: add sighandler function to state driver table
* src/internal.h: define virStateSigDispatcher functions
* src/libvirt.c: add __virStateSigDispatcher function
* src/libvirt_sym.version: add __virStateSigDispatcher
* src/lxc_driver.c: add sig handler function, cleanup vm when sigchld
    received from container process
* src/qemu_driver.c: NULL for sig handler (no handler) in state driver
* src/remote_internal.c: NULL for sig handler (no handler) in state driver
* src/storage_driver.c: NULL for sig handler (no handler) in state driver

17 years agoAdd support for -drive QEMU syntax, and virtio bus / disk type
Daniel P. Berrange [Fri, 9 May 2008 16:41:19 +0000 (16:41 +0000)]
Add support for -drive QEMU syntax, and virtio bus / disk type

17 years agoAdd new files from gnulib.
Jim Meyering [Fri, 9 May 2008 14:03:15 +0000 (14:03 +0000)]
Add new files from gnulib.

* gnulib/lib/c-ctype.c: New file.
* gnulib/lib/c-ctype.h: Likewise.
* gnulib/tests/test-c-ctype.c: Likewise.
* gnulib/tests/test-vc-list-files-git.sh: Likewise.
* gnulib/tests/test-vc-list-files-cvs.sh: Likewise.

17 years agoUse gnulib's c-ctype.h, not <ctype.h>.
Jim Meyering [Fri, 9 May 2008 13:50:14 +0000 (13:50 +0000)]
Use gnulib's c-ctype.h, not <ctype.h>.

# Convert uses of isspace to c_isspace, isdigit to c_isdigit, etc.
re=$(man isspace|grep is.....,.is|sed 's/ -.*//' \
  |tr -s ', \n' \||sed 's/^|//;s/|$//')
git grep -l -E "$re"|grep -Ev 'Chan|gnulib' \
  |xargs perl -pi -e 's/\b('"$re"')\b/c_$1/g'
# Remove all uses of to_uchar
git grep -l to_uchar|xargs perl -pi -e 's/to_uchar\((.*?)\)/$1/g'
* src/util.h (to_uchar): Remove definition.
(TOLOWER): Remove definition.
(__virMacAddrCompare): Use c_tolower, not TOLOWER.
Globally:
  Where needed, change <ctype.h> to <c-ctype.h>.
  Remove unnecessary inclusion of <ctype.h>.
Ensure the global changes are never needed again:
* Makefile.maint (sc_avoid_ctype_macros): Prohibit use of ctype
macros.   Recommend c-ctype.h instead.
(sc_prohibit_c_ctype_without_use): New rule.
(sc_prohibit_ctype_h): New rule.  Disallow use of <ctype.h>.

17 years agoPrepare to use gnulib's c-type module.
Jim Meyering [Fri, 9 May 2008 13:46:09 +0000 (13:46 +0000)]
Prepare to use gnulib's c-type module.

* bootstrap: Move module list into separate variable w/less syntax.
(modules): Add c-ctype.
Update the following from gnulib:
* build-aux/useless-if-before-free:
* build-aux/vc-list-files:
* gnulib/lib/Makefile.am:
* gnulib/lib/getaddrinfo.h:
* gnulib/m4/gnulib-cache.m4:
* gnulib/m4/gnulib-comp.m4:
* gnulib/m4/inet_ntop.m4:
* gnulib/tests/Makefile.am:
* gnulib/tests/test-getaddrinfo.c:

17 years agoautostart for running Xen domains
Daniel Veillard [Fri, 9 May 2008 08:17:18 +0000 (08:17 +0000)]
autostart for running Xen domains
* src/xen_unified.c src/xend_internal.c src/xend_internal.h: patch
  from Cole Robinson implementing autostart for running Xen domains
Daniel

17 years agosytnax-check: add a check for risky ctype macro use
Jim Meyering [Fri, 9 May 2008 08:11:13 +0000 (08:11 +0000)]
sytnax-check: add a check for risky ctype macro use

* Makefile.maint (sc_risky_ctype_macros): New rule.

17 years agoavoid one more ctype vs. sign-extension problem
Jim Meyering [Fri, 9 May 2008 08:09:48 +0000 (08:09 +0000)]
avoid one more ctype vs. sign-extension problem

* src/util.c (TOLOWER): Also convert tolower argument.

17 years agocomplete the previous change
Jim Meyering [Fri, 9 May 2008 08:06:50 +0000 (08:06 +0000)]
complete the previous change

17 years agoadd "const" and "static" attributes to file-scoped globals
Jim Meyering [Fri, 9 May 2008 08:02:44 +0000 (08:02 +0000)]
add "const" and "static" attributes to file-scoped globals

* src/storage_backend_fs.c (fileTypeInfo): Add "static" and two
"const" attributes.
(FileTypeInfo): Name the previously anonymous struct,
so the declaration of fileTypeInfo looks more conventional.
* src/xend_internal.c (sound_models): Mark as static, and
as an array of "const" entries.

These were relatively new additions to the list from here:
nm src/*.o|grep ' D '

17 years ago*** empty log message ***
David L. Leskovec [Fri, 9 May 2008 07:16:30 +0000 (07:16 +0000)]
*** empty log message ***

17 years agoAdded some notes about libvirt string/memory/buffer functions
Daniel P. Berrange [Thu, 8 May 2008 14:49:53 +0000 (14:49 +0000)]
Added some notes about libvirt string/memory/buffer functions

17 years agoAdded disk target bus type to Xen driver
Daniel P. Berrange [Thu, 8 May 2008 14:41:56 +0000 (14:41 +0000)]
Added disk target bus type to Xen driver

17 years agoUpdate domain XML docs
Daniel P. Berrange [Thu, 8 May 2008 14:20:07 +0000 (14:20 +0000)]
Update domain XML docs

17 years agoFix polkit docs
Daniel P. Berrange [Thu, 8 May 2008 11:52:21 +0000 (11:52 +0000)]
Fix polkit docs

17 years agoDisable sound functions when in proxy
Daniel P. Berrange [Wed, 7 May 2008 18:50:23 +0000 (18:50 +0000)]
Disable sound functions when in proxy

17 years agoSetVcpus and DomainGetMaxVcpus for QEmu
Daniel Veillard [Wed, 7 May 2008 16:16:44 +0000 (16:16 +0000)]
SetVcpus and DomainGetMaxVcpus for QEmu
*  src/qemu_conf.c src/qemu_conf.h src/qemu_driver.c: another patch
   from Cole Robinson adding SetVcpus and DomainGetMaxVcpus for QEmu
Daniel

17 years agoMore regression tests for sound support
Daniel Veillard [Wed, 7 May 2008 14:44:20 +0000 (14:44 +0000)]
More regression tests for sound support
* tests/qemuxml2argvdata/qemuxml2argv-sound.args
  tests/qemuxml2argvdata/qemuxml2argv-sound.xml
  tests/sexpr2xmldata/sexpr2xml-fv-sound-all.sexpr
  tests/sexpr2xmldata/sexpr2xml-fv-sound-all.xml
  tests/sexpr2xmldata/sexpr2xml-fv-sound.sexpr
  tests/sexpr2xmldata/sexpr2xml-fv-sound.xml
  tests/xmconfigdata/test-fullvirt-sound.cfg
  tests/xmconfigdata/test-fullvirt-sound.xml
  tests/xml2sexprdata/xml2sexpr-fv-sound.sexpr
  tests/xml2sexprdata/xml2sexpr-fv-sound.xml: other regression
  tests from previous commit
Daniel

17 years agoSound support for QEmu and Xen
Daniel Veillard [Wed, 7 May 2008 14:04:40 +0000 (14:04 +0000)]
Sound support for QEmu and Xen
* src/qemu_conf.c src/qemu_conf.h src/xend_internal.c
  src/xend_internal.h src/xm_internal.c src/xml.c src/xml.h:
  Patch from Cole Robinson adding sound support for QEmu and Xen
* tests/qemuxml2argvtest.c tests/sexpr2xmltest.c
  tests/xmconfigtest.c tests/xml2sexprtest.c:
  Associated regression tests
Daniel

17 years agoAdded autogenerated TOC for network and storage XML reference docs
Daniel P. Berrange [Tue, 6 May 2008 23:23:55 +0000 (23:23 +0000)]
Added autogenerated TOC for network and storage XML reference docs

17 years agoFix build on F9 with missing stddefs.h include
Daniel P. Berrange [Tue, 6 May 2008 21:44:12 +0000 (21:44 +0000)]
Fix build on F9 with missing stddefs.h include

17 years ago* build-aux/vc-list-files: Add support for bzr.
Jim Meyering [Tue, 6 May 2008 21:23:20 +0000 (21:23 +0000)]
* build-aux/vc-list-files: Add support for bzr.

Author: Soren Hansen <soren@ubuntu.com>

17 years agoCheck in /usr/sbin for iptables too, for SUSE distros (Jim Fehlig)
Daniel P. Berrange [Mon, 5 May 2008 19:58:56 +0000 (19:58 +0000)]
Check in /usr/sbin for iptables too, for SUSE distros (Jim Fehlig)

17 years agoRemove bogus check for NULL in qparams breaking connections
Daniel P. Berrange [Thu, 1 May 2008 18:11:03 +0000 (18:11 +0000)]
Remove bogus check for NULL in qparams breaking connections

17 years agoRemove compat macros now present in onceonly.m4
Daniel P. Berrange [Wed, 30 Apr 2008 16:32:26 +0000 (16:32 +0000)]
Remove compat macros now present in onceonly.m4