Daniel P. Berrange
9351cb0ab0
Fix reporting of errors against virConnect object in XML apis
2008-07-25 14:27:25 +00:00
Daniel P. Berrange
cb29913fb1
Switch XM config file driver to use new domain APIs for XML to config conversion
2008-07-25 14:10:49 +00:00
Daniel P. Berrange
547bd71a4a
Switch XM config file driver to use new domain APIs for XML generation
2008-07-25 13:50:08 +00:00
Daniel P. Berrange
225fb3e93c
Prepare xm_internal driver for new domain XML apis
2008-07-25 13:39:02 +00:00
Daniel P. Berrange
73d021c5c1
Fix test driver inactive domains and domain ID allocation
2008-07-25 13:27:12 +00:00
Daniel P. Berrange
8c6f5a546b
Convert XenD XML->SEXPR conversion to new domain XML APIs
2008-07-25 13:17:27 +00:00
Daniel Veillard
5ee15074af
Skip python bindings for virDomainBlockPeek and virDomainMemoryPeek
...
* python/generator.py: skip generation for virDomainBlockPeek and
virDomainMemoryPeek as they break the build
Daniel
2008-07-25 12:37:06 +00:00
Daniel P. Berrange
31ac8125b8
Convert XenD SEXPR->XML convesion to new domain XML APIs
2008-07-25 10:49:33 +00:00
Daniel P. Berrange
d9383fe158
Remove unused/no-op Xen driver code
2008-07-25 09:51:23 +00:00
Daniel P. Berrange
0b4f277845
Enable openvz, lxc and xen proxy in automated builds
2008-07-25 09:43:23 +00:00
Daniel P. Berrange
3de646a51d
Misc bug fixes
2008-07-25 09:31:24 +00:00
Daniel Veillard
c1e6cc1969
* src/qemu_driver.c: some uuid to string conversion were missing
...
patch from Guido Günther
Daniel
2008-07-25 09:01:25 +00:00
Daniel Veillard
01fd287bcd
Remove Xen centric comments, rebuild the docs
...
* include/libvirt/libvirt.h include/libvirt/libvirt.h.in:
remove Xen centric comments patch from Guido Günther
* docs/apibuild.py: ignore VIR_DEPRECATED
* docs/libvirt-*.xml docs/html/libvirt-*.html: regenerated the
documentation for the API
Daniel
2008-07-25 08:52:19 +00:00
Daniel Veillard
6fae611381
wrong open() failure detection
...
* src/qemu_driver.c: Guido Trotter pointed out a wrong open() failure
detection
Daniel
2008-07-25 08:42:05 +00:00
Daniel Veillard
388502750e
* docs/libvirt.rng: patch from John Levon fixing various patterns
...
Daniel
2008-07-25 06:37:20 +00:00
Daniel Veillard
27efc8bd0d
Check for already running QEmu domain on create
...
* src/qemu_driver.c: another patch from Guido Günther checking
for an already running domain on create
Daniel
2008-07-24 07:29:50 +00:00
Daniel Veillard
d3bb1e4367
* src/qemu_driver.c: patch from Guido Günther checking for
...
unsupported migrate command
Daniel
2008-07-24 07:09:45 +00:00
Daniel Veillard
9d39ca744e
documentation for java bindings
...
* docs/java.html docs/java.html.in: added documentation for the
java bindings
Daniel
2008-07-22 17:49:53 +00:00
Jim Meyering
2eb8ab2057
better diagnostic when failing to undefine a running domain via ID
...
* src/virsh.c (cmdUndefine): Tell user to shutdown and then use name or UUID.
* tests/undefine: New test. Exercise virsh's undefine command.
* tests/Makefile.am (test_scripts): Add undefine.
2008-07-22 16:12:01 +00:00
Daniel Veillard
7e73b8b61a
cleaning up integer string parsing
...
* src/openvz_conf.c src/openvz_driver.c: patch from Evgeniy Sokolov
cleaning up integer string parsing.
Daniel
2008-07-21 13:34:19 +00:00
Daniel Veillard
403a5163c9
* src/xen_unified.c: fix a leak in xenUnifiedOpen
...
Daniel
2008-07-21 09:48:01 +00:00
Daniel Veillard
7b4f67acea
OpenVZ domain cpu time
...
* src/openvz_driver.c: patch from Evgeniy Sokolov to get OpenVZ
domain cpu time consumption.
Daniel
2008-07-21 08:08:25 +00:00
Daniel Veillard
92b56c0412
xen lib detection patch on 64bits
...
* configure.in: patch from David Lively to try to detect the xen
libs when using --with-xen-distdir= on 64bit arches.
Daniel
2008-07-21 08:03:58 +00:00
Daniel Veillard
cb3e65e922
* src/openvz_driver.c: patch from Evgeniy Sokolov avoiding domain
...
lookups based on ID as this doesn't work for a stopped domain.
Daniel
2008-07-21 07:31:14 +00:00
Jim Meyering
3ff5480d7b
remove unnecessary "V = NULL;" stmts after VIR_FREE(V)
...
* src/domain_conf.c (virDomainChrDefParseXML)
(virDomainNetDefParseXML): Likewise.
* src/iptables.c (iptRuleFree): Likewise.
* src/storage_backend.c (virStorageBackendRunProgRegex): Likewise.
* src/test.c (testOpenFromFile): Likewise.
* src/xmlrpc.c (xmlRpcCallRaw): Likewise.
2008-07-19 07:42:34 +00:00
Jim Meyering
cff27e9f40
enable format-safety checks for virDomainReportError
...
* src/domain_conf.c (virDomainReportError): Declare using
ATTRIBUTE_FORMAT(printf, 3, 4).
* Makefile.maint (msg_gen_function): Add virDomainReportError.
2008-07-18 11:02:18 +00:00
Daniel Veillard
dfccabe1e7
fix pool-create for netfs format 'auto'
...
* src/storage_backend_fs.c: patch from Cole Robinson fixing
pool-create for netfs format 'auto'
Daniel
2008-07-17 15:20:28 +00:00
Daniel Veillard
16b8942966
undefine command can't take an ID
...
* src/virsh.c: patch from Evgeniy Sokolov for the undefine command
which can't take an id
Daniel
2008-07-17 11:49:15 +00:00
Daniel Veillard
edbbb3aa12
ID domain lookup fixup
...
* src/libvirt.c src/openvz_driver.c: fix the description of the ID
domain lookup and fix the OpenVZ routine
Daniel
2008-07-16 20:42:38 +00:00
Daniel Veillard
07601749e8
lookup by ID function and error report fix for OpenVZ
...
* src/openvz_driver.c: fix the lookup by ID function and error
reporting in OpenVZ, fix by Evgeniy Sokolov
Daniel
2008-07-16 15:27:00 +00:00
Daniel Veillard
5553b0cd16
cleaning up the exec calls to OpenVZ binaries
...
* src/openvz_driver.c: another cleanup patch from Evgeniy Sokolov
cleaning up the exec calls to OpenVZ binaries
Daniel
2008-07-16 14:45:55 +00:00
Daniel P. Berrange
276bffd907
Remove unneccessary include
2008-07-12 13:53:50 +00:00
Daniel P. Berrange
6385fe3ede
Switch QEMU driver over to generic domain APIs
2008-07-11 19:34:11 +00:00
Daniel P. Berrange
774354e3ef
Set initial domain state to SHUTOFF
2008-07-11 19:31:26 +00:00
Daniel P. Berrange
a1b49bcdea
Use full path when loading XML files
2008-07-11 17:59:27 +00:00
Daniel P. Berrange
381fa1fc46
Switch QEMU driver over to generic network APIs
2008-07-11 17:33:45 +00:00
Daniel P. Berrange
d78c0a6800
Convert test driver to new domain XML apis
2008-07-11 16:41:27 +00:00
Daniel P. Berrange
c422fd1240
Convert test driver to new network XML apis
2008-07-11 16:39:08 +00:00
Daniel P. Berrange
d1304583d6
Added generic domain XML APIs
2008-07-11 16:23:36 +00:00
Daniel Veillard
d678a6e88c
fix OpenVZ probe function
...
* src/openvz_driver.c: fix from Evgeniy Sokolov to the probe function
Daniel
2008-07-11 11:09:44 +00:00
Daniel P. Berrange
747fad6654
Generic APIs for network XML configuration
2008-07-11 10:48:34 +00:00
Daniel P. Berrange
69582431a0
Fix booting QEMU off CDROM devices with -drive arg
2008-07-11 09:56:23 +00:00
Daniel P. Berrange
d4f6e9b5bb
Default to admin auth for polkit. Rename policy file
2008-07-11 09:51:25 +00:00
Daniel P. Berrange
5e239b00d6
Don't default to polkit auth when running non-root
2008-07-11 09:50:01 +00:00
Daniel P. Berrange
1d86fca433
Fix parsing of QEMU stdout looking for serial device PTY with Xenner
2008-07-11 09:48:51 +00:00
Daniel Veillard
915b86d29b
cleanup OpenVZ config file accesses
...
* src/openvz_conf.c: cleanup OpenVZ config file accesses, patch
from Evgeniy Sokolov
Daniel
2008-07-11 08:56:16 +00:00
Daniel Veillard
fc2076033b
bug in do_open()
...
* src/libvirt.c: Evgeniy Sokolov found a driver open bug
in do_open()
Daniel
2008-07-10 15:29:39 +00:00
Daniel Veillard
5215d88be2
cleanup OpenVZ error function
...
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c
Makefile.maint: patch from Evgeniy Sokolov cleaning up the
error function used and format check based on Jim's fedback.
Daniel
2008-07-10 12:21:09 +00:00
Daniel Veillard
a665a52cb3
domain name validation fix
...
* docs/libvirt.rng: domain name validation fix by John Levon
* AUTHORS: add John Levon
Daniel
2008-07-10 08:05:39 +00:00
Daniel Veillard
47010f352c
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: new
...
patch from Evgeniy Sokolov adding OpenVZ autostart get and set support
Daniel
2008-07-10 07:52:14 +00:00
Daniel Veillard
f7896554e9
Adds Evgeniy to AUTHORS list
...
Daniel
2008-07-09 11:57:40 +00:00
Daniel Veillard
db9bcc9bd4
diagnostic fixes on OpenVZ failures
...
* src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: applied
patch from Evgeniy Sokolov fixing error diagnostic when exec'ing
OpenVZ commands.
Daniel
2008-07-09 11:55:27 +00:00
Daniel P. Berrange
c207f75890
Fix use of VIR_TEST_DEBUG var when OOM testing is not enabled & surpress more valgrind warnings
2008-07-09 10:27:17 +00:00
Daniel P. Berrange
08397146eb
Remove legacy debug output
2008-07-09 10:18:03 +00:00
Daniel P. Berrange
0fac29a8c6
Fix QEMU test for xen bootloader
2008-07-09 08:46:09 +00:00
Daniel P. Berrange
b897973f2e
Preserve context node when doing XPath queries to allow relative XPath expressions
2008-07-09 08:35:09 +00:00
Jim Meyering
fb2eca4cfd
give a more useful diagnostic for tap-add failure w/ENOTSUP
...
* src/qemu_conf.c (qemudNetworkIfaceConnect):
Suggestion from Daniel P. Berrange.
2008-07-09 05:24:08 +00:00
Daniel P. Berrange
a211db1b8f
Fix typo in domain state constant
2008-07-08 17:49:26 +00:00
Daniel P. Berrange
24cef5fdfd
Fix three typos pointed out by Anton Protopopov
2008-07-08 17:44:56 +00:00
Daniel P. Berrange
95675d4d76
Fix openvz build on x86_64
2008-07-07 11:48:40 +00:00
Daniel P. Berrange
d1b5773ec1
Remove bogus return statement in test code
2008-07-07 10:36:30 +00:00
Daniel P. Berrange
0caf27a2b0
ALlow OOM tests to be parallelized
2008-07-07 10:10:29 +00:00
Daniel Veillard
8d18d826a4
* proxy/libvirt_proxy.c: fix a compilation problem without Xen
...
* libvirt.spec.in: add %{release] to BuildRoot
Daniel
2008-07-07 10:00:30 +00:00
Daniel P. Berrange
bf79e90f3a
Fix memory leak in OOM cleanup
2008-07-07 09:52:26 +00:00
Dan Smith
b6cd099df4
Updated ChangeLog for recent LXC patches
2008-07-02 14:20:10 +00:00
Atsushi SAKAI
fa97486070
Compilation fix for MinGW(w/ LXC)
2008-06-30 05:11:13 +00:00
Atsushi SAKAI
f3c3550771
Fix make syntax-check
2008-06-26 10:56:19 +00:00
Atsushi SAKAI
fbb5d771a0
Compilation fixes for MinGW
2008-06-26 09:37:51 +00:00
Jim Meyering
9c593643ff
quiet "make syntax-check"
...
* Makefile.maint (strftime-check): Add "@" prefix.
(po-check): Likewise.
2008-06-25 14:21:44 +00:00
Daniel Veillard
2de7d9d224
* python/types.c: patch from Ryan Scott to remove misplaced verbosity
...
when compiling in debug mode.
Daniel
2008-06-25 11:42:27 +00:00
Daniel Veillard
93db3c61c0
* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.4
...
release
* src/xm_internal.c: fix xm driver serialization escapes
* tests/xmconfigtest.c tests/xmconfigdata/test-escape-paths.cfg
tests/xmconfigdata/test-escape-paths.xml: add test for previous
problem
Daniel
2008-06-25 08:59:37 +00:00
Daniel Veillard
3f6d44e9c9
* po/*: updated a couple of localizations and regenerated the
...
files
Daniel
2008-06-25 08:49:54 +00:00
Daniel P. Berrange
47605e1dfa
Added helpers for dealing with enumerations
2008-06-24 15:00:15 +00:00
Daniel P. Berrange
313f1a7c0d
Fix const-ness of virStorageBackendRunProgRegex()
2008-06-24 14:30:25 +00:00
Daniel Veillard
1ec7cccbd3
fix a couple of List functions for max = 0 issues
...
* src/xen_internal.c src/xend_internal.c: fix a couple of issues
for List functions where max given is 0
Daniel
2008-06-19 14:39:49 +00:00
Jim Meyering
e09fab39a8
virsh fails to read files larger than BUFSIZ bytes
...
* src/util.c (fread_file_lim): Use VIR_REALLOC_N, not VIR_ALLOC_N.
Bug introduced in 895d0fdf5b
.
* tests/Makefile.am (test_scripts): Add read-bufsiz.
* tests/read-bufsiz: New test for the above.
2008-06-19 14:30:52 +00:00
Chris Lalancette
2dc11b36a1
Update the changelog to go along with my commits for the last week.
2008-06-19 14:22:54 +00:00
Daniel Veillard
a48f26c718
adding autogen.sh to EXTRA_DIST
...
* Makefile.am: adding autogen.sh to EXTRA_DIST
Daniel
2008-06-13 09:08:44 +00:00
Daniel Veillard
5ba9e91e52
* src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devices
...
for network should be defined in an 'interface' node not 'net'
Daniel
2008-06-13 07:56:59 +00:00
Daniel Veillard
7db4c905d7
* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3
...
release
Daniel
2008-06-12 16:10:50 +00:00
Daniel P. Berrange
841dd882a4
Fix misc compile warnings
2008-06-12 13:48:29 +00:00
Daniel P. Berrange
db162cb2b8
Fix saving of iptables rules
2008-06-12 13:47:38 +00:00
Daniel P. Berrange
74fb2b9704
Deal with inactive virtual network in domain creation
2008-06-12 10:19:24 +00:00
Daniel Veillard
5d14e4fcce
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
...
memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR
Daniel
2008-06-12 08:55:13 +00:00
Daniel Veillard
d7f62fefed
po regeneration
...
* po/*: update and regenerated
Daniel
2008-06-11 15:22:24 +00:00
Daniel P. Berrange
357bf10553
Fix RPM build
2008-06-11 11:26:36 +00:00
Daniel Veillard
c0626a02a9
* python/libvir.py python/libvirt-python-api.xml: more python
...
cleanups by Cole Robinson
Daniel
2008-06-11 07:49:01 +00:00
Daniel Veillard
b0a3d6809a
* configure.in: patch from Cole Robinson to reactivate storage
...
support
Daniel
2008-06-10 15:35:15 +00:00
Daniel Veillard
cb96ae2583
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
...
Apply patch from Cole Robinson fixing UUIDString for python
Daniel
2008-06-10 15:20:25 +00:00
Richard W.M. Jones
406d896363
Pass syntax check for XM block devices over to XenD
...
* src/xm_internal.c: Pass responsibility for checking syntax
of XM block devices over the XenD (see also Xen cset 17617).
(Hiroyuki Kaguchi).
2008-06-10 14:39:58 +00:00
Richard W.M. Jones
6bcf25017b
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.
2008-06-10 10:43:28 +00:00
David L. Leskovec
0d0c96722c
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
2008-06-09 22:51:32 +00:00
Richard W.M. Jones
787e44a1d0
Better error messages in xend driver.
...
* src/xend_internal.c: Change virXendError function to take
varargs. Better error messages throughout.
2008-06-09 12:16:03 +00:00
Daniel P. Berrange
d789ef5a88
Switch over remaining driver code to use memory alloc apis
2008-06-06 11:09:57 +00:00
Daniel P. Berrange
d7d21c85e0
Switch daemon over to use internal memory allocation APIs
2008-06-06 10:52:01 +00:00
Richard W.M. Jones
a73a88a19f
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.
2008-06-05 21:12:26 +00:00
Richard W.M. Jones
8354895e68
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.
2008-06-05 13:17:45 +00:00
David L. Leskovec
0bd57cdbe1
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
2008-06-05 06:03:00 +00:00
Richard W.M. Jones
eeb224b812
* src/xm_internal.c: If vcpu cpuset attribute is invalid
...
then display an error instead of silently ignoring it
(Hiroyuki Kaguchi).
2008-06-03 08:01:45 +00:00
Richard W.M. Jones
4a9ebf7da7
General tips for contributing patches
...
* HACKING: Added section "general tips for contributing patches"
to this file.
2008-06-02 11:53:23 +00:00
Daniel P. Berrange
f855e91f11
Only run coverage tests if lcov is installed
2008-05-29 20:43:08 +00:00
Daniel P. Berrange
d007428ddb
Fix make dist
2008-05-29 20:09:56 +00:00
Daniel P. Berrange
84494d2e0a
Fix warning with OOM testing is disabled
2008-05-29 19:41:40 +00:00
Daniel P. Berrange
aa2bb9c88c
Switch to using lcov for code coverage repots
2008-05-29 19:27:04 +00:00
Daniel P. Berrange
5e124764c1
Fix parted check & disable storage driver if daemon isn't present
2008-05-29 19:23:17 +00:00
Daniel P. Berrange
895d0fdf5b
Convert to use new memory allocation APIs
2008-05-29 19:20:22 +00:00
Daniel P. Berrange
e8a0db81ef
Pass allocation number to callback
2008-05-29 18:47:00 +00:00
Daniel P. Berrange
46f52f32b2
Convert to use new memory allocation APIs
2008-05-29 18:45:36 +00:00
Daniel P. Berrange
489da1c4b1
Fix missing check for memory allocation failure
2008-05-29 18:45:07 +00:00
Daniel P. Berrange
4b23495509
Convert test suites over to new test infrastructure
2008-05-29 15:31:49 +00:00
Daniel P. Berrange
b0bcffda3b
Misc OOM / memory leak fixes
2008-05-29 15:28:28 +00:00
Daniel P. Berrange
364f53a67a
Generic test suite helpers for OOM testing
2008-05-29 15:21:45 +00:00
Daniel P. Berrange
18da6991e1
Generic OOM testing hooks
2008-05-29 15:13:07 +00:00
Daniel P. Berrange
a9d4944f8e
Don't add trailing blanks in dominfo output
2008-05-29 14:56:12 +00:00
Daniel P. Berrange
2168e27738
Fix python code generation for storage APIs
2008-05-29 14:53:58 +00:00
Atsushi SAKAI
2b483bfaf5
Fix make syntax-check caused by trailing blanks
2008-05-29 05:21:53 +00:00
Richard W.M. Jones
ec8b5b605e
Fix virsh dominfo test.
...
* tests/virshdata/dominfo-fc4.txt: 'virsh dominfo' test
matches actual output with autostart status.
2008-05-27 13:51:52 +00:00
Richard W.M. Jones
5c9454aa6e
Display autostart status in virsh dominfo command.
...
* src/virsh.c: Display autostart status in virsh dominfo
command (Shigeki Sakamoto).
2008-05-27 09:41:25 +00:00
Richard W.M. Jones
e083fc786c
Fix use of header files in disk storage backend.
...
* src/storage_backend_disk.c: Include internal.h to resolve use
of header files.
2008-05-27 08:56:56 +00:00
Richard W.M. Jones
f60dc0bc09
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.
2008-05-23 08:32:08 +00:00
Richard W.M. Jones
1d8d4f86b6
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.
2008-05-23 08:24:41 +00:00
Richard W.M. Jones
c132e0f712
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.
2008-05-23 07:59:00 +00:00
Daniel P. Berrange
9dc31e159a
Fix misc leaks in qparams code, support ; as param separator. Add test suite
2008-05-22 23:49:36 +00:00
Daniel P. Berrange
7646d59568
Refactor QEMU command line building code for readability
2008-05-22 23:45:09 +00:00
Daniel P. Berrange
e193b5ddea
Apply CPU pinning at startup for QEMU guests
2008-05-22 16:27:20 +00:00
Daniel P. Berrange
6d372bd468
Add support for VCPU pinning in QEMU driver
2008-05-22 16:20:31 +00:00
Daniel P. Berrange
7852a63443
Added missing config.h import
2008-05-22 16:18:40 +00:00
Daniel P. Berrange
42aec3d000
Fix removal of iptable forwarding rules
2008-05-22 15:49:50 +00:00
Daniel P. Berrange
3e1aeff4c5
Remove duplicated error messages
2008-05-22 15:40:01 +00:00
Daniel P. Berrange
6a48a6a9e7
Fix misleading comment about numactl
2008-05-22 15:35:51 +00:00
Daniel P. Berrange
b0d340be77
Quote all args to configure.in macros
2008-05-22 15:34:02 +00:00
Daniel P. Berrange
508c4226e1
Implement NUMA info/apis in QEMU driver
2008-05-22 15:29:50 +00:00
Daniel P. Berrange
ab5be538f3
Wire up free memory APIs to remote driver/daemon
2008-05-22 15:20:25 +00:00
Daniel P. Berrange
dd674689df
Fix misc memory leaks
2008-05-22 15:12:25 +00:00
Daniel Veillard
8e5c89ba64
"copy-paste" errors
...
* docs/formatdomain.html docs/formatdomain.html.in: Anton Protopopov
pointed out a few "copy-paste" errors
daniel
2008-05-22 14:57:32 +00:00
Daniel P. Berrange
ecb117a4a8
Fix exit status check with qemu -help
2008-05-21 21:14:36 +00:00
Daniel P. Berrange
e866e302f8
Fixed couple of memory leaks wrt to virXXXDestroy APIs, and clarify docs to match reality
2008-05-21 20:53:30 +00:00
Daniel P. Berrange
922fbeb8b7
Don't free C object after destroy method in python
2008-05-21 20:18:20 +00:00
Daniel P. Berrange
3af422a82e
Run qemu with -help when probing for args
2008-05-21 19:43:39 +00:00
Daniel P. Berrange
8049357ded
Avoid initializing driver if pidfie is claimed. Always claim pidfile as root
2008-05-20 16:17:36 +00:00
Daniel Veillard
1290f50284
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
2008-05-20 15:55:00 +00:00
Jim Meyering
f011f263a1
plug two leaks
...
* src/qemu_conf.c (qemudParseXML): Free "obj" unconditionally.
2008-05-16 16:53:44 +00:00
Daniel P. Berrange
40a82f3066
Make QEMU test suite independant of host OS capabilities
2008-05-16 16:51:30 +00:00
Jim Meyering
a770c2ab1c
* src/xml.c: Include "c-ctype.h".
2008-05-16 14:18:38 +00:00
Jim Meyering
c1ee35af3b
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):
2008-05-16 09:37:44 +00:00
Jim Meyering
0dc23afb0c
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.
2008-05-16 09:30:10 +00:00
Daniel P. Berrange
65c2738ea1
Remove use of strcmp()
2008-05-15 20:07:34 +00:00
Daniel P. Berrange
25f860dc2f
Fixe default disk bus selection logic
2008-05-15 16:24:26 +00:00
Daniel P. Berrange
763a59d84d
Support Xenner bootloader
2008-05-15 16:21:11 +00:00
Daniel P. Berrange
0f1b6dd06a
Pass -name arg to QEMU when available
2008-05-15 16:15:17 +00:00