Commit Graph

804 Commits

Author SHA1 Message Date
Daniel Veillard
9cffaad22b * src/proxy_internal.c: fix the UUID lookup though proxy, by
actually sending the UUID string in the request!
Daniel
2007-08-14 12:29:40 +00:00
Daniel Veillard
f39e1b8860 * src/virsh.c: patch from Atsushi SAKAI fixing schedinfo synopsys
Daniel
2007-08-14 07:07:57 +00:00
Daniel Veillard
b8d0a7bc34 * virsh.1 docs/virsh.pod: typo fixes from Atsushi SAKAI
Daniel
2007-08-14 07:02:18 +00:00
Daniel Veillard
1bd2567773 * docs/apibuild.py: fix the API generator to work out of a
include list instead of an exclude list
* po/*: updated localization strings
Daniel
2007-08-14 05:57:07 +00:00
Daniel P. Berrange
024252d3e3 Implement save/restore for KVM guests 2007-08-14 01:47:24 +00:00
Daniel P. Berrange
383ae8c4ec Added qemudEscapeShellArg(), and saferead()/safewrite() APIs 2007-08-14 01:33:38 +00:00
Daniel P. Berrange
79a3754210 Added support for -incoming option in prepare for restore 2007-08-14 01:28:47 +00:00
Daniel P. Berrange
af7378db35 Allow stdin to be specified with virExec() 2007-08-14 01:23:59 +00:00
Daniel P. Berrange
4f34d57223 Use \r instead of \n for QEMU monitor 2007-08-14 00:15:16 +00:00
Daniel Veillard
f9372e9408 * src/qemu_driver.c: patch from Jim Paris removing memory leak
* AUTHORS: updated with Shuveb and Jim
Daniel
2007-08-13 09:53:35 +00:00
Daniel P. Berrange
9112a139df Speed up impl of lookupbyid/uuid and getostype for Xen by using HV where available 2007-08-10 18:25:15 +00:00
Daniel P. Berrange
46b433f069 Cleanup UUID apis & constants 2007-08-09 20:19:12 +00:00
Richard W.M. Jones
3860cbb2b7 Tue Aug 7 16:35:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/Makefile.am: gnutls_1_0_compat.h to list of sources
          (bug reported by Jan Michael).
2007-08-07 15:44:42 +00:00
Richard W.M. Jones
9d5e267e9a Tue Aug 7 16:24:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/virsh.c: Include <time.h> (bug reported by Jan Michael).
2007-08-07 15:26:51 +00:00
Richard W.M. Jones
754419ec10 Tue Aug 7 15:28:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Fix build bug introduced by earlier
          patch.
2007-08-07 14:29:45 +00:00
Richard W.M. Jones
c47b4c8295 Tue Aug 7 14:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/qemud.c: Fix --config/-f option to libvirtd.
2007-08-07 13:24:22 +00:00
Richard W.M. Jones
c946c197fe Tue Aug 7 13:58:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* acinclude.m4, configure.in: ./configure option
          --disable-stack-protector.
        * src/gnutls_1_0_compat.h: Compatibility with GnuTLS 1.0.
        * src/bridge.c: If no bridge ioctls, give an error at runtime.
2007-08-07 13:02:35 +00:00
Daniel Veillard
6253863e8f * src/xml.c: changes from Masayuki Sunou to improve error reporting
on device XML errors.
Daniel
2007-08-02 10:47:38 +00:00
Daniel P. Berrange
94711ff791 Fixed memory leaks 2007-07-31 14:27:12 +00:00
Daniel P. Berrange
f7dd6b4d6f Fixed handling of unsupported machine types 2007-07-30 18:50:07 +00:00
Daniel Veillard
86d352d4fe * src/xen_internal.c: add report of ACPI/APIC for Xen fully virt,
patch from David Lutterkort
* tests/xencapsdata/xen-i686-pae-hvm.xml
  tests/xencapsdata/xen-ia64-be-hvm.xml
  tests/xencapsdata/xen-ia64-hvm.xml
  tests/xencapsdata/xen-x86_64-hvm.xml: this also affects a few tests
Daniel
2007-07-30 10:15:58 +00:00
Daniel Veillard
c7722ca345 * src/qemu_conf.[ch] src/qemu_driver.c: add qemu/kvm drivers report
features for i686 and x86_64, patch from David Lutterkort
Daniel
2007-07-30 09:59:05 +00:00
Daniel P. Berrange
4e01a607e4 Re-work test driver to implement (nearly) all APIs 2007-07-27 23:23:00 +00:00
Daniel Veillard
1d7164058c * src/virsh.c docs/virsh.pod virsh.1: added a ttyconsole command,
this should fix bug #239687
Daniel
2007-07-26 08:41:16 +00:00
Daniel P. Berrange
cf5000d9b0 Ignore /usr/include in coverage reports 2007-07-25 23:18:15 +00:00
Daniel P. Berrange
773aa3b86b Split out generic nodeinfo API 2007-07-25 23:16:30 +00:00
Daniel Veillard
3edb4bc9fb * libvirt.spec.in NEWS docs/* po/*: preparing release 0.3.1
* src/libvirt.c python/generator.py: some cleanup and warnings
  from Richard W.M. Jones
Daniel
2007-07-24 15:32:55 +00:00
Daniel P. Berrange
e3af6437f1 Fixed handling of -nographics. Added VNC listen support 2007-07-24 14:30:05 +00:00
Daniel P. Berrange
1d4d4f3bf9 Fixed crash when cleaning up VMs 2007-07-24 14:24:52 +00:00
Daniel P. Berrange
f3df229592 Fixed over eager caching of virDomainPtr objects in libvirt daemon 2007-07-24 14:21:03 +00:00
Daniel Veillard
d5b5623ddd * docs/network.rng docs/Makefile.am libvirt.spec.in: added Relax-NG
grammar for network descriptions that David Lutterkort posted in
  April, it needs an update though
Daniel
2007-07-24 09:19:40 +00:00
Daniel Veillard
5e14b0f33a * po/*: update translations and regenerate .pot
Daniel
2007-07-24 08:15:03 +00:00
Daniel P. Berrange
ce19db8990 Set close-exe on logfile fd, keep monitor FD open 2007-07-23 18:00:33 +00:00
Daniel Veillard
daa2369dde * docs/virsh.pod virsh.1: update to document VIRSH_DEFAULT_CONNECT_URI
environment variable as suggested by David Lutterkort
Daniel
2007-07-23 09:35:59 +00:00
Daniel Veillard
46da4f268f * src/xen_internal.c: and nother one again from Saori Fukuta
Daniel
2007-07-20 10:53:31 +00:00
Daniel Veillard
90ae19cccf * src/xen_internal.c: some error handling improvements from Saori Fukuta
Daniel
2007-07-20 10:44:24 +00:00
Daniel Veillard
68ef3443d4 * src/Makefile.am src/openvz_conf.c src/openvz_conf.h
src/openvz_driver.c src/qemu_driver.c src/util.c src/util.h:
  cleanup patches from Shuveb Hussain, with new util module for
  common code shared between drivers.
Daniel
2007-07-19 16:22:40 +00:00
Richard W.M. Jones
e2ea955881 Thu Jul 19 16:35:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in, src/xen_internal.c: Newer Xen uses
          <xen/sys/privcmd.h>.  Added detection code for this in
          configure.in.
2007-07-19 15:37:54 +00:00
Daniel Veillard
30c10b82c1 * src/xen_internal.c: rewrite of range check in credit scheduler
initially suggested by Atsushi SAKAI
Daniel
2007-07-19 13:39:26 +00:00
Daniel P. Berrange
ba8648896f Fixed double free of XML property 2007-07-18 21:47:47 +00:00
Daniel P. Berrange
b3033b99f9 Added testsuite for QEMU XML routines 2007-07-18 21:34:22 +00:00
Daniel P. Berrange
0bd91c25c0 Fixed compiler warnings 2007-07-18 21:13:26 +00:00
Daniel P. Berrange
f029721d2b Added support for input devices 2007-07-18 21:08:22 +00:00
Daniel Veillard
6365ff098c * src/test.c include/libvirt/libvirt.h include/libvirt/libvirt.h.in:
cleanup of unused virDeviceMode
Daniel
2007-07-18 10:11:09 +00:00
Daniel Veillard
36e975dd4f * src/openvz_conf.c src/libvirt.c: cleanup, avoid some warnings,
and reuse the existing uuid generation function.
Daniel
2007-07-17 14:40:26 +00:00
Daniel Veillard
b55718444f * configure.in src/Makefile.am src/driver.h src/libvirt.c:
applied patch from Shuveb Hussain to plug the developping
  OpenVZ support. Disabled by default.
* src/openvz_conf.[ch] src/openvz_driver.[ch]: added new
  OpenVZ driver files. Avoid a redefinition of readline().
Daniel
2007-07-17 13:27:26 +00:00
Daniel P. Berrange
d9adc2eaf1 Re-write notes on IPv6 2007-07-16 21:37:08 +00:00
Daniel P. Berrange
67c346b102 Added new <clock/> element in XML for choosing utc/localtime 2007-07-16 21:30:30 +00:00
Daniel Veillard
657b5eb50c * src/xml.c: applied modified patch from Masayuki Sunou for
device hot plug description with a wrong root element.
Daniel
2007-07-13 12:26:11 +00:00
Daniel Veillard
5ced7bd1fc * src/virterror.c src/xml.c include/libvirt/virterror.h:
patch from Masayuki Sunou to check Ethernet MAC addresses
  in XML configs
* po/*: string update and merge
Daniel
2007-07-13 08:26:57 +00:00
Daniel Veillard
62442d578d * docs/libvir.html docs/remote.html: update the remote page,
add an index
* docs/pki_check.sh: shell script to check the PKI and client/server
  environment.
Daniel
2007-07-12 15:47:19 +00:00
Daniel P. Berrange
f36c70775a Check client cert/key ahead of time & report errors 2007-07-12 15:17:08 +00:00
Daniel P. Berrange
e958eff752 Make QEMU driver report errors against virConnectPtr if available 2007-07-12 15:09:01 +00:00
Daniel P. Berrange
c0a3f03f4d Clean virConnectPtr object on client disconnect. Fix cleanup when access checks fail 2007-07-12 15:04:05 +00:00
Daniel P. Berrange
a219c3aba8 Improved error checking for cert/key files 2007-07-12 14:54:45 +00:00
Daniel Veillard
bb6476e771 * src/xen_internal.c: applied patch from Christian Ehrhardt to
fix Xen hypervisor alignment problems on PPC64
* AUTHORS: added Christian
Daniel
2007-07-12 08:57:52 +00:00
Richard W.M. Jones
38149a2b75 Thu Jul 12 09:34:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Removed --with-qemud-pid-file option since
          it is no longer used.
2007-07-12 08:36:48 +00:00
Richard W.M. Jones
65a466b551 Thu Jul 12 09:34:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c, src/xen_unified.c: If compiled with
	  --enable-debug=yes then we now trace libvirt calls on
	  stderr.
2007-07-12 08:34:51 +00:00
Daniel Veillard
fdc36dcbe6 * src/xml.c: patch from Masayuki Sunou fixing leaks in
virDomainParseXMLDiskDesc
Daniel
2007-07-11 08:41:11 +00:00
Daniel Veillard
f3d774d6c1 * configure.in libvirt.spec.in include/libvirt/libvirt.h
docs/* po/*: prepared release of 0.3.0
Daniel
2007-07-09 12:41:29 +00:00
Daniel Veillard
b36f453a58 * src/xm_internal.c src/xend_internal.c src/buf.[ch]: add
new function virBufferEscapeString() to format a string while
  escaping its content for XML, and apply it to a couple of
  obvious places, should fix bug #206653
* po/*: updated strings, and added new bosnian localization.
Daniel
2007-07-09 11:24:52 +00:00
Daniel P. Berrange
62efeb0752 Fixed memory corruption after destroying network/domain objects in QEMU driver 2007-07-06 21:52:42 +00:00
Richard W.M. Jones
f1f70e5099 Fri Jul 6 16:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c, src/qemu_driver.c: If the virNetworkLookup*
	  functions cannot find a network, then they now throw
	  VIR_ERR_NO_NETWORK error.
2007-07-06 15:20:38 +00:00
Richard W.M. Jones
4ea0ef797f Fri Jul 6 16:08:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/proxy_internal.c, src/proxy_internal.h,
	  src.xen_internal.c, src/xen_internal.h,
	  src/xen_unified.c, src/xen_unified.h,
	  src/xend_internal.c, src/xend_internal.h,
	  src/xm_internal.c, src/xm_internal.h,
	  src/xs_internal.c, src/xs_internal.h: The interface
	  between xen_unified.c and its underlying driver now uses
	  a custom structure (struct xenUnifiedDriver) instead
	  of reusing virDriver.
	* src/xen_unified.c: virDomainLookup* functions in Xen
	  now throw VIR_ERR_NO_DOMAIN if the domain does not exist.
	* src/xs_internal.c: Fix indentation.
2007-07-06 15:11:22 +00:00
Daniel Veillard
ea6279cb91 * src/virsh.c: fix an error in the default help string, bug #247197
Daniel
2007-07-06 15:05:19 +00:00
Richard W.M. Jones
16eae80edf Fri Jul 6 16:00:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/hash.c, src/internal.h: Remove virGetDomainByID function
	  as it is not used or exported.
	* src/proxy_internal.c, src/qemu_driver.c, src/remote_internal.c,
	  src/test.c, src/xend_internal.c, src/xs_internal.c: Fix
	  all callers to virGetDomain and virGetNetwork functions -
	  the callers do not need to set virterror since it is already
	  set inside the functions.
2007-07-06 15:02:09 +00:00
Richard W.M. Jones
b26376750e Fri Jul 6 15:54:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/virterror.h, src/virterror.c, src/libvirt.c:
	  Add VIR_ERR_NO_DOMAIN and VIR_ERR_NO_NETWORK errors, which
	  indicate that there is no domain/network from vir*Lookup* functions.
	* src/qemu_driver.c: Use VIR_ERR_NO_DOMAIN in lookup functions.
	* src/test.c: Use VIR_ERR_NO_DOMAIN in lookup functions.
2007-07-06 14:56:15 +00:00
Daniel Veillard
b454313c5d * src/xend_internal.c: fix typo in function comment
* po/*: updated the localizations
* qemud/libvirtd.init.in: LSB'ization of the init script and
  couple of fixups
Daniel
2007-07-05 16:04:11 +00:00
Daniel P. Berrange
34908a6a1e move conversion of NULL & xen URIs into libvirt.c 2007-07-05 13:49:17 +00:00
Daniel P. Berrange
8e760f1d09 Fixed typo in flags 2007-07-05 13:47:29 +00:00
Richard W.M. Jones
6113d4e17d Wed Jul 4 14:17:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xm_internal.c: configCache not getting refilled if the
	  connection was closed (affected the remote case mainly),
	  and error messages added to xenXMConfigCacheRefresh.
2007-07-04 13:16:57 +00:00
Richard W.M. Jones
9cd405497f Wed Jul 4 10:14:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/conf.c, src/test.c, src/xen_internal.c: Readd checking
          of errors from virBuffer functions.
        * src/sexpr.c: Add comment about use of _GNU_SOURCE.
        * src/virsh.c: Remove use of _GNU_SOURCE / isblank.
        * src/xml.c, tests/Makefile.am: Minor cleanup.
2007-07-04 09:16:23 +00:00
Daniel P. Berrange
483f6d6951 Make network APIs go via remote driver. Autospawn per-user daemon 2007-07-04 03:59:13 +00:00
Daniel Veillard
6bdad268f4 * src/virsh.c: applied patch from Masayuki Sunou to remove leaks
of domains references in some commands.
Daniel
2007-06-29 13:45:50 +00:00
Daniel Veillard
b4c282a79b * docs/apibuild.py docs/newapi.xsl: fix generation of XML and
stylesheet
* docs/*: regenerated
* src/bridge.c src/bridge.h src/buf.c src/iptables.c src/libvirt.c
  src/qemu_driver.c src/qemu_driver.h src/uuid.c src/uuid.h: cleanup,
  addd comments, made functions static and fixe a few bugs
Daniel
2007-06-29 13:23:13 +00:00
Richard W.M. Jones
4c0f24c10f Tue Jun 29 13:44:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/site.xsl, docs/libvir.html, docs/hvsupport.html:
	  Document which libvirt versions supported various
	  hypervisor calls.
2007-06-29 12:44:57 +00:00
Daniel P. Berrange
e0bbd77b4b Remove Makefile & Makefile.in from RPM to avoid multilib issues 2007-06-27 22:33:09 +00:00
Daniel P. Berrange
a07f0a00da Move the QEMU driver & utility files from qemud/ to src/ 2007-06-27 00:12:29 +00:00
Daniel P. Berrange
a78a6602df Move QEMU driver into main libvirt.so and use single daemon for all drivers 2007-06-26 23:48:46 +00:00
Daniel P. Berrange
8c90a88818 Fix typo in read only connection check 2007-06-26 23:05:54 +00:00
Daniel P. Berrange
b6b8583663 Rename the daemon to libvirtd 2007-06-26 23:04:49 +00:00
Daniel P. Berrange
de5bd324dc Rename init script 2007-06-26 23:03:48 +00:00
Daniel P. Berrange
ec834baa9c Remove use of libsysfs from bridge code 2007-06-26 23:01:54 +00:00
Daniel P. Berrange
dd8b3c6e76 Don't try to handle URIs with hostname in test driver 2007-06-26 22:57:41 +00:00
Daniel P. Berrange
70da0494c1 Add driver API for global startup/shutdown/reload hooks 2007-06-26 22:56:14 +00:00
Daniel P. Berrange
25905a78f2 Switch to using internal event API for QEMU driver 2007-06-26 22:51:01 +00:00
Daniel P. Berrange
133fdfe9e8 Move code relating to vm/network lookups into conf.c 2007-06-26 22:42:47 +00:00
Daniel P. Berrange
a041de159f Update to comply with internal driver API 2007-06-26 22:39:53 +00:00
Daniel P. Berrange
2f02d292da Move virBuffer functions into src/buf.c,h 2007-06-26 22:33:22 +00:00
Daniel P. Berrange
675ba3170d Rename buffer functions 2007-06-26 22:21:22 +00:00
Daniel P. Berrange
3d6a119de8 Rename UUID functions 2007-06-26 22:19:38 +00:00
Daniel P. Berrange
b63f8cc9f9 Split up struct qemud_server to move qemu stuff into conf.c 2007-06-26 22:13:21 +00:00
Daniel P. Berrange
498cc57835 Updated to use virError object & APIs for error reporting 2007-06-26 20:51:00 +00:00
Daniel P. Berrange
2dd21783ec Move code dealing with global startup/shutdown/reload into driver.c 2007-06-26 20:45:21 +00:00
Daniel P. Berrange
9f25d22a6f Move process lifecycle code from qemud.c to driver.c 2007-06-26 20:41:25 +00:00
Daniel P. Berrange
8ebda57b2e Move capabilities XML generation into driver.c 2007-06-26 19:49:50 +00:00
Daniel P. Berrange
0cb54b45f1 Re-factoring event loop 2007-06-26 19:11:00 +00:00
Richard W.M. Jones
4a0cef94a5 Tue Jun 26 14:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c, python/Makefile.am: Python bindings
	  fixed, and now building virConnect.getHostname and
	  virConnect.getURI.  Fixed a problem which stopped
	  libvirt.py from being (re-)built.  Rearranged
	  python/Makefile.am to make it cleaner and clearer.
2007-06-26 13:47:04 +00:00
Richard W.M. Jones
2be812bbc9 Tue Jun 26 12:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/libvirt.h.in, src/libvirt.c: (and numerous
	  other files) Added support for virConnectGetHostname
	  and virConnectGetURI calls.
2007-06-26 11:42:46 +00:00
Richard W.M. Jones
aa053ba2c5 Mon Jun 25 16:55:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/libvirt.h.in, src/libvirt.c, src/libvirt_sym.version,
	  python/generator.py: Added virDomainGetConnect and
	  virNetworkGetConnect to allow us to get the "hidden"
	  connection associated with each domain or network.
2007-06-25 15:56:18 +00:00
Richard W.M. Jones
83471f1ec5 Mon Jun 25 14:30:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/libvirt.h, include/libvirt/libvirt.h.in,
	  src/test.c: Remove unused virDomainKernel structure.
2007-06-25 13:26:02 +00:00
Richard W.M. Jones
b19a6c7d28 Mon Jun 25 14:03:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Partial revert - defining enum transport
	  as a typedef broke the build.
2007-06-25 13:05:03 +00:00
Richard W.M. Jones
b48d5f7a47 Mon Jun 25 09:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Made cosmetic changes to the code and
	  comments to allow 'make -C docs rebuild' to succeed parsing
	  this file.
2007-06-25 08:41:17 +00:00
Richard W.M. Jones
2670b9c80a Mon Jun 25 09:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/site.xsl: Added link to OCaml bindings.
2007-06-25 08:40:38 +00:00
Richard W.M. Jones
56cd4140d4 Mon Jun 25 09:19:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/remote.c, src/remote_internal.c: Fix virDomainGetVcpus
	  in the remote case.
	* src/libvirt.c: Allow virConnectListDomains,
	  virConnectListDefinedDomains, virConnectListNetworks and
	  virConnectListDefinedNetworks to work in the case where
	  they are called with maxids/maxnames == 0.
	* src/remote_internal.c: Fix virDomainGetMaxVcpus in remote
	  case so that it copies sufficient data.
	* src/xen_unified.c: Remove autostart functions.
2007-06-25 08:23:10 +00:00
Richard W.M. Jones
137847e55d Fri Jun 22 14:15:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
	  Add support for setting scheduler parameters over remote
	  connections.
2007-06-22 13:16:10 +00:00
Richard W.M. Jones
29ee614511 Fri Jun 22 12:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/internal.h: Added STREQ and STRCASEEQ macros for clearer
	  equality testing of strings.
	* src/xen_internal.c: Fix handling of the scheduler parameters
	  field string so that the field doesn't contain garbage
	  after the string.
2007-06-22 11:42:22 +00:00
Daniel Veillard
65d0b1910b * qemud/driver.c: apply patch from Jim Meyering to handle realloc
failure without leaking.
Daniel
2007-06-22 10:14:48 +00:00
Richard W.M. Jones
e8b0f8a251 Thu Jun 21 16:56:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/virsh.pod: Fixed a few typos and POD directives.
2007-06-21 15:57:49 +00:00
Richard W.M. Jones
10960f2a1a Thu Jun 21 16:48:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Fix virConnectGetMaxVcpus in the
	  remote case when type parameter is NULL.
	* src/xend_internal.c: Proper error reporting in
	  xenDaemonDomainDumpXML function.
2007-06-21 15:49:09 +00:00
Daniel P. Berrange
a6a6c9860c Fixed marshalling of id on wire 2007-06-21 15:38:20 +00:00
Daniel Veillard
8fe24e137f * virsh.1 docs/virsh.pod docs/Makefile.am: updated the pod file
to reflect the current set of commands, added a rule in the Makefile
  to regenerate the man page, and regenerated.
Daniel
2007-06-21 15:00:17 +00:00
Daniel Veillard
4fdec95d6b * docs/virsh.pod: commit of original POD file for virsh man page
from Andrew Puch April 2006
Daniel
2007-06-21 07:39:51 +00:00
Richard W.M. Jones
e2df281e6c Wed Jun 20 18:23:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c, src/qemu_internal.c, src/test.c,
	  src/xen_unified.c, src/xend_internal.c,
	  src/libvirt.c, include/libvirt/virterror.h:
	  VIR_ERR_NO_SUPPORT means the function is not supported by
	  the hypervisor.  VIR_ERR_NO_CONNECT means the connection
	  failed.  VIR_ERR_CALL_FAILED is deprecated.  Drivers which
	  decline a URI now no longer produce an error.  Make
	  xen_unified.c ignore naked URI strings like "foo".
2007-06-20 17:25:39 +00:00
Richard W.M. Jones
17e1ee3cc7 Wed Jun 20 18:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/virsh.c: 'virsh help command' now works even if we could
	  not get a connection to the hypervisor.  Rearranged the list
	  of commands to be in alphabetical order.
2007-06-20 17:22:09 +00:00
Richard W.M. Jones
2958900d22 Wed Jun 20 10:54:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c src/test.c src/xen_unified.c: Fix URI processing
	  so that local file URIs work again.  Move remote driver to
	  last in the list, and fix all drivers so they decline remote
	  URIs (Daniel Berrange).
2007-06-20 10:01:14 +00:00
Richard W.M. Jones
99089f80cd Tue Jun 19 20:07:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xend_internal.c: Recognise xen:/// as the standard
          URI for connecting to a local Xen hypervisor.
2007-06-19 19:08:09 +00:00
Richard W.M. Jones
a34c85732d Tue Jun 19 17:02:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/libvir.html docs/remote.html docs/uri.html: Documented
	  all supported URI formats.
2007-06-19 16:07:58 +00:00
Daniel Veillard
995235b13c * docs/site.xsl docs/libvirt.html docs/uri.html docs/*.html:
adding a placeholder for the new URIs page, update the
  stylesheet to generate a new page, rebuilt.
Daniel
2007-06-19 13:43:28 +00:00
Richard W.M. Jones
44e522c821 Tue Jun 19 13:12:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/remote.html: Check in the updated documentation file
          for the web site.
2007-06-19 12:12:15 +00:00
Richard W.M. Jones
3b7046a743 Tue Jun 19 10:30:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/virsh.c: vcpupin command now documented properly and
          gives clearer error messages if the cpulist is wrong
          (Masayuki Sunou).
2007-06-19 09:32:04 +00:00
Daniel Veillard
a03844f8ca * src/xend_internal.c: drop the release information as this
is usually garbage ending up polluting minor and major numbers.
* src/virsh.c: applied patch from Masayuki Sunou providing a pair
  of alternate attach/detach commands
Daniel
2007-06-19 09:12:55 +00:00
Richard W.M. Jones
81bb16b302 Mon Jun 18 16:59:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/libvir.html (Remote): Updated certificate documentation
	  to use GnuTLS certtool instead of CA.pl / openssl.
2007-06-18 16:00:16 +00:00
Daniel Veillard
af933f6ff0 * src/virsh.c: applied SetMem cleanup patch from Mark Johnson
Daniel
2007-06-18 08:33:08 +00:00
Richard W.M. Jones
6668e64766 Fri Jun 15 16:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Solaris header file fixes (Mark Johnson).
2007-06-15 15:24:20 +00:00
Richard W.M. Jones
a770b4c357 Fri Jun 15 14:42:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/test.c, src/virsh.c, src/xend_internal.c, src/xm_internal.c:
	  Replace calls to deprecated {,r}index with str{,r}chr.
2007-06-15 13:44:19 +00:00
Richard W.M. Jones
b69fcc15b4 Fri Jun 15 08:53:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/internal.h, src/virsh.c: Replace _N with N_ so that
          Solaris builds work (Mark Johnson).
        * src/virsh.c: Add a couple of missing error messages (Mark
          Johnson).
        * python/types.c: Fix NULL pointer deref on DEBUG build
          (Mark Johnson).
        * src/virsh.c: Spelling fix (Mark Johnson).
2007-06-15 08:18:55 +00:00
Daniel P. Berrange
1bb74341b4 Fix handling of extra_release for Fedora 2007-06-15 01:31:51 +00:00
Daniel P. Berrange
512bf1a6b2 Fix coverage file generation 2007-06-15 01:21:18 +00:00
Daniel Veillard
7c85b83736 * src/virsh.c: patch from Saori Fukuta for messages
* *.po: updated with the patch from Saori Fukuta and merge from
  the i18n CVS base.
Daniel
2007-06-13 09:32:44 +00:00
Richard W.M. Jones
bc2f1b3cf4 Mon Jun 11 14:49:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/examples/index.py: Autogenerate Makefile.am and
	  .cvsignore in this directory with corrected LDADDS and
	  including some generated subdirectories which CVS should
	  ignore.
2007-06-11 13:55:03 +00:00
Richard W.M. Jones
0bbe8da810 Some fixes for RPM builds:
Mon Jun 11 14:10:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>

	* libvirt.spec.in: BuildRequires gnutls-devel and
	  set the remote PIDfile when configuring.
	* qemud/Makefile.am: Distribute the Perl scripts.
	* qemud/qemud.c: Only use QEMUD_DEBUG when ENABLE_DEBUG
	  is defined.
2007-06-11 13:24:45 +00:00
Richard W.M. Jones
7172e734e1 Mon Jun 11 13:24:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/examples/.cvsignore: Ignore .deps and .libs subdirectories.
2007-06-11 12:24:21 +00:00
Richard W.M. Jones
f7f0a31a82 Mon Jun 11 13:22:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/libvir.html, docs/remote.html: Updated docs to reflect
	  access control lists now based on Distinguished Names.
2007-06-11 12:23:36 +00:00
Richard W.M. Jones
80b7e43da8 Mon Jun 11 13:18:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in: Add '--with-remote' flag.  Add compatibility
	  code for versions of libxml2 supporting xmlURI.query_raw.
	  Check for GnuTLS library.
2007-06-11 12:19:46 +00:00
Richard W.M. Jones
9172d0ec27 Mon Jun 11 12:49:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/Makefile.am, qemud/dispatch.c, qemud/dispatch.h,
	  qemud/internal.h, qemud/protocol.c,
	  qemud/protocol.h, qemud/protocol.x, qemud/qemud.c:
	  libvirt_qemud server-side modifications to use
	  XDR-based protocol instead of homebrew (Dan Berrange).
	  QEMUD server modified to dispatch calls from remote
	  clients (Richard Jones).  Added TLS support (Richard Jones).
	  Added TCP & IPv6 support (Richard Jones).
	  Additional configuration file, command-line handling, and
	  usage (Richard Jones).
	* qemud/conf.c: Remove unnecessary header file.
2007-06-11 12:04:54 +00:00
Richard W.M. Jones
b4f7816bf4 Mon Jun 11 12:48:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/qemu_internal.c: QEMU client-side modifications to
	  use XDR-based protocol instead of homebrew.  (Dan Berrange)
2007-06-11 11:48:29 +00:00
Richard W.M. Jones
b9f8610a1e Mon Jun 11 12:45:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/remote.c, qemud/remote_generate_stubs.pl,
	  qemud/remote_dispatch_localvars.h,
	  qemud/remote_dispatch_proc_switch.h,
	  qemud/remote_dispatch_prototypes.h: Server side of
	  the remote patch, deals with call dispatch.
2007-06-11 11:47:01 +00:00
Richard W.M. Jones
b7c42619e6 Mon Jun 11 12:41:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c, src/remote_internal.h,
	  src/driver.h, src/libvirt.c, src/Makefile.am: Client side
	  of the remote patch - adds a remote driver.
2007-06-11 11:43:41 +00:00
Richard W.M. Jones
fc23185e84 Mon Jun 11 12:34:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/remote_protocol.x qemud/rpcgen_fix.pl
	  qemud/remote_protocol.c qemud/remote_protocol.h: Client/server
	  protocol used by remote.
2007-06-11 11:36:17 +00:00
Daniel Veillard
29e65f9a98 * configure.in libvirt.spec.in include/libvirt/libvirt.h
docs/*: prepared release of 0.2.3
Daniel
2007-06-08 11:11:56 +00:00
Daniel Veillard
c7aae27426 * po/*: new merge of localization strings
Daniel
2007-06-08 09:36:43 +00:00
Daniel P. Berrange
f404609120 Fixed handling of bridge devices 2007-06-07 18:21:58 +00:00
Daniel P. Berrange
80b7a7ab4f Ensure build fails if tests fail 2007-06-07 14:48:30 +00:00
Daniel P. Berrange
2bdf20ba8b Fix boot device tests 2007-06-07 14:09:01 +00:00
Daniel P. Berrange
de288e8dbc Fix boot device tests 2007-06-07 14:08:35 +00:00
Daniel Veillard
a80faa4bf0 * src/xend_internal.c src/xm_internal.c src/xml.c: add support
for arguments to bootloader, patch from Hugh Brock
* tests/sexpr2xmltest.c tests/xml2sexprtest.c
  tests/sexpr2xmldata/sexpr2xml-pv-bootloader.sexpr
  tests/sexpr2xmldata/sexpr2xml-pv-bootloader.xml
  tests/xml2sexprdata/xml2sexpr-pv-bootloader.sexpr
  tests/xml2sexprdata/xml2sexpr-pv-bootloader.xml: add specific
  regression tests
Daniel
2007-06-07 13:50:18 +00:00
Daniel Veillard
2a10972010 * src/libvirt.c: do not die if the daemon is not running on a Xen
system (shows up as root only) and emit a warning instead
* src/virterror.c include/libvirt/virterror.h docs/*: add
  the new warning.
Daniel
2007-06-07 13:05:00 +00:00
Daniel Veillard
41402668f9 * src/xml.c: patch from Saori Fukuta to avoid (type ioemu)
on Xen-3.1 and HVM guests devices to avoid breaking paravirt
  drivers there
Daniel
2007-06-06 14:39:04 +00:00
Daniel Veillard
7eed474dd3 * src/virsh.c: added a logging option to a file based on
Nobuhiro Itou patch
* src/xen_internal.c: small TODO comment from Atsushi SAKAI
Daniel
2007-06-06 12:24:31 +00:00