]> xenbits.xensource.com Git - libvirt.git/log
libvirt.git
16 years agoPreserve context node when doing XPath queries to allow relative XPath expressions
Daniel P. Berrange [Wed, 9 Jul 2008 08:35:09 +0000 (08:35 +0000)]
Preserve context node when doing XPath queries to allow relative XPath expressions

16 years agoIgnore JIT'd python files
Daniel P. Berrange [Wed, 9 Jul 2008 08:17:51 +0000 (08:17 +0000)]
Ignore JIT'd python files

16 years agogive a more useful diagnostic for tap-add failure w/ENOTSUP
Jim Meyering [Wed, 9 Jul 2008 05:24:08 +0000 (05:24 +0000)]
give a more useful diagnostic for tap-add failure w/ENOTSUP

* src/qemu_conf.c (qemudNetworkIfaceConnect):
Suggestion from Daniel P. Berrange.

16 years agoFix typo in domain state constant
Daniel P. Berrange [Tue, 8 Jul 2008 17:49:26 +0000 (17:49 +0000)]
Fix typo in domain state constant

16 years agoFix three typos pointed out by Anton Protopopov
Daniel P. Berrange [Tue, 8 Jul 2008 17:44:56 +0000 (17:44 +0000)]
Fix three typos pointed out by Anton Protopopov

16 years agoUpdate RNG schema for domains
Daniel P. Berrange [Tue, 8 Jul 2008 12:05:13 +0000 (12:05 +0000)]
Update RNG schema for domains

16 years agoFix openvz build on x86_64
Daniel P. Berrange [Mon, 7 Jul 2008 11:48:40 +0000 (11:48 +0000)]
Fix openvz build on x86_64

16 years agoRemove bogus return statement in test code
Daniel P. Berrange [Mon, 7 Jul 2008 10:36:30 +0000 (10:36 +0000)]
Remove bogus return statement in test code

16 years agoALlow OOM tests to be parallelized
Daniel P. Berrange [Mon, 7 Jul 2008 10:10:29 +0000 (10:10 +0000)]
ALlow OOM tests to be parallelized

16 years ago* proxy/libvirt_proxy.c: fix a compilation problem without Xen
Daniel Veillard [Mon, 7 Jul 2008 10:00:30 +0000 (10:00 +0000)]
* proxy/libvirt_proxy.c: fix a compilation problem without Xen
* libvirt.spec.in: add %{release] to BuildRoot
Daniel

16 years agoFix memory leak in OOM cleanup
Daniel P. Berrange [Mon, 7 Jul 2008 09:52:26 +0000 (09:52 +0000)]
Fix memory leak in OOM cleanup

16 years agoUpdated ChangeLog for recent LXC patches
Dan Smith [Wed, 2 Jul 2008 14:20:10 +0000 (14:20 +0000)]
Updated ChangeLog for recent LXC patches

16 years agoCompilation fix for MinGW(w/ LXC)
Atsushi SAKAI [Mon, 30 Jun 2008 05:11:13 +0000 (05:11 +0000)]
Compilation fix for MinGW(w/ LXC)

16 years ago[LXC] Remove unused variable and fix uninitialized variable
Dan Smith [Fri, 27 Jun 2008 15:05:31 +0000 (15:05 +0000)]
[LXC] Remove unused variable and fix uninitialized variable

Also remove a stale comment in the area.  This makes libvirt compile when
passed --with-lxc and --enable-compiler-warnings=error

16 years ago[LXC] Add setup/cleanup of container network interfaces
Dan Smith [Thu, 26 Jun 2008 16:09:48 +0000 (16:09 +0000)]
[LXC] Add setup/cleanup of container network interfaces

16 years ago[LXC] Add XML parsing of container network interfaces.
Dan Smith [Thu, 26 Jun 2008 16:08:59 +0000 (16:08 +0000)]
[LXC] Add XML parsing of container network interfaces.

16 years ago[LXC] Add functions to manage veth device pairs
Dan Smith [Thu, 26 Jun 2008 16:07:48 +0000 (16:07 +0000)]
[LXC] Add functions to manage veth device pairs

This gives us the ability to create a veth pair so that we can move one
into the network namespace of an LXC container.

16 years ago[LXC] Detect support for NETNS in lxc driver initialization
Dan Smith [Thu, 26 Jun 2008 16:05:02 +0000 (16:05 +0000)]
[LXC] Detect support for NETNS in lxc driver initialization

Allow check for containers support to be done without CLONE_NEWNET, and then
determine support on the fly by checking for iproute2 support and a
successful clone(CLONE_NEWNET).  This lets us set a flag for later, as well
as not completely disable LXC support on a system without NETNS support.

16 years agoFix make syntax-check
Atsushi SAKAI [Thu, 26 Jun 2008 10:56:19 +0000 (10:56 +0000)]
Fix make syntax-check

16 years agoCompilation fixes for MinGW
Atsushi SAKAI [Thu, 26 Jun 2008 09:37:51 +0000 (09:37 +0000)]
Compilation fixes for MinGW

