Commit Graph

806 Commits

Author SHA1 Message Date
Daniel Veillard
9f211bbf3a * include/libvirt/libvirt.h include/libvirt/libvirt.h.in
src/driver.h src/libvirt.c src/openvz_driver.c src/qemu_driver.c
  src/test.c src/xen_unified.c src/xend_internal.c: add new API
  virNodeGetFreeMemory(), extends the driver. Lacks remote and
  QEmu support though.
* src/libvirt.c: allows to fix virNodeGetCellsFreeMemory() adding
  parameter check for startCell.
* proxy/libvirt_proxy.c src/xend_internal.[ch]
  include/libvirt/libvirt.h include/libvirt/libvirt.h.in: applied
  vncpasswd dump patch from Mark Johnson but with the
  virDomainXMLFlags extension as suggested by Daniel Berrange
  this changed a couple of internal APIs too
* tests/sexpr2xmldata/sexpr2xml-no-source-cdrom.xml: fix one of the
  tests affected by bootloader dump change.
Daniel
2007-09-30 13:09:07 +00:00
Daniel P. Berrange
0e7aa57385 Solaris hypercall compatability fixes (Mark Johnson) 2007-09-29 18:37:47 +00:00
Daniel P. Berrange
84b5415cbf Allow empty bootloader tag 2007-09-29 18:31:05 +00:00
Daniel P. Berrange
fb741174ad Solaris portability fix from Mark Johnson. Remove use of anonymous union members 2007-09-29 18:16:26 +00:00
Daniel P. Berrange
b876bf6ea5 Fixed crash prossing input tags 2007-09-28 20:47:58 +00:00
Daniel Veillard
4bf3bc9eda * include/libvirt/libvirt.h[.in] src/driver.h src/openvz_driver.c
src/qemu_driver.c src/remote_internal.c src/test.c
  src/xen_internal.[ch] src/xen_unified.c src/xend_internal.[ch]
  src/libvirt.c src/libvirt_sym.version: adding NUMA support patches
  from Beth Kon adding new virNodeGetCellsFreeMemory entry point
  and extending the virConnectGetCapabilities one. Fix a couple of
  issues in the patch and add to exported symbols from shared lib.
* docs/virsh.pod docs/virsh.1 src/virsh.c: added new command
  freecell to get the available memory on the node or in a NUMA cell.