16 years agoquiet "make syntax-check"
Jim Meyering [Wed, 25 Jun 2008 14:21:44 +0000 (14:21 +0000)]
quiet "make syntax-check"

* Makefile.maint (strftime-check): Add "@" prefix.
(po-check): Likewise.

16 years ago* python/types.c: patch from Ryan Scott to remove misplaced verbosity
Daniel Veillard [Wed, 25 Jun 2008 11:42:27 +0000 (11:42 +0000)]
* python/types.c: patch from Ryan Scott to remove misplaced verbosity
  when compiling in debug mode.
Daniel

16 years ago* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.4
Daniel Veillard [Wed, 25 Jun 2008 08:59:37 +0000 (08:59 +0000)]
* 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

16 years ago* po/*: updated a couple of localizations and regenerated the
Daniel Veillard [Wed, 25 Jun 2008 08:49:54 +0000 (08:49 +0000)]
* po/*: updated a couple of localizations and regenerated the
  files
Daniel

16 years agoAdded helpers for dealing with enumerations
Daniel P. Berrange [Tue, 24 Jun 2008 15:00:15 +0000 (15:00 +0000)]
Added helpers for dealing with enumerations

16 years agoFix const-ness of virStorageBackendRunProgRegex()
Daniel P. Berrange [Tue, 24 Jun 2008 14:30:25 +0000 (14:30 +0000)]
Fix const-ness of virStorageBackendRunProgRegex()

16 years agofix a couple of List functions for max = 0 issues
Daniel Veillard [Thu, 19 Jun 2008 14:39:49 +0000 (14:39 +0000)]
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

16 years agovirsh fails to read files larger than BUFSIZ bytes
Jim Meyering [Thu, 19 Jun 2008 14:30:52 +0000 (14:30 +0000)]
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 895d0fdf5bef358fafb91c672609190b3088097b.
* tests/Makefile.am (test_scripts): Add read-bufsiz.
* tests/read-bufsiz: New test for the above.

16 years agoUpdate the changelog to go along with my commits for the last week.
Chris Lalancette [Thu, 19 Jun 2008 14:22:54 +0000 (14:22 +0000)]
Update the changelog to go along with my commits for the last week.

16 years agoFor 0.4.3, danpb's new memory management scheme went into libvirt. This is
Chris Lalancette [Thu, 19 Jun 2008 11:58:49 +0000 (11:58 +0000)]
For 0.4.3, danpb's new memory management scheme went into libvirt.  This is
fine, except that is subtly alters the semantics of malloc(), calloc(), and
realloc().  In particular, if you say:

foo = malloc(0);

glibc will happily return a non-NULL pointer to you.  However, with the new
memory management stuff, if you say:

foo = VIR_ALLOC(0);

you will actually get a NULL pointer back.  Personally, I think this is a
dangerous deviation from malloc() semantics that everyone is used to, and is
indeed causing problems with the remote driver.  The short of it is that the
remote driver allocates memory on behalf of the remote side using VIR_ALLOC_N,
and this call is returning NULL so that the NULL checks elsewhere in the code
fire and return failure.

The attached patch fixes this situation by removing the 0 checks from the memory
allocation paths, and just lets them fall through to the normal malloc(),
calloc(), or realloc() routines, restoring old semantics.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoWhen doing the conversion to danpb's new memory API, a small bug was
Chris Lalancette [Thu, 19 Jun 2008 10:38:36 +0000 (10:38 +0000)]
When doing the conversion to danpb's new memory API, a small bug was
introduced into the qemudNetworkIfaceConnect() function.  In particular, there
is a call:

    if (VIR_ALLOC_N(vm->tapfds, vm->ntapfds+2) < 0)
        goto no_memory;

However, the tapfds structure is used to track *all* of the tap fds, and is
called once for each network that is being attached to the domain.  VIR_ALLOC_N
maps to calloc().  So the first network would work just fine, but if you had
more than one network, subsequent calls to this function would blow away the
stored fd's that were already there and fill them all in with zeros.  This
causes multiple problems, from the qemu domains not starting properly to
improper cleanup on shutdown.  The attached patch just changes the VIR_ALLOC_N()
to a VIR_REALLOC_N(), and everything is happy again.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoremove trailing white space
Jim Meyering [Tue, 17 Jun 2008 15:55:03 +0000 (15:55 +0000)]
remove trailing white space

16 years agoThis rather large patch rewrites the virStorageBackendISCSIFindLUNs() function
Chris Lalancette [Tue, 17 Jun 2008 12:49:37 +0000 (12:49 +0000)]
This rather large patch rewrites the virStorageBackendISCSIFindLUNs() function
to only rely on sysfs for finding LUNs, given a session number.  Along the way,
it also fixes the bug where we wouldn't find LUNs for older kernels (with the
block:sda format), and also fixes a race condition where we could try
to find the LUN before udev has finished connecting it.

This patch fixes a few different bugs:
1) We weren't finding LUNs on pre 2.6.24 kernels
2) libvirtd sysfs scanning was racing with udev, so we didn't always see LUNs
3) We weren't showing the 0'th LUN, although that can be a valid LUN

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoA small bugfix; we only need to call the iscsiadm sendtarget command when we are
Chris Lalancette [Tue, 17 Jun 2008 12:47:10 +0000 (12:47 +0000)]
A small bugfix; we only need to call the iscsiadm sendtarget command when we are
first logging in; we don't need to do it for logout.  Move the sendtarget
command into the Login() function.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoOlder versions of iscsiadm didn't support the "-P 0" flag to the "iscsiadm
Chris Lalancette [Tue, 17 Jun 2008 12:46:38 +0000 (12:46 +0000)]
Older versions of iscsiadm didn't support the "-P 0" flag to the "iscsiadm
--mode session" command.  However, just running "iscsiadm --mode session" seems
to work on all version of iscsiadm commands back to FC-6, so just use that.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoIn src/util.c, virLog is just a wrapper around fprintf(stderr). Make sure to
Chris Lalancette [Tue, 17 Jun 2008 12:45:59 +0000 (12:45 +0000)]
In src/util.c, virLog is just a wrapper around fprintf(stderr).  Make sure to
put line breaks at the end of lines that use virLog() (noticed during testing).

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoThis patch changes things around so that virStorageBackendRunProgRegex() does
Chris Lalancette [Tue, 17 Jun 2008 12:45:24 +0000 (12:45 +0000)]
This patch changes things around so that virStorageBackendRunProgRegex() does
*not* virStorageReportError() if the fork()/exec() process it spawned returned a
!= 0 exit code.  Rather, it returns the exitcode in this case, and it is up to
the higher level to determine whether this is a fatal error or not.  The use
case for this change is in the iSCSI stuff; older versions of iscsiadm tools
would return a failure when getting the session number, despite the command
succeeding.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
16 years agoadding autogen.sh to EXTRA_DIST
Daniel Veillard [Fri, 13 Jun 2008 09:08:44 +0000 (09:08 +0000)]
adding autogen.sh to EXTRA_DIST
* Makefile.am: adding autogen.sh to EXTRA_DIST
Daniel

16 years ago* src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devices
Daniel Veillard [Fri, 13 Jun 2008 07:56:59 +0000 (07:56 +0000)]
* src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devices
  for network should be defined in an 'interface' node not 'net'
Daniel

16 years ago* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3
Daniel Veillard [Thu, 12 Jun 2008 16:10:50 +0000 (16:10 +0000)]
* configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3
  release
Daniel

16 years agoFix misc compile warnings
Daniel P. Berrange [Thu, 12 Jun 2008 13:48:29 +0000 (13:48 +0000)]
Fix misc compile warnings

16 years agoFix saving of iptables rules
Daniel P. Berrange [Thu, 12 Jun 2008 13:47:38 +0000 (13:47 +0000)]
Fix saving of iptables rules

16 years agoDeal with inactive virtual network in domain creation
Daniel P. Berrange [Thu, 12 Jun 2008 10:19:24 +0000 (10:19 +0000)]
Deal with inactive virtual network in domain creation

16 years agoAdding Kaitlin Rupert in the AUTHORS list
Daniel Veillard [Thu, 12 Jun 2008 08:56:59 +0000 (08:56 +0000)]
Adding Kaitlin Rupert in the AUTHORS list
Daniel

16 years ago* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
Daniel Veillard [Thu, 12 Jun 2008 08:55:13 +0000 (08:55 +0000)]
* src/qemu_driver.c: patch from Kaitlin Rupert, changing vcpu or
  memory of an active domain is a NO_SUPPORT not INTERNAL_ERROR
Daniel

16 years agopo regeneration
Daniel Veillard [Wed, 11 Jun 2008 15:22:24 +0000 (15:22 +0000)]
po regeneration
* po/*: update and regenerated
Daniel

16 years agoFix RPM build
Daniel P. Berrange [Wed, 11 Jun 2008 11:26:36 +0000 (11:26 +0000)]
Fix RPM build

16 years ago* python/libvir.py python/libvirt-python-api.xml: more python
Daniel Veillard [Wed, 11 Jun 2008 07:49:01 +0000 (07:49 +0000)]
* python/libvir.py python/libvirt-python-api.xml: more python
  cleanups by Cole Robinson
Daniel

16 years ago* configure.in: patch from Cole Robinson to reactivate storage
Daniel Veillard [Tue, 10 Jun 2008 15:35:15 +0000 (15:35 +0000)]
* configure.in: patch  from Cole Robinson to reactivate storage
  support
Daniel

16 years ago* python/generator.py python/libvir.c python/libvirt-python-api.xml:
Daniel Veillard [Tue, 10 Jun 2008 15:20:25 +0000 (15:20 +0000)]
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
  Apply patch from Cole Robinson fixing UUIDString for python
Daniel

16 years agoPass syntax check for XM block devices over to XenD
Richard W.M. Jones [Tue, 10 Jun 2008 14:39:58 +0000 (14:39 +0000)]
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).

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