* docs/*: updated and regenerated the documentation
Daniel
2007-09-28 14:28:12 +00:00
Richard W.M. Jones
dbd8f037e7 * docs/libvir.html: Clarified configuration required for
remote over ssh.
2007-09-28 10:24:58 +00:00
Richard W.M. Jones
91076f111b * src/remote_internal.c: Fix handling of usernames (thanks to
Fabian Deutsch for finding and fixing this).
2007-09-25 13:54:17 +00:00
Daniel P. Berrange
136ebc6e3c Detect QEMU flags per VM instead of once for driver as a whole 2007-09-21 21:20:32 +00:00
Daniel P. Berrange
b32f429849 Added a no_tty param to remote URIs to stop SSH prompting for password 2007-09-21 20:17:09 +00:00
Daniel P. Berrange
6f44e36e15 Test compiler flags for linking too 2007-09-21 20:01:43 +00:00
Daniel P. Berrange
01422bd794 Fixed QEMU uri parsing/detection 2007-09-21 19:32:02 +00:00
Richard W.M. Jones
0caf0d767c Thu Sep 20 19:37:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/bridge.c, src/qemu_driver.c, configure.in: Try to detect
        the paths of dnsmasq and brctl at compile time.  If found
        then compile them in, otherwise search $PATH at runtime.

        * libvirt.spec.in: BR dnsmasq and bridge-utils so we have their
        paths at compile time.
2007-09-20 18:40:36 +00:00
Richard W.M. Jones
9a79baba76 Thu Sep 20 18:10:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/qemu_driver.c, docs/libvir.html: Support virConnectGetHostname
        and virConnectGetURI for qemu driver.
2007-09-20 17:13:39 +00:00
Richard W.M. Jones
415015506f Thu Sep 20 13:02:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c: Don't try to generate an error message with
        an invalid connection object.
2007-09-20 12:04:57 +00:00
Richard W.M. Jones
18ec04c071 Thu Sep 20 12:59:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xend_internal.c: Error message if we cannot connect
        to xend.
2007-09-20 12:02:18 +00:00
Daniel P. Berrange
736f0e2531 Fix waitpid() call to only run in error case (merge error) 2007-09-19 21:44:32 +00:00
Daniel P. Berrange
27b4293285 Switch to use pkg-config to find gnutls 2007-09-19 17:42:40 +00:00
Daniel P. Berrange
e04914328d Make libxml configure process try to use pkg-config if available 2007-09-19 15:35:00 +00:00
Daniel P. Berrange
e1f4399150 Added config params to customize UNIX sock perms & ownership 2007-09-19 02:28:01 +00:00
Daniel P. Berrange
8f4e48edff Added support for Avahi mDNS advertisement 2007-09-19 01:56:55 +00:00
Daniel P. Berrange
c79514fda0 Allow updating of existing timers & file handle event watches 2007-09-19 01:27:32 +00:00
Daniel P. Berrange
0bde7e57a2 Avoid portability warnings from automake 2007-09-18 23:46:18 +00:00
Daniel P. Berrange
444f9c368e Don't check for bridge headers if QEMU is disabled 2007-09-18 23:40:34 +00:00
Daniel P. Berrange
4966664928 Print configuration summary 2007-09-18 23:36:30 +00:00
Daniel P. Berrange
2384225b8b Avoid zombies with remote tunnels 2007-09-18 03:08:49 +00:00
Daniel P. Berrange
63dc047468 Fixed PXE network boot config 2007-09-13 22:06:54 +00:00
Richard W.M. Jones
cc82a93645 Wed Sep 12 16:35:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xend_internal.c, src/xml.c, src/xml.h: Properly check buffer
        size in virDomainXMLDevID (Hugh Brock).
2007-09-12 15:41:51 +00:00
Richard W.M. Jones
5fac0c95e1 Wed Sep 12 11:30:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xend_internal.c, src/xen_unified.c: Removed an annoying
	  warning when using Xen 3.0.3 and inactive domains.
2007-09-12 10:37:00 +00:00
Richard W.M. Jones
1361ddec0a Wed Sep 12 11:25:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: virDrvOpenRemoteFlags was accidentally
	  declared as a global variable, instead of the name an enum.
2007-09-12 10:33:48 +00:00
Daniel Veillard
3292123d13 * docs/architecture.html docs/errors.html docs/format.html
docs/libvir.html: fixing typos spotted by Eduardo Pereira
Daniel
2007-09-10 15:16:25 +00:00
Daniel Veillard
fcf1b59128 * src/xend_internal.c: applied patch from Hugh Brock to allow
CD Rom device reload by reusing virDomainAttachDevice() with
  a new definition
Daniel
2007-09-10 11:47:17 +00:00
Daniel Veillard
298d289542 * include/libvirt/libvirt.h include/libvirt/libvirt.h.in
src/libvirt.c: fixes a few problems in the documentation
  pointed out by Toth Istvan.
* docs/*: regenerated the docs
Daniel
2007-09-10 09:37:10 +00:00
Daniel Veillard
372c6f96f7 * docs/libvir.html docs/uri.html: remove references to libvirt_qemud
and replace them with libvirtd
Daniel
2007-09-05 14:32:13 +00:00
Daniel Veillard
5196e6cab7 * src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c: a bit
of cleanup on top of previous patches.
Daniel
2007-09-03 16:30:00 +00:00
Daniel Veillard
b36902c37a * src/openvz_conf.c src/openvz_conf.h src/openvz_driver.c
src/openvz_driver.h: Applied patch from Shuveb Hussain and Anoop
  Cyriac to extent OpenVZ driver capabilities, especially Create().
Daniel
2007-09-03 15:37:07 +00:00
Daniel Veillard
3c999f7ff4 * src/buf.c: applied patch from Masayuki Sunou fixing a loop
due to an error in growing buffers.
Daniel
2007-08-30 13:12:44 +00:00
Richard W.M. Jones
b001650c7d Wed Aug 29 14:43:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xen_internal.c (xenHypervisorDomainInterfaceStats): Swap
	  TX & RX network stats so they appear correct from the point
	  of view of the domain.
2007-08-29 13:35:15 +00:00
Daniel Veillard
b4d74032b0 * src/virsh.c: apply patch from Masayuki Sunou to fix the exit value
of vncdisplay command.
Daniel
2007-08-29 07:47:09 +00:00
Daniel Veillard
3d5e2a1532 * src/xend_internal.c: applied patch from Masayuki Sunou to avoid
memory corruption on very large XML dumps.
Daniel
2007-08-27 09:31:31 +00:00
Daniel Veillard
cb2e35b604 * configure.in libvirt.spec.in include/libvirt/libvirt.h docs/*:
preparing release of 0.3.2
* src/libvirt.c: fix a couple of comments
* po/*: string localization merge/update
Daniel
2007-08-21 14:59:47 +00:00
Daniel Veillard
3a4c8d219c * src/xs_internal.c: cleanup of memory leaks from Masayuki Sunou
* src/virsh.c: another memory leaks of virsh schedinfo cleanup from
  Saori Fukuta
* po/*: string localization merge/update
Daniel
2007-08-21 11:53:52 +00:00
Richard W.M. Jones
442a15770c Tue Aug 21 10:58:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c (virDomainBlockStats, virDomainInterfaceStats):
	  Added block device and network interface statistics.
	* src/xen_internal.c: Support for stats from Xen domains.
	* qemud/remote.c, qemud/remote_protocol.x, qemud/remote_internal.c:
	  Support for fetching device and network interface stats
	  across remote connections.
	* src/virsh.c: Added 'virsh domblkstat' and 'virsh domifstat'
	  commands to display stats.
	* docs/libvir.html, docs/hvsupport.html: Updated hvsupport
	  documentation.
2007-08-21 10:08:12 +00:00
Richard W.M. Jones
c413098dc8 Tue Aug 21 10:36:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* tests/xencapsdata/*.xml: Fixed tests to include new
	  <migration_features> element in capabilities XML.
2007-08-21 09:38:00 +00:00
Richard W.M. Jones
81005437f4 Tue Aug 21 10:21:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/libvirt.c (virDomainMigrate): Added virDomainMigrate
	  API call.
	* src/xend_internal.c, src/xen_unified.c: Support for migration
	  of Xen domains.
	* src/xen_internal.c: Xen capabilities indicates level of
	  support for migration.
	* qemud/remote.c, qemud/remote_protocol.x, src/remote_internal.c:
	  Support for migration between remote hypervisors.
	* src/virsh.c: Added 'virsh migrate' command.
	* docs/libvir.html, docs/hvsupport.html: Updated hvsupport
	  documentation.
2007-08-21 09:31:12 +00:00
Richard W.M. Jones
4d8c013104 Removed a CVS conflict line which had been inadvertently committed. 2007-08-21 09:08:45 +00:00
Richard W.M. Jones
19e21d8672 Tue Aug 21 09:56:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* qemud/remote.c, qemud/remote_protocol.x, src/driver.h,
          src/internal.h, src/libvirt.c, src/libvirt_sym.version,
          src/qemu_driver.c, src/remote_internal.c, src/test.c:
          Add a private interface so that libvirt.c coordination
          functions can detect the availability of features in
          underlying drivers, using the VIR_DRV_SUPPORTS_FEATURE
          macro.
2007-08-21 09:03:55 +00:00
Richard W.M. Jones
9201909064 Tue Aug 21 09:45:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/xend_internal.c: Return the interface device name as
          <target dev='vifX.Y'/> in domain XML.
        * tests/*: Update XML in regression tests.
2007-08-21 08:54:07 +00:00
Richard W.M. Jones
157ddaa295 Tue Aug 21 09:07:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* docs/libvir.html: Updated the hvsupport page to show that
          KVM now supports save and restore operations.
2007-08-21 08:13:40 +00:00
Daniel Veillard
b8906a43fa * src/xend_internal.c: patch from Masayuki Sunou to avoid
attach-disk/attach-interface when < Xen 3.0.4
Daniel
2007-08-16 15:38:38 +00:00
Daniel Veillard
0ee4415cc6 * src/virsh.c: vshCommandOptInt was broken as it would not
detect non-int inputs, problem raised by Masayuki Sunou
Daniel
2007-08-16 13:21:36 +00:00
Daniel Veillard
d7b5e2c2d8 * src/virsh.c: fixed 2 small bugs in setvcpus command, after
Atsushi SAKAI pointed out a value checking problem
Daniel
2007-08-15 10:18:33 +00:00
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