Jim Meyering
3cb808d2a2
autobuild.sh: Run "make syntax-check", so the autobuilder does this.
2008-02-07 19:19:45 +00:00
Daniel Veillard
55f7de7821
missing ')'
...
* qemud/remote.c: fix a missing ')' introduced earlier
Daniel
2008-02-07 17:03:17 +00:00
Daniel Veillard
e9b3bc773d
virHashRemoveSet bugfixes
...
* src/hash.c: fix a couple of problems in virHashRemoveSet based
on Hiroyuki Kaguchi patch and explanations.
Daniel
2008-02-07 16:56:01 +00:00
Jim Meyering
247df6e448
Mark all qemudLog diagnostics for translation.
...
* po/POTFILES.in: Add names of many new files.
* Makefile.maint (err_func_re): Add qemudLog.
Mark diagnostics with _(...). Split some long lines.
* qemud/qemud.c (remoteCheckCertFile, remoteInitializeGnuTLS):
(qemudDispatchSignalEvent, qemudSetCloseExec, qemudSetNonBlock):
(qemudWritePidFile, qemudListenUnix, remoteMakeSockets):
(remoteListenTCP, qemudInitPaths, qemudInitialize):
(qemudNetworkInit, remoteInitializeTLSSession, remoteCheckDN):
(remoteCheckCertificate, remoteCheckAccess, qemudDispatchServer):
(qemudClientReadBuf, qemudDispatchClientRead):
(qemudClientWriteBuf, qemudDispatchClientWrite, qemudOneLoop):
(remoteConfigGetStringList, checkType, GET_CONF_STR):
(remoteConfigGetAuth, remoteReadConfigFile, main):
* qemud/remote.c (remoteDispatchAuthSaslInit, remoteSASLCheckSSF):
(remoteSASLCheckAccess, remoteDispatchAuthSaslStart):
(remoteDispatchAuthSaslStep, remoteDispatchAuthSaslInit):
(remoteDispatchAuthSaslStart, remoteDispatchAuthSaslStep):
(qemudGetSocketIdentity, remoteDispatchAuthPolkit):
* src/iptables.c (notifyRulesUpdated, MAX_FILE_LEN, iptRulesSave):
(iptRulesReload):
* src/qemu_conf.c (qemudExtractVersionInfo, qemudLoadConfig):
(qemudLoadNetworkConfig, qemudScanConfigDir):
* src/qemu_driver.c (qemudSetCloseExec, qemudSetNonBlock):
(qemudAutostartConfigs, qemudStartup, qemudReload):
(qemudWaitForMonitor, qemudStartVMDaemon, qemudVMData):
(qemudShutdownVMDaemon, qemudStartNetworkDaemon):
(qemudShutdownNetworkDaemon, qemudMonitorCommand):
(qemudDomainUndefine, qemudNetworkUndefine):
* src/uuid.c (virUUIDGenerate):
* src/xm_internal.c (xenXMAttachInterface):
2008-02-07 16:50:17 +00:00
Jim Meyering
e8ff93b4e6
Remove more useless if tests before "free"-like functions.
...
* build-aux/useless-if-before-free: Rename from ...
* build-aux/find-unnecessary-if-before-free: ... this. Remove file.
Also changed it so that new names are no longer hard-coded in the
script. Instead, they're supplied via options:
* Makefile.cfg (useless_free_options): Define.
Add xmlXPathFreeObject to the list of free-like functions it detects.
* Makefile.maint (sc_avoid_if_before_free): Reflect script renaming.
* .x-sc_avoid_if_before_free: Likewise.
* src/openvz_conf.c (openvzParseXML): Remove useless "if"-before-free.
* src/qemu_conf.c (qemudParseXML, qemudParseNetworkXML): Likewise.
* src/virsh.c (cmdVNCDisplay, cmdTTYConsole, cmdDetachInterface):
(cmdDetachDisk): Likewise.
* src/xm_internal.c (xenXMConfigSetIntFromXPath): Likewise.
(xenXMConfigSetStringFromXPath, xenXMParseXMLToConfig): Likewise.
(xenXMDomainAttachDevice, xenXMAttachDisk, xenXMAttachInterface):
(xenXMDomainDetachDevice): Likewise.
* src/xml.c (virXPathString): Likewise.
* tests/xmlrpctest.c (checkRequestValue): Likewise.
2008-02-07 16:49:29 +00:00
Jim Meyering
5a93214143
Remove trailing blanks
2008-02-07 12:34:19 +00:00
Mark McLoughlin
a0f83fd905
* src/xen_internal.c: Don't crash if there's no /sys/hypervisor/capabilities
2008-02-07 10:43:14 +00:00
Mark McLoughlin
3d3c8ac4c4
src/iptables.c: Create directory for saving iptables rules
2008-02-07 10:17:24 +00:00
Mark McLoughlin
f90cd4c3f4
src/xm_internal.[ch]: Move static function prototype from header
2008-02-07 10:14:43 +00:00
Daniel Veillard
ecaf98fcc5
Python bindings return values fixes
...
* python/libvir.c: apply patch from Cole Robinson to provide
return values for manulally written python bindings.
Daniel
2008-02-07 09:49:13 +00:00
Daniel Veillard
232d4f157a
Oops forgot >>>>, Daniel
2008-02-07 09:37:41 +00:00
Daniel Veillard
b33f740e1f
* src/libvirt.c: fix bug in xenUnifiedDomainSuspend() patch provided
...
by Marcus Meissner
Daniel
2008-02-07 09:37:10 +00:00
Daniel Veillard
594af3eb22
add/change/delete a Disk/NIC of an inactive domains
...
* src/xm_internal.[ch]: applied patch from Shigeki Sakamoto to
add/change/delete a Disk/NIC of an inactive domains
Daniel
2008-02-06 17:57:10 +00:00
Daniel Veillard
eecd68364a
QEmu config error handling fixes
...
* src/qemu_conf.c: applied 2 patches from Guido Guenther to avoid
crashes when reading the config file
Daniel
2008-02-06 16:24:28 +00:00
Jim Meyering
5419d0b44d
Fix new "make distcheck" failures.
...
* src/xml.c (virDomainParseXMLOSDescHVM): Mark a diagnostic.
2008-02-05 22:07:31 +00:00
Jim Meyering
e04912a9f0
Remove all trailing blanks; turn on the rule to detect them.
...
* Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank.
* .x-sc_trailing_blank: New file, to exempt the few binary files.
2008-02-05 19:27:37 +00:00
Daniel P. Berrange
e87e3f86bf
Added support for booting off kenrel+initrd with HVM guests
2008-02-05 16:21:25 +00:00
Jim Meyering
fb66d5ab92
Eliminate all uses of virBufferAdd with string literals.
...
* Makefile.maint (sc_prohibit_virBufferAdd_with_string_literal):
New rule.
* src/buf.h (virBufferAddLit): Define.
* src/conf.c (virConfSaveValue): Use virBufferAddLit, in place
of virBufferAdd everywhere possible.
(virConfSaveEntry): Likewise.
* src/qemu_conf.c (qemudGenerateXML, qemudGenerateNetworkXML): Likewise.
* src/qemu_driver.c (qemudGetFeatures, qemudGetCapabilities): Likewise.
* src/test.c (testDomainDumpXML, testNetworkDumpXML): Likewise.
* src/xen_internal.c (xenHypervisorMakeCapabilitiesXML): Likewise.
* src/xend_internal.c (xend_parse_sexp_desc_os): Likewise.
(xend_parse_sexp_desc, sexpr_to_xend_topology_xml): Likewise.
* src/xm_internal.c (xenXMDomainFormatXML, xenXMDomainPinVcpu): Likewise.
* src/xml.c (virSaveCpuSet, virParseXenCpuTopology): Likewise.
(virDomainParseXMLGraphicsDescImage): Likewise.
(virDomainParseXMLGraphicsDescVFB, virDomainParseXMLOSDescHVM): Likewise.
(virDomainParseXMLOSDescPV, virDomainParseXMLDiskDesc): Likewise.
(virDomainParseXMLIfDesc, virDomainParseXMLDesc): Likewise.
2008-02-05 14:22:28 +00:00
Jim Meyering
ecaa696250
Enable more checks for unmarked messages; fix violators.
...
* Makefile.maint (sc_unmarked_diagnostics): Check for more functions.
* src/conf.c (virConfParseValue): Remove trailing space in diagnostic.
* src/libvirt.c (do_open, virDomainMigrate): Mark diagnostics.
* src/xend_internal.c (do_connect, xenDaemonDomainDumpXMLByID): Likewise.
(xenDaemonDomainDumpXMLByName, xenDaemonCreateLinux): Likewise.
(xenDaemonDomainMigratePerform, xenDaemonDomainDefineXML): Likewise.
* src/xml.c (virXPathString, virXPathNumber, virXPathLong): Likewise.
(virXPathBoolean, virXPathNode, virXPathNodeSet): Likewise.
(virDomainParseXMLOSDescHVM): Likewise.
* src/xmlrpc.c (xmlRpcValueNew): Likewise.
(xmlRpcValueUnmarshalDictElement): Likewise.
2008-02-04 19:31:30 +00:00
Jim Meyering
e99570fc77
Mark a string for translation.
...
* src/virsh.c: Add a "%s" and wrap with _(...).
2008-02-04 14:58:47 +00:00
Jim Meyering
70400346d2
Enable the sc_unmarked_diagnostics test and correct all violations
...
involving the "error" function.
* Makefile.cfg (local-checks-to-skip): Remove from skip list.
* src/remote_internal.c: Mark translatable strings.
2008-02-04 14:58:05 +00:00
Jim Meyering
aa290a3ece
Pull vc-list-files from gnulib, and update.
...
* bootstrap (gnulib_tool): Add the vc-list-files module.
2008-02-01 19:47:07 +00:00
Jim Meyering
b5433aaa6f
Avoid compilation failure when building --without-xen.
...
* tests/statstest.c (testDevice) [!WITH_XEN]: #ifdef-out.
(main) [!WITH_XEN]: #ifdef-out the body.
Committer: Jim Meyering <meyering@redhat.com>
Author: Guido Guenther <agx@sigxcpu.org>
2008-01-31 21:49:47 +00:00
Jim Meyering
f5f530f33f
Avoid virsh leaks due to missing virDomainFree(dom) calls
...
* src/virsh.c (cmdDomuuid): Add missing virDomainFree call.
(cmdAttachDevice): Likewise.
(cmdDetachDevice): Likewise.
2008-01-30 19:58:59 +00:00
Jim Meyering
a1d2d2b21c
src/virsh.c (cmdCapabilities): Plug a small leak.
2008-01-30 19:57:54 +00:00
Jim Meyering
34dff95bfd
src/test.c (testLoadDomain): Avoid leaks upon failure.
2008-01-30 19:57:13 +00:00
Jim Meyering
1217e5d516
Avoid used-uninitialized errors in test driver.
...
* src/test.c (testOpenFromFile): Initialize "privconn".
2008-01-30 19:54:29 +00:00
Jim Meyering
6997b1920f
src/libvirt.c (do_open): Avoid double-free upon failure.
2008-01-30 19:53:10 +00:00
Jim Meyering
218f866f86
Avoid segfault upon malloc failure, and plug a leak.
...
* src/test.c (testDomainSave): Detect testDomainDumpXML failure. Free "xml".
2008-01-30 19:52:16 +00:00
Jim Meyering
5561e9125f
Plug test-related leaks.
...
* src/test.c (testLoadNetwork): Free forwardDev.
(testLoadDomain): Free ctxt.
(testLoadNetwork): Likewise.
(testOpenFromFile): Likewise.
2008-01-30 19:50:14 +00:00
Daniel P. Berrange
17ef6faa7f
Remove double mutex lock()
2008-01-30 18:21:13 +00:00
Daniel P. Berrange
03003499e7
Fix XML generation for Xen USB devices
2008-01-30 16:38:18 +00:00
Jim Meyering
51dd1d9e38
Arrange for "make syntax-check" to pass.
...
* .x-sc_avoid_if_before_free: Exempt ChangeLog.
* tests/statstest.c: Include <config.h>, not "config.h".
2008-01-30 06:55:56 +00:00
Daniel P. Berrange
21416a4746
Fix device name -> number conversion for block stats
2008-01-29 18:36:00 +00:00
Jim Meyering
2367caa327
Also detect and remove unnecessary if-before-xmlXPathFreeContext.
...
* build-aux/find-unnecessary-if-before-free: Update regexp.
* src/openvz_conf.c: Remove unnecessary "if (P)"-before xmlXPathFreeContext.
* src/qemu_conf.c: Likewise.
* src/virsh.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* tests/xmlrpctest.c: Likewise.
2008-01-29 18:23:43 +00:00
Jim Meyering
1be2c8c814
Enable two more tests.
...
* Makefile.cfg (local-checks-to-skip)
[sc_cast_of_x_alloc_return_value, sc_cast_of_argument_to_free]: Enable.
2008-01-29 18:21:00 +00:00
Jim Meyering
2c72562374
Enable the <assert.h>-checking test; fix violations.
...
* Makefile.cfg (local-checks-to-skip)
[sc_prohibit_assert_without_use]: Enable.
* qemud/mdns.c: Don't include <assert.h>; no uses of assert here.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.
2008-01-29 18:20:25 +00:00
Jim Meyering
05ae9d8bc4
Enable the po-check test; fix violations.
...
* Makefile.cfg (local-checks-to-skip) [po-check]: Enable.
* po/POTFILES.in: Add three file names. Sort.
2008-01-29 18:19:46 +00:00
Jim Meyering
bc48db5758
Update from gnulib
...
* lib/poll.c: Update.
* lib/string.in.h: Update.
* m4/string_h.m4: Update.
* tests/test-getaddrinfo.c: Update.
* lib/Makefile.am: Regenerate.
2008-01-29 18:17:47 +00:00
Jim Meyering
a378188194
Enable the <config.h>-requiring test; fix violations
...
Use <config.h>, not "config.h", per autoconf documentation.
* Makefile.cfg (local-checks-to-skip) [sc_require_config_h]: Enable.
* .x-sc_require_config_h: New file, to list exempted files.
* Makefile.am (EXTRA_DIST): Add .x-sc_require_config_h.
2008-01-29 18:15:54 +00:00
Jim Meyering
9e4c8fcb3a
Enable the duplicate-"the" test; fix violations
...
* Makefile.cfg (local-checks-to-skip) [sc_the_the]: Enable.
* docs/virsh.pod: Remove a duplicate "the".
* libvirt.spec.in: Likewise.
* virsh.1: Likewise.
2008-01-29 17:43:28 +00:00
Jim Meyering
cc337da21f
Add framework for code style- and syntax-checking rules.
...
Almost all tests are initially disabled via the list in Makefile.cfg.
* Makefile.am (EXTRA_DIST): Add .x-sc_avoid_if_before_free.
Omit names of files that automake includes automatically.
* .x-sc_avoid_if_before_free: New file.
* build-aux/vc-list-files: Likewise.
* build-aux/find-unnecessary-if-before-free: Likewise.
* GNUmakefile, Makefile.cfg, Makefile.maint: New files.
2008-01-29 17:42:39 +00:00
Jim Meyering
acff2d11ac
Given code like if (foo) free (foo); remove the useless "if (foo) " part.
...
Likewise, given if (foo != NULL) free (foo); remove the useless "if" test.
* proxy/libvirt_proxy.c: Remove unnecessary "if" test before free.
* python/generator.py: Likewise.
* qemud/qemud.c: Likewise.
* src/buf.c: Likewise.
* src/conf.c: Likewise.
* src/hash.c: Likewise.
* src/iptables.c: Likewise.
* src/libvirt.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/qemu_conf.c: Likewise.
* src/qemu_driver.c: Likewise.
* src/remote_internal.c: Likewise.
* src/test.c: Likewise.
* src/virsh.c: Likewise.
* src/virterror.c: Likewise.
* src/xen_internal.c: Likewise.
* src/xen_unified.c: Likewise.
* src/xend_internal.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* src/xmlrpc.c: Likewise.
* src/xs_internal.c: Likewise.
* tests/testutils.c: Likewise.
* tests/xencapstest.c: Likewise.
* tests/xmconfigtest.c: Likewise.
2008-01-29 17:41:07 +00:00
Richard W.M. Jones
b17caa80d1
Clarify virsh documentation.
...
* docs/virsh.pod: Clarify virsh documentation on when you can
set memory and vCPUs.
2008-01-25 12:03:05 +00:00
Daniel Veillard
aab826d4cc
Fix VIR_DOMAIN_NONE into VIR_DOMAIN_NOSTATE
...
* src/xen_internal.c: fix an erronous use of VIR_DOMAIN_NONE instead
of VIR_DOMAIN_NOSTATE (both defined as 0, no regression)
Daniel
2008-01-25 09:47:51 +00:00
Daniel Veillard
3f9a94bec3
* src/libvirt.c: Jay Gagnon pointed out that virDomainGetXMLDesc
...
was failing with a non-zero flag value
Daniel
2008-01-24 17:09:56 +00:00
Richard W.M. Jones
7db9140126
Correct typos in the documentation (Atsushi SAKAI)
...
* README, libvirt.spec.in, docs/devhelp/html.xsl,
docs/devhelp/index.html: Correct typos in the documentation.
2008-01-24 10:15:13 +00:00
Daniel P. Berrange
38b2478b41
Fix enablement of SASL
2008-01-23 19:37:10 +00:00
Richard W.M. Jones
9cf2573c8a
Portability improvements for Mac OS X.
...
* configure.in: Use PortableXDR if available.
* qemud/internal.h: Use "socketcompat.h".
* qemud/qemud.c: Use <signal.h>.
* src/sexpr.c: Use <stdlib.h> instead of <malloc.h>.
* src/socketcompat.h: Include <sys/un.h> for Mac OS X.
2008-01-23 14:54:41 +00:00
Richard W.M. Jones
569200b6d4
Remove DOS line-endings.
...
* src/socketcompat.h: Remove DOS line-endings in this file.
2008-01-23 14:50:14 +00:00
Daniel P. Berrange
9d7661e415
Fix compat for old pkg-config and gnutls
2008-01-22 21:30:05 +00:00
Jim Meyering
63dffbf1d2
Avoid "may be used uninitialized" warning.
...
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
2008-01-21 17:06:47 +00:00
Daniel P. Berrange
97bed42f7a
Fix & refactor ref counting cleanup code
2008-01-21 16:29:10 +00:00
Daniel P. Berrange
c9b7eae903
Make python generator fail build on any missing APIs
2008-01-21 15:55:53 +00:00
Daniel P. Berrange
62094f72f6
Add missing vcpu/schedular APIs to python binding
2008-01-21 15:41:15 +00:00
Daniel P. Berrange
45738083a6
Use virFileReadAll in virsh.c
2008-01-21 15:27:14 +00:00
Daniel P. Berrange
53365f4c54
Remove no-op networking APIs from openvz driver
2008-01-21 15:19:46 +00:00
Jim Meyering
64b3019d69
Adjust sexpr-related interfaces to be const-correct.
...
* src/sexpr.c (sexpr_cons, append, sexpr_append, sexpr2string)
(sexpr_lookup_key, sexpr_lookup, sexpr_node, sexpr_fmt_node):
Add "const" attribute where appropriate.
* src/xend_internal.c (sexpr_int, sexpr_float, sexpr_u64)
(sexpr_uuid, sexpr_to_xend_domain_info, sexpr_to_xend_node_info)
(sexpr_to_xend_topology_xml, sexpr_to_domain): Likewise.
* src/sexpr.h: Adjust prototypes.
2008-01-21 14:22:15 +00:00
Jim Meyering
a430f22be4
Don't access line[-1] for a zero-length "line" from fgets.
...
A NUL byte at beginning of input, or just after a newline
would provoke an invalid buf[-1] access (possible segfault).
* src/libvirt.c (virConnectAuthCallbackDefault):
2008-01-21 14:09:51 +00:00
Daniel Veillard
5912e7c233
Preserve vif order
...
* src/xml-internal.c: apply patch from Hiroyuki Kaguchi to
preserve the vif list order.
Daniel
2008-01-21 08:27:12 +00:00
Daniel Veillard
d3043afe5c
Remove docs/API*.html
...
* docs/API* docs/api.xsl docs/site.xsl docs/Makefile.am: remove the
generation of the API*.html files as it's not really useful here
Daniel
2008-01-21 08:08:33 +00:00
Daniel P. Berrange
d56aff5255
Added xstrtol_ll and xstrtol_ull convenience functions
2008-01-20 16:11:25 +00:00
Daniel P. Berrange
e05a879022
Fix nodeinfo compat for Xen 3.2.0
2008-01-20 15:56:49 +00:00
Daniel P. Berrange
e8d690aeb5
Enable debug by default, but only if LIBVIRT_DEBUG=1. Use generic macro for debug output
2008-01-19 18:36:01 +00:00
Jim Meyering
df7bf130ae
docs/examples/examples.xml: Regenerate, now that *.c file names are sorted.
2008-01-15 15:27:31 +00:00
Daniel P. Berrange
f6ba6e9eb7
Support VNC keymap option with QEMU (Daniel Hokka Zakrisson)
2008-01-15 15:18:33 +00:00
Daniel P. Berrange
045d32a8e8
Fix off-by-one in SSH argv checking. Fix format string warning
2008-01-15 14:23:52 +00:00
Jim Meyering
32d4aeb162
Update from gnulib.
2008-01-14 14:07:25 +00:00
Jim Meyering
2edab512a0
Clean up the global name space.
...
* src/qemu_conf.c: Add "static" and "const" attributes to some globals.
* src/qemu_conf.h: Update a declaration.
* src/qemu_driver.c (qemud_driver): Declare static.
Author: Jim Meyering <meyering@redhat.com>
2008-01-14 14:05:25 +00:00
Jim Meyering
f510a6128b
Clean up global name space in examples and tests.
...
* docs/examples/suspend.c: Declare global "conn" to be static.
* tests/qemuxml2argvtest.c: Declare global "driver" to be static.
* tests/qemuxml2xmltest.c: Likewise.
Author: Jim Meyering <meyering@redhat.com>
2008-01-14 14:04:33 +00:00
Daniel P. Berrange
6aae9a9efb
Re-factor auth code to make clearer (Jim Meyering)
2008-01-14 04:05:23 +00:00
Daniel P. Berrange
b2083ea907
Fix crash when no auth callback
2008-01-14 04:00:34 +00:00
Mark McLoughlin
4c50142381
fix an unused variable warning
2008-01-10 14:41:39 +00:00
Mark McLoughlin
73ab4e0845
add iptablesSaveRules(), and don't save the rules to disk
...
and run lokkit each time a new rule is added.
2008-01-10 14:01:00 +00:00
Mark McLoughlin
2d2e410818
now that we only use built-in iptables chains, we don't
...
need to add or delete them
2008-01-10 13:58:59 +00:00
Mark McLoughlin
9b29b2a2a5
Like --with-iptables-prefix, --with-iptables-dir is no
...
longer useful, so let's remove it.
2008-01-10 13:57:48 +00:00
Mark McLoughlin
f8e0674ad5
--with-iptables-prefix was added to integrate with
...
a proposed system for letting iptables know how to
reload our rules. The proposed system wasn't accepted
so, although there might be some other theoretical
use for this, let's just remove it.
2008-01-10 13:56:22 +00:00
Mark McLoughlin
b9daf6d9dd
Add support for integrating our iptables support with Fedora's
...
iptables configuration using the lokkit --custom-rules command.
Basically, we write out our rules to /var/lib/libvirt/iptables
and run lokkit --custom-rules so that if e.g. iptables is
restarted or the user edits their firewall configuration, then
libvirt's rules get reloaded.
2008-01-10 13:54:02 +00:00
Mark McLoughlin
a43ddc075a
Include the iptables command and chain name in the saved rules files
2008-01-10 13:51:55 +00:00
Mark McLoughlin
9d04c25ab2
Re-name the "flipflop" variable to "command_idx"
2008-01-10 13:50:46 +00:00
Mark McLoughlin
cc83cda045
make use of virFileMakePath(), virFileBuildPath() and virRun().
2008-01-10 13:49:55 +00:00
Mark McLoughlin
fc11528f98
Fix compile error in --with-iptables-dir code
2008-01-10 13:48:44 +00:00
Mark McLoughlin
cf0ee0f6e4
Change virExec() such that with --enable-debug,
...
stdout and stderr no longer go to /dev/null.
2008-01-10 13:47:49 +00:00
Mark McLoughlin
77a2fc0061
Add virRun() helper function (Dan Berrange)
2008-01-10 13:46:10 +00:00
Daniel P. Berrange
9d11255a47
Fix vcpupin hypercall map data to be 8-bytes
2008-01-09 21:08:29 +00:00
Daniel P. Berrange
78f2cd3d2d
Added graceful shutdown support to QEMU/KVM (patch from Guido Guenther)
2008-01-09 16:05:21 +00:00
Daniel P. Berrange
8796a9ff74
Fix warning in debug output
2008-01-08 17:52:10 +00:00
Daniel P. Berrange
8cd4774468
Fix buffer passed to free()
2008-01-08 16:17:15 +00:00
Daniel P. Berrange
94e49e3f0e
Fix config file reading to not truncate large files
2008-01-07 15:21:33 +00:00
Richard W.M. Jones
029aef1d24
Miscellaneous fixes for building on Windows (MinGW).
...
* configure.in: xdr functions may require -lxdr.
* configure.in, src/Makefile.am: Extra linking flags for
building libvirt DLL.
* src/socketcompat.h: Hide Windows Winsock incompatibilities
in a separate header file.
* src/remote_internal.c: Switch to using socketcompat.h /
socket_errno().
* src/test.c: Switch to using socketcompat.h.
* gnulib/lib/arpa/.cvsignore: Ignore another generated file.
* src/qparams.c: Include <config.h>.
2008-01-05 16:06:36 +00:00
Daniel P. Berrange
76122538b6
Fix crash when no auth callback is provided
2008-01-02 22:48:04 +00:00
Daniel Veillard
7b40fcd11f
* src/openvz.c: patch from Mikhail Pokidko to fix the OpenVZ
...
compilation error #426385
Daniel
2007-12-26 05:41:05 +00:00
Daniel Veillard
6cb0289917
* configure.in docs/libvir.html docs/news.html po/*:
...
prepare release of libvirt-0.4.0
Daniel
2007-12-17 23:20:12 +00:00
Daniel P. Berrange
7d0cef38b5
Added dep on 'nc' RPM
2007-12-17 23:05:51 +00:00
Daniel P. Berrange
d575a83f81
Fix nodeinfo compat with Xen 3.2.0
2007-12-17 23:04:33 +00:00
Richard W.M. Jones
1be1fe69f5
Fix remote_internal.c error handling of qparam_get_query
...
* src/remote_internal.c: Fixed reversed check of error handling
of qparam_get_query call (Dan Berrange).
2007-12-17 17:41:02 +00:00
Richard W.M. Jones
3b0149354b
Add separate qparams module for handling query parameters.
...
* src/qparams.c, src/qparams.h, src/Makefile.am: Added a
separate 'qparams' module for handling query parameters.
* src/remote_internal.c: Factor out query parameter code so
it uses the 'qparams' module.
2007-12-17 10:07:56 +00:00
Richard W.M. Jones
ed9788c796
Add extra utility functions to buf.c
...
* src/buf.c, src/buf.h: Added utility functions
virBufferURIEncodeString and virBufferAddChar to the
buffer module.
2007-12-17 10:05:35 +00:00
Daniel P. Berrange
a11494fd52
Don't invoke callback with unsupported credential types
2007-12-15 17:15:12 +00:00
Daniel Veillard
cc8e4ff318
fix setting CPU parameters in the config files
...
* src/xm_internal.c: patch from Saori Fukuta to fix setting
CPU parameters in the config files, the value was overwritten
Daniel
2007-12-14 15:51:42 +00:00
Daniel Veillard
81acc14e3a
fix the detach-disk command when using Xen tap devices
...
* src/xs_internal.[ch]: patch from Saori Fukuta to fix the
detach-disk command when using Xen tap devices.
* docs/libvir.html: typo fix from Jim Meyering
Daniel
2007-12-14 15:38:02 +00:00
Richard W.M. Jones
b47ffc035c
Fix virBufferEscapeString escaping of '<'
...
* src/buf.c (virBufferEscapeString): '<' escaped as "<"
2007-12-12 16:27:10 +00:00
Jim Meyering
0d0b0113d0
Always build in python/ subdir.
...
* configure.in (PYTHON_SUBDIR): Don't set. Remove all uses.
* Makefile.am (SUBDIRS): Hard-code "python" here.
(tests): Test equivalent "$(pythondir)", not @PYTHON_SUBDIR@.
2007-12-12 08:12:38 +00:00
Jim Meyering
9e188e11c5
Accommodate automake-1.9.
...
* tests/Makefile.am (TESTS_ENVIRONMENT): Adjust PATH setting
to work also with automake-1.9. Can't use $(abs_top_builddir).
Author: Jim Meyering <meyering@redhat.com>
2007-12-12 07:21:37 +00:00
Jim Meyering
49230350fa
Use a variable name as sizeof argument, not a type name.
...
Given code like: T *var = calloc (n, sizeof (T));
Convert to this: T *var = calloc (n, sizeof (*var));
This first-cut change adjusts all malloc, calloc, and
realloc statements.
The only binary differences are in remote_internal.c
(due to the bug fix) and in xmlrpc.c (due to factorization).
* python/libvir.c: As above.
* qemud/event.c: Likewise.
* qemud/mdns.c: Likewise.
* qemud/qemud.c: Likewise.
* qemud/remote.c: Likewise.
* src/bridge.c: Likewise.
* src/buf.c: Likewise.
* src/conf.c: Likewise.
* src/hash.c: Likewise.
* src/iptables.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/qemu_conf.c: Likewise.
* src/qemu_driver.c: Likewise.
* src/test.c: Likewise.
* src/xen_internal.c: Likewise.
* src/xen_unified.c: Likewise.
* src/xm_internal.c: Likewise.
* src/xml.c: Likewise.
* tests/qemuxml2argvtest.c: Likewise.
* src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization.
* src/remote_internal.c (remoteAuthMakeCredentials): Use the right
type when allocating space for an array of cred _pointers_.
2007-12-11 21:57:29 +00:00
Jim Meyering
5a190594f4
Test libvirtd's config-processing code.
...
And remove a minor diagnostic inconsistency.
* tests/daemon-conf: New test.
* tests/Makefile.am (TESTS_ENVIRONMENT): Prepend qemud/ to PATH,
so we can invoke libvirtd without an absolute name.
(test_scripts): Add daemon-conf.
* qemud/qemud.c (remoteConfigGetAuth): Use checkType,
rather than open-coding it with a different diagnostic.
2007-12-11 21:20:13 +00:00
Jim Meyering
ac6bb7e131
Add gnulib-tool unit tests.
...
* bootstrap: Re-add --with-tests, now that gnulib-tool
arranges to use separate libraries for lib/ and tests/.
* configure.in (AC_OUTPUT): Add gnulib/tests/Makefile.in.
* Makefile.am (SUBDIRS): Add gnulib/tests.
* gnulib/tests/Makefile.am: New file.
* gnulib/lib/.cvsignore: Sort.
* gnulib/lib/Makefile.am, gnulib/m4/getdelim.m4, gnulib/m4/getline.m4:
* gnulib/m4/gnulib-cache.m4, gnulib/m4/gnulib-comp.m4: Regenerate.
* gnulib/tests/test-alloca-opt.c: New file, from gnulib.
* gnulib/tests/test-arpa_inet.c: Likewise.
* gnulib/tests/test-fseeko.c: Likewise.
* gnulib/tests/test-fseeko.sh: Likewise.
* gnulib/tests/test-getaddrinfo.c: Likewise.
* gnulib/tests/test-getdelim.c: Likewise.
* gnulib/tests/test-getline.c: Likewise.
* gnulib/tests/test-lseek.c: Likewise.
* gnulib/tests/test-lseek.sh: Likewise.
* gnulib/tests/test-netinet_in.c: Likewise.
* gnulib/tests/test-snprintf.c: Likewise.
* gnulib/tests/test-stdbool.c: Likewise.
* gnulib/tests/test-stdint.c: Likewise.
* gnulib/tests/test-stdio.c: Likewise.
* gnulib/tests/test-stdlib.c: Likewise.
* gnulib/tests/test-string.c: Likewise.
* gnulib/tests/test-sys_select.c: Likewise.
* gnulib/tests/test-sys_socket.c: Likewise.
* gnulib/tests/test-sys_stat.c: Likewise.
* gnulib/tests/test-sys_time.c: Likewise.
* gnulib/tests/test-unistd.c: Likewise.
* gnulib/tests/test-vasnprintf.c: Likewise.
* gnulib/tests/test-vasprintf.c: Likewise.
* gnulib/tests/test-wchar.c: Likewise.
* gnulib/tests/dummy.c: Likewise.
* gnulib/tests/intprops.h: Likewise.
* gnulib/tests/verify.h: Likewise.
2007-12-10 18:26:56 +00:00
Daniel P. Berrange
fd6ce1e637
Remove gnulib/lib/arpa/inet.h autogenerated file
2007-12-08 23:08:54 +00:00
Daniel P. Berrange
8392c710ae
Remove bogus autoconf 2.60 prereq
2007-12-07 15:31:36 +00:00
Daniel P. Berrange
6dfa7af42a
Fix minor quoting issue
2007-12-07 15:17:42 +00:00
Richard W.M. Jones
acbd696b05
Fri Dec 7 14:55:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* proxy/Makefile.am: Include gnulib code when building the
proxy.
2007-12-07 15:00:26 +00:00
Richard W.M. Jones
0d14fc0cbb
Fri Dec 7 14:49:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/console.c, src/console.h, src/virsh.c: Disable
text console on Windows.
* src/libvirt.c: Use replacement getpass from Gnulib.
* src/libvirt.c: Initialize Winsock before use.
* src/remote_internal.c: Header file fixes for Windows.
Don't fail if AI_ADDRCONFIG isn't defined. Disable
unsupported stuff under Windows.
* src/uuid.c: ENODATA unavailable on Windows, use EIO instead.
* src/virsh.c: No uid_t / getuid on Windows.
* src/virsh.c: No O_SYNC on Windows.
2007-12-07 14:56:37 +00:00
Richard W.M. Jones
f3ebd20d35
Fri Dec 7 14:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/internal.h: Use gnulib gettext library. Define
INET_ADDRSTRLEN unless already defined.
2007-12-07 14:52:24 +00:00
Richard W.M. Jones
f1f94721ae
Fri Dec 7 14:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/.cvsignore: Ignore *.loT files (generated under Windows).
* proxy/libvirt_proxy.c: Bail out earlier --without-xen.
* src/proxy_internal.c: Don't build proxy client side if
configured --without-xen.
* src/iptables.c, src/iptables.h: Disable this code if
configured --without-qemu.
* src/nodeinfo.c: If no 'uname' function, set model name to
empty string (for Windows).
* src/xen_unified.h, src/util.c, src/test.c: Include <winsock2.h>
on Windows.
* src/util.c: Disable virExec* and virFileLinkPointsTo on
MinGW.
2007-12-07 14:45:39 +00:00
Richard W.M. Jones
36f0ce0472
Fri Dec 7 14:34:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/sexpr.c: Cosmetic rearrangement of headers.
2007-12-07 14:39:14 +00:00
Richard W.M. Jones
abe8a90952
Fri Dec 7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Extra checks for uname and some header files
(for MinGW Windows port).
2007-12-07 14:35:18 +00:00
Richard W.M. Jones
532759a593
Fri Dec 7 14:27:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* bootstrap, Makefile.am, gnulib/*: Import more gnulib
modules for use by MinGW Windows port.
2007-12-07 14:32:35 +00:00
Jim Meyering
4a2f8fc633
Include "config.h" in remaining non-generated files.
...
* proxy/libvirt_proxy.c: Likewise.
* python/libvir.c: Likewise.
* python/types.c: Likewise.
* src/event.c: Likewise.
* src/xm_internal.c: Likewise.
* tests/reconnect.c: Likewise.
* tests/testutils.c: Likewise.
2007-12-07 10:08:06 +00:00
Daniel Veillard
a56281c0a8
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
...
add a python binding for virNodeGetCellsFreeMemory
Daniel
2007-12-07 08:41:01 +00:00
Jim Meyering
7ff9eebeba
qemud/qemud.c (qemudInitPaths): Remove unused code.
2007-12-06 16:41:43 +00:00
Richard W.M. Jones
efd495d667
Thu Dec 6 16:32:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/virsh.c: The prompt should depend on readonly status,
not on the UID.
2007-12-06 16:36:21 +00:00
Richard W.M. Jones
21e0a86f25
Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in, qemud/Makefile.am: Added a --without-libvirtd
configure option.
2007-12-06 16:34:48 +00:00
Daniel P. Berrange
bb020a9f75
Fix polkit macros for RHEL
2007-12-06 15:35:54 +00:00
Daniel Veillard
d5fc8b3036
* docs/*: rebuilt the docs and XML files
...
Daniel
2007-12-06 14:54:23 +00:00
Daniel Veillard
5390cfcc72
* po/*: updated the localization files
...
Daniel
2007-12-06 14:43:41 +00:00
Richard W.M. Jones
ec38eb9388
Thu Dec 6 12:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/remote_internal.c: Clean up a warning if neither SASL
nor PolKit are enabled.
2007-12-06 12:05:35 +00:00
Jim Meyering
2ec759fc58
Build also on systems where -lreadline requires e.g., -lncurses
...
* configure.in: If the test for -lreadline fails, search for a
library with termcap support. If one is found (often -lncurses),
rerun the test for -lreadline, linking also with the new library.
Author: Jim Meyering <meyering@redhat.com>
2007-12-06 11:42:26 +00:00
Daniel Veillard
7633453cfa
* configure.in src/Makefile.am src/virsh.c: fix compilation problems
...
when readline headers were found but not the library
Daniel
2007-12-06 10:24:52 +00:00
Jim Meyering
d51e7c9ff0
Accommodate developers using autoconf-2.59.
...
* configure.in (m4_foreach_w): Define if not defined.
Author: Jim Meyering <meyering@redhat.com>
2007-12-05 23:02:13 +00:00
Jim Meyering
87396257fc
Include "config.h".
...
* qemud/event.c: Likewise.
* src/buf.c: Likewise.
* src/hash.c: Likewise.
* src/nodeinfo.c: Likewise.
* src/openvz_conf.c: Likewise.
* src/proxy_internal.c: Likewise.
* src/virterror.c: Likewise.
* src/xmlrpc.c: Likewise.
* src/xs_internal.c: Likewise.
* tests/conftest.c: Likewise.
* tests/xmlrpctest.c: Likewise.
This fixes a mingw build failure reported by Rich Jones.
Author: Jim Meyering <meyering@redhat.com>
2007-12-05 21:40:15 +00:00
Jim Meyering
4c6bef2a6c
Add all of the files pulled in by running ./bootstrap.
...
Adjust .cvsignore files.
Author: Jim Meyering <meyering@redhat.com>
2007-12-05 21:35:32 +00:00
Jim Meyering
261e7581b1
Use gnulib, starting with its physmem and getaddrinfo modules.
...
New files go into these directories:
gnulib/lib
gnulib/m4
gnulib/tests
* bootstrap: A wrapper around gnulib-tool.
* configure.in: Invoke gl_EARLY and gl_INIT, being careful to put gl_EARLY
before any macro that uses AC_COMPILE_IFELSE.
(AC_OUTPUT): Add lib/Makefile and gl-tests/Makefile. Remove m4/Makefile.
* Makefile.am (SUBDIRS): Add gnulib/lib and remove m4. Add gnulib/tests
early enough that those tests run before any libvirt unit tests.
* m4/Makefile.am: Remove file. Not needed.
* src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
(LDADDS, libvirt_la_LIBADD): Add ../gnulib/lib/libgnu.la.
* src/nodeinfo.c: Include "physmem.h".
* qemud/qemud.c, src/remote_internal.c: Include "getaddrinfo.h".
(MEMINFO_PATH, linuxNodeInfoMemPopulate): Remove definitions.
(virNodeInfoPopulate): Use physmem_total, not linuxNodeInfoMemPopulate.
* tests/Makefile.am (INCLUDES): Add -I$(top_srcdir)/gnulib/lib -I../gnulib/lib.
(LDADDS): Add ../gnulib/lib/libgnu.la.
* qemud/Makefile.am (libvirtd_LDADD): Add ../gnulib/lib/libgnu.la.
* tests/nodeinfotest.c (linuxTestCompareFiles): No longer read total
memory from a file.
Update expected output not to include "Memory: NNNN"
* tests/nodeinfodata/linux-nodeinfo-1.txt:
* tests/nodeinfodata/linux-nodeinfo-2.txt:
* tests/nodeinfodata/linux-nodeinfo-3.txt:
* tests/nodeinfodata/linux-nodeinfo-4.txt:
* tests/nodeinfodata/linux-nodeinfo-5.txt:
* tests/nodeinfodata/linux-nodeinfo-6.txt:
* src/test.c [WITH_TEST]: Remove definition of _GNU_SOURCE that
would conflict with the one now in "config.h".
* autogen.sh: Add -I gnulib/m4.
* src/conf.c, src/sexpr.c: Don't define _GNU_SOURCE.
Instead, include "config.h".
* qemud/qemud.c: Remove definition of _GNU_SOURCE.
* src/openvz_driver.c: Likewise.
* src/qemu_driver.c: Likewise.
* src/remote_internal.c: Likewise.
* configure.in: Use AC_CONFIG_AUX_DIR(build-aux), so that a bunch
of gettextize-generated files go into build-aux/, rather than in
the top-level directory.
* .cvsignore: Adjust.
* build-aux/.cvsignore: New file.
Author: Jim Meyering <meyering@redhat.com>
2007-12-05 21:31:07 +00:00
Daniel Veillard
1d1cf57b9b
* qemud/remote.c: rename remoteDispatchAuthPolkitInit to
...
remoteDispatchAuthPolkit, the no-op init call when policykit
is not available
Daniel
2007-12-05 20:45:37 +00:00
Daniel P. Berrange
2add6b3026
Fix compile issues when SASL is disabled
2007-12-05 19:25:44 +00:00
Daniel P. Berrange
0e5f5da3db
Added docs on authentication setup
2007-12-05 19:16:13 +00:00
Daniel P. Berrange
48c48b260d
Disable setuid Xen proxy if policykit is enabled
2007-12-05 19:11:01 +00:00
Daniel P. Berrange
5ab109f862
Add manual impl of virConnectOpenAuth python binding
2007-12-05 19:09:23 +00:00
Daniel P. Berrange
60a6bbe6c5
Re-add listen_tcp/listen_tls config params accidentally lost
2007-12-05 18:56:27 +00:00
Daniel P. Berrange
e332ccdf71
Wire up SASL interaction callbacks to libvirt callbacks. Provide default callback impl
2007-12-05 18:55:04 +00:00
Daniel P. Berrange
7fa9ceb740
Added public API for authentication credential callback support
2007-12-05 18:28:05 +00:00
Daniel P. Berrange
282342c1c5
Added PolicyKit authentication support
2007-12-05 18:21:27 +00:00
Richard W.M. Jones
ffdbb903e4
Wed Dec 5 18:00:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/Makefile.am, tests/Makefile.am: Remove LIBOBJS/LTLIBOBJS
which were incorrectly committed earlier.
2007-12-05 18:05:13 +00:00
Daniel P. Berrange
ca71b87cb0
Quit virsh immediately if connection open fails, rather than giving a non-functional interactive shell
2007-12-05 16:24:22 +00:00
Daniel P. Berrange
cfb62c9d5e
Add whitelisting of users. Remove IP whitelisting. Make auth schemes configurable
2007-12-05 15:34:05 +00:00
Daniel P. Berrange
bb5371f668
Add data encryption using SASL SSF layer
2007-12-05 15:27:08 +00:00
Daniel P. Berrange
1b1d647439
Initial integration of SASL authentication, working for Kerberos only
2007-12-05 15:24:15 +00:00
Daniel P. Berrange
a8977b62ba
Strip autogenerated vnetXXX interfaces
2007-12-05 15:08:23 +00:00
Richard W.M. Jones
4bfdb77aae
Wed Dec 5 13:48:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* python/libvir.c, python/libvirt_wrap.h, qemud/qemud.c,
qemud/remote.c, src/internal.h, src/openvz_conf.c,
src/openvz_driver.c, src/proxy_internal.h, src/qemu_conf.c,
src/qemu_driver.c, src/remote_internal.h, src/test.h, src/util.c,
src/xen_unified.c, src/xen_unified.h, tests/nodeinfotest.c,
tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c, tests/reconnect.c,
tests/sexpr2xmltest.c, tests/virshtest.c, tests/xencapstest.c,
tests/xmconfigtest.c, tests/xml2sexprtest.c:
Change #include <> to #include "" for local includes.
Removed many includes from src/internal.h and put them in
the C files which actually use them.
Removed <ansidecl.h> - unused.
Added a comment around __func__.
Removed a clashing redefinition of VERSION symbol.
All limits (PATH_MAX etc) now done in src/internal.h, so we
don't need to include those headers in other files.
2007-12-05 13:56:22 +00:00
Richard W.M. Jones
5682ba5921
Tue Dec 4 18:25:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Fix configure if rpcgen program is missing.
2007-12-04 19:14:11 +00:00
Richard W.M. Jones
4338271f1a
Tue Dec 4 17:47:01 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: curses is not actually required to build libvirt
* configure.in, src/virsh.c: Make readline optional. If not
available then virsh is built without support for command
line editing.
2007-12-04 18:27:52 +00:00
Jim Meyering
025c5df87b
Avoid compile failure when HAVE_AVAHI is not defined.
...
* qemud/qemud.c (remoteReadConfigFile): Remove some of the
"#ifdef HAVE_AVAHI" guards around uses of mdns_name and mdns_adv.
2007-12-03 19:45:00 +00:00
Richard W.M. Jones
78f756e081
Mon Dec 3 16:15:10 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/util.c: Fix header files for Windows builds.
2007-12-03 16:19:41 +00:00
Daniel P. Berrange
4cd62fe306
Move generic file & I/O routines out of QEMU driver into util.c
2007-12-03 14:30:46 +00:00
Daniel Veillard
ed5e20baab
* src/xen_unified.[ch] src/proxy_internal.c src/xen_internal.c
...
src/xend_internal.c src/xm_internal.c src/xs_internal.c:
cleanup the xen subdriver table, remove the type entry and
always return "Xen" from the unified entry point.
Daniel
2007-12-03 09:34:38 +00:00
Daniel P. Berrange
2b3c49b6ab
Fix numerous memory leaks
2007-12-01 15:45:25 +00:00
Daniel P. Berrange
b4f841d92f
Fix buffer termination off-by-1 in link comparison code
2007-12-01 15:29:45 +00:00
Daniel P. Berrange
6d3f1d516e
Disable Xen specific functions if Xen driver is disabled
2007-11-30 22:51:54 +00:00
Jim Meyering
c3c80a183e
Detect heap allocation failure; factor out some duplication.
...
* qemud/qemud.c (tls_port, tcp_port, mdns_name, tls_allowed_ip_list):
(tls_allowed_dn_list): Remove "const", now that we free these.
(unix_sock_rw_mask): Rename from unix_sock_rw_perms, so that
the latter name can be used as a local string variable, so that the
variable name matches the config attribute name.
(unix_sock_ro_mask): Rename from unix_sock_ro_perms, likewise.
(remoteCheckDN, remoteCheckAccess): Adapt to const removal.
(qemudDispatchServer): Check for heap allocation failure.
(remoteConfigGetStringList): New function, based on code from Dan Berrangé.
(CHECK_TYPE): Remove macro.
(checkType): New function.
(GET_CONF_INT, GET_CONF_STR): New macros.
(remoteReadConfigFile): Use new macros to avoid duplication and to
check for allocation failure.
* src/conf.h (virConfTypeName): New static inline function.
2007-11-30 15:43:42 +00:00
Richard W.M. Jones
2ac691d60e
Fri Nov 30 11:04:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* python/libvir.c, python/libvir.py: Make Python aware that
the C bindings module is called cygvirtmod.dll when compiled
by CYGWIN.
* python/Makefile.am: Remove symlink libvirtmod.dll -> cygvirtmod.dll
no longer necessary because of the above.
* configure.in: Remove AM_CONDITIONAL(CYGWIN).
2007-11-30 11:10:53 +00:00
Richard W.M. Jones
d63034c018
Thu Nov 29 17:40:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Added CYGWIN_EXTRA_LDFLAGS, CYGWIN_EXTRA_LIBADD,
CYGWIN_EXTRA_PYTHON_LIBADD, CYGWIN automake conditional.
* src/Makefile.am: Extra flags required to build DLL of libvirt
for Cygwin.
* python/Makefile.am: Extra flags and rule required to build
Python module for Cygwin.
2007-11-29 17:44:01 +00:00
Richard W.M. Jones
65aa3dbf6c
Thu Nov 29 17:38:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Check for C compiler first before checking for
external programs.
Add AC_LIBTOOL_WIN32_DLL.
Add AM_PROG_CC_STDC.
Add AC_C_CONST.
2007-11-29 17:41:57 +00:00
Richard W.M. Jones
4a898dd491
Thu Nov 29 16:19:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* docs/libvir.html, docs/windows.html: Updated Windows
documentation now that we have shared libraries and Python
working.
2007-11-29 16:21:52 +00:00
Richard W.M. Jones
ba75647b55
Thu Nov 29 09:15:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/virsh.c: Added #include <time.h> so it can compile
on CentOS 4 (Carl Jones).
2007-11-29 09:18:04 +00:00
Richard W.M. Jones
df0525a911
Wed Nov 28 14:20:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/virsh.c: Missing comma.
2007-11-28 14:22:30 +00:00
Jim Meyering
55311d6c38
src/virsh.c (vshCloseLogFile): Diagnose close/write failure.
2007-11-28 13:22:33 +00:00
Richard W.M. Jones
208a450a53
Wed Nov 28 09:00:00 GMT 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/xm_internal.c, src/xm_internal.h: Added support for
pinning inactive domains for Xen 3.0.3 (Saori Fukuta).
2007-11-28 10:11:18 +00:00
Jim Meyering
59a375812d
When reporting errors, use "conn" whenever possible.
...
* src/remote_internal.c: change all error (NULL, ... to error (conn, ...
(check_cert_file): Add+use parameter, conn.
Adjust callers.
(initialise_gnutls): The "conn" parameter *is* used, so remove
ATTRIBUTE_UNUSED.
Author: Jim Meyering <meyering@redhat.com>
2007-11-27 18:18:23 +00:00
Daniel Veillard
b4438e5933
* docs/site.xsl docs/libvir.html *.html: add boilerplate for
...
a Windows support page
Daniel
2007-11-27 15:41:32 +00:00
Daniel Veillard
1338ed4f25
* configure.in: when configuring with --prefix=/usr i.e. the same
...
prefix as the installed libvirt, use the same localstatedir /var
(instead of /usr/var) and sysconfdir /etc (instead of /usr/etc) to
be able to connect to the system daemon, and use the system local
options
* src/xs_internal.c: avoid error message when non-root cannot open
xenstore
* src/xend_internal.c: avoid error message when non-root cannot
directly access xend, in those 2 cases the proxy (or remote code)
should implement the access so there is no need to raise the error
there.
Daniel
2007-11-27 14:39:42 +00:00
Daniel Veillard
3e59effd03
* doc/*: modified the python page into a bindings page,
...
added the Ruby binding link to all pages
Daniel
2007-11-26 14:07:56 +00:00
Richard W.M. Jones
851c651820
Mon Nov 26 12:12:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in, src/console.c: Replace cfmakeraw if not in
standard library.
2007-11-26 12:14:32 +00:00
Richard W.M. Jones
b7641686a6
Mon Nov 26 12:03:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* tests/Makefile.am, tests/nodeinfotest.c, tests/qemuxml2argvtest.c,
tests/qemuxml2xmltest.c, tests/sexpr2xmltest.c, tests/virshtest.c,
tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c:
Miscellaneous fixes to the tests to compile under Cygwin.
2007-11-26 12:03:34 +00:00
Richard W.M. Jones
fe9d013c3e
Mon Nov 26 11:56:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* qemud/qemud.c: If AF_INET6 not defined, don't test for it.
2007-11-26 11:56:41 +00:00
Richard W.M. Jones
31527e43d9
Mon Nov 26 11:54:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* qemud/internal.h: Miscellaneous header file fixes to allow
libvirtd to build under Cygwin.
2007-11-26 11:54:29 +00:00
Richard W.M. Jones
b740fe92d3
Mon Nov 26 11:52:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in, proxy/Makefile.am: Disable building of the Xen proxy
if configured --without-xen.
2007-11-26 11:52:38 +00:00
Richard W.M. Jones
95585d7c94
Mon Nov 26 11:49:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/bridge.c, src/bridge.h, src/qemu_conf.c, src/qemu_conf.h,
src/qemu_driver.c, src/qemu_driver.h, src/test.c: Disable more
of qemu if configured --without-qemu.
2007-11-26 11:50:16 +00:00
Richard W.M. Jones
d6d1c629fa
Mon Nov 26 11:47:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/remote_internal.c: Miscellaneous header file fixes for
Cygwin.
2007-11-26 11:47:15 +00:00
Richard W.M. Jones
1ef8005d65
Mon Nov 26 11:44:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in, qemud/Makefile.am: Check for buggy glibc rpcgen
and only run Perl fix-up script for that.
2007-11-26 11:45:26 +00:00
Richard W.M. Jones
d43607b2f9
Mon Nov 26 11:42:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Check if -lrpc is needed to get XDR functions.
2007-11-26 11:43:01 +00:00
Richard W.M. Jones
a79891f126
Mon Nov 26 11:39:04 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* configure.in: Minimum version of GnuTLS we support is 1.0.25.
2007-11-26 11:34:57 +00:00
Jim Meyering
3e4ea06702
Fix a typo in a variable name.
...
* qemud/qemud.c: Check crl_file, not ca_file, for revocation list,
in remoteInitializeGnuTLS.
Author: Jim Meyering <meyering@redhat.com>
2007-11-21 23:16:11 +00:00
Daniel Veillard
1ad3d2cdd8
* src/xm_internal.c: fix the parsing of predefined domains on
...
xen prior to 3.1 to take into accound the fact that disk can
be shareable.
Daniel
2007-11-21 16:31:30 +00:00
Richard W.M. Jones
207962bb1a
Wed Nov 21 11:59:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* docs/libvir.html, docs/site.xsl: Fix the link to OCaml
bindings.
2007-11-21 12:02:40 +00:00
Richard W.M. Jones
618db3deb7
Wed Nov 21 11:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/bridge.c, src/qemu_driver.c: Incorrect call to
brSetForwardDelay changed to brSetEnableSTP.
2007-11-21 11:46:05 +00:00
Daniel Veillard
a1c2e40cac
* docs/index.html docs/libvir.html: apply english corrections
...
suggested by Bruce Montague
Daniel
2007-11-21 10:38:07 +00:00
Richard W.M. Jones
4ef3a4ea7c
Tue Nov 20 10:49:28 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/virterror.c, src/stats_linux.c, include/libvirt/virterror.h:
Renamed the VIR_FROM_LINUX error as VIR_FROM_STATS_LINUX for
consistency.
2007-11-20 10:58:21 +00:00
Daniel Veillard
aab34d876e
* include/libvirt/virterror.h src/openvz_conf.c src/openvz_driver.c
...
src/stats_linux.c src/virterror.c src/xm_internal.c: patch from
Saori Fukuta cleaning up various problems in the error reporting
layers
Daniel
2007-11-20 10:15:38 +00:00
Daniel Veillard
ef4006b3a5
* tests/sexpr2xmltest.c tests/xml2sexprtest.c: warn before exiting
...
if the path environment variable is missing, add the tests for
<shareable/> from/to w! ode for disk
* tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.sexpr
tests/sexpr2xmldata/sexpr2xml-disk-block-shareable.xml
tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr
tests/xml2sexprdata/xml2sexpr-disk-block-shareable.xml:
the new tests data
Daniel
2007-11-20 10:05:45 +00:00
Daniel P. Berrange
a2492efb60
Re-add quotes around top_srcdir/top_builddir
2007-11-18 11:23:09 +00:00
Daniel P. Berrange
99c0470dd8
Remove reliance on abs_top_{src,build}dir variables from automake 1.10
2007-11-17 13:16:47 +00:00
Daniel P. Berrange
4d82d16dc1
Added missing news.xsl to EXTRA_DIST
2007-11-17 12:09:35 +00:00
Daniel P. Berrange
2efc8ff757
Fixed 32-bit overflow
2007-11-17 11:53:44 +00:00
Daniel P. Berrange
6bb2d376b5
Refactor processing of incoming packets to remove dead code
2007-11-17 11:17:48 +00:00
Richard W.M. Jones
e714bb67ca
Thu Nov 15 17:43:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/stats_linux.c: Fix parsing of short interface names
occurring in the /proc/net/dev file.
* src/qemu_driver.c: Collect interface stats for QEMU & KVM
domains.
2007-11-15 17:45:44 +00:00
Richard W.M. Jones
7a66394fcb
Thu Nov 15 17:40:15 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* docs/hvsupport.html, docs/libvir.html: Document HV support
for virNodeGetFreeMemory and virNodeGetCellsFreeMemory.
* src/libvirt.c: Add DEBUG to virNodeGetFreeMemory and
virNodeGetCellsFreeMemory.
* src/xen_internal.c: virXenError* functions now take an
additional virConnectPtr argument, and set it where possible.
2007-11-15 17:44:06 +00:00
Daniel Veillard
9ae4f3d27e
* docs/libvir.html docs/uri.html: update docs about the libvirt
...
daemon startup when using QEmu/KVM.
Daniel
2007-11-15 17:07:28 +00:00
Jim Meyering
d5117af382
Make "make distcheck" work.
...
* Makefile.am: Expand some "*" wildcards, and (for now) disable
the relatively unimportant, distuninstallcheck target.
Fix a few redirect-directly-to-target bugs.
Add a few $(srcdir)/ prefixes and add an uninstall-local rule.
* docs/Makefile.am: More of the same. Split some long lines.
* python/Makefile.am: Likewise.
* python/tests/Makefile.am: Likewise.
* qemud/Makefile.am: Likewise.
* tests/Makefile.am: Remove the directories already listed in SUBDIRS.
* docs/examples/index.py: Adapt to produce the desired changes in
docs/examples/Makefile.am. Also, sort *.c, so results are reproducible,
and emit a comment telling emacs and vi that the file is read-only.
* docs/examples/Makefile.am: Regenerate.
Author: Jim Meyering <meyering@redhat.com>
2007-11-15 13:04:28 +00:00
Daniel Veillard
a4499a22c5
* src/stats_linux.c: patch from Jim Paris to fix compilation
...
when Xen isn't installed
* src/qemu_conf.h: small cleanup of signedness of bitfields
from Jim Paris
Daniel
2007-11-15 10:56:24 +00:00
Daniel Veillard
ec58960745
* doc/libvir.html doc/format.html: add missing docs for
...
<shareable/> on disk devices
* src/Makefile.am: fix the tst build rule for missing libraries
Daniel
2007-11-14 17:11:19 +00:00
Jim Meyering
a3d909888d
Handle failed strdup and malloc.
...
* src/remote_internal.c: Don't dereference NULL after
failed strdup or malloc in doRemoteOpen.
2007-11-14 16:29:08 +00:00
Richard W.M. Jones
3ba58f158d
Wed Nov 14 11:55:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/stats_linux.c, src/stats_linux.h, src_xen_internal.c:
Abstract out the Linux-specific statistics. Fixed parsing
of 64 bit numbers.
* src/Makefile.am: Updated Makefile for new files.
2007-11-14 11:58:36 +00:00
Richard W.M. Jones
88f28d6980
Wed Nov 14 11:36:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/libvirt.c and all internal driver interfaces: Parse the
URI only once and pass it to virDrvOpen instead of the
unparsed name string.
2007-11-14 11:40:57 +00:00
Jim Meyering
5d25419188
Parse integers more carefully, cont'd.
...
* qemud/qemud.c: Replace uses of strtol with uses of xstrtol_i.
Avoid overflow for very large --timeout=N values.
* src/nodeinfo.c: In linuxNodeInfoMemPopulate and
linuxNodeInfoCPUPopulate, use xstrtol_i rather than strtol.
Unlike in qemud.c, here we allow trailing "isspace", and in
the case of "cpuinfo cpu MHz", also allow a "." terminator,
since we ignore the decimal and any following digits.
* src/internal.h: Define xstrtol_ui, too.
Author: Jim Meyering <meyering@redhat.com>
2007-11-14 10:53:05 +00:00
Jim Meyering
5a6571eba9
Arrange for tests to pass in a non-srcdir build.
...
* tests/Makefile.am: Include the contents of the *data directories
in the make-dist-built tarball by adding each of that *data
directories to EXTRA_DIST.
Also add int-overflow (via $(test_scripts)) to EXTRA_DIST.
* tests/nodeinfotest.c: Prepend "$abs_top_srcdir/tests" to
each input file name.
* tests/qemuxml2argvtest.c: Likewise.
* tests/qemuxml2xmltest.c: Likewise.
* tests/sexpr2xmltest.c: Likewise.
* tests/test_conf.sh: Likewise.
* tests/virshtest.c: Likewise.
* tests/xencapstest.c: Likewise.
* tests/xmconfigtest.c: Likewise.
* tests/xml2sexprtest.c: Likewise.
Author: Jim Meyering <meyering@redhat.com>
2007-11-14 10:35:58 +00:00
Jim Meyering
4f2900d097
remove all trailing white space
2007-11-13 15:42:57 +00:00
Jim Meyering
5f78eccd1c
Make qemud's install-init rule work in a non-srcdir build.
...
* qemud/Makefile.am: In the install-init, remove an unneeded
$(srcdir)/ prefix.
Author: Jim Meyering <meyering@redhat.com>
2007-11-13 14:39:20 +00:00
Jim Meyering
a8b9c6640a
conftest: fix transposed size and count arguments to fwrite.
...
* tests/conftest.c: Include <string.h> and <errno.h>.
Also include strerror in diagnostic.
Author: Jim Meyering <meyering@redhat.com>
2007-11-12 22:16:25 +00:00
Daniel Veillard
a500a479b0
Begin fixing uses of strtol: parse integers more carefully.
...
Patch from Jim Meyering
* src/internal.h: Include <errno.h>.
Define new static inline function, xstrtol_i.
* src/virsh.c: Detect integer overflow in domain ID number
in vshCommandOptDomainBy. Detect overflow and invalid port
number suffix in cmdVNCDisplay.
* src/xend_internal.c: Parse CPU number more carefully in
xenDaemonDomainGetVcpus.
* tests/int-overflow: New script. Test for the above-fixed bug.
* tests/Makefile.am: Add int-overflow to TESTS. Define
TESTS_ENVIRONMENT, to propagate $abs_top_* variables into the
int-overflow script. Adapt the "valgrind" rule not to clobber
new TESTS_ENVIRONMENT.
Daniel
2007-11-12 14:00:32 +00:00
Daniel Veillard
906c1f5055
* src/virsh.c: initialize a couple of variable to avoid warnings
...
when compiling with Fedora.
Daniel
2007-11-08 18:07:02 +00:00
Daniel Veillard
710547590b
* src/virsh.c: patch from Jim Meyering to use gcc's printf attribute.
...
Daniel
2007-11-08 18:00:52 +00:00
Daniel Veillard
b31ed75bff
* src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt
...
indentation
Daniel
2007-11-08 16:14:12 +00:00
Daniel Veillard
50804b725b
* docs/libvir.html docs/site.xsl: small updates with references
...
to CIM and OpenVZ
* po/*: updated translations
Daniel
2007-11-07 13:40:19 +00:00
Richard W.M. Jones
5a628880b0
Tue Nov 6 19:54:00 CET 2007 Jim Meyering <meyering@redhat.com>
...
Avoid risk of format string abuse (also avoids gcc warnings).
* src/util.c (ReportError): Use a literal "%s" format string.
* src/remote_internal.c (server_error): Likewise.
* src/qemu_conf.c (qemudReportError): Likewise.
* acinclude.m4: Add -Wformat -Wformat-security to default
list of warning flags, to warn about errors such as the
above.
2007-11-07 12:29:37 +00:00
Daniel Veillard
f2886d75e6
* src/xs_internals.c: patch from Chris Lalancette, forgot to
...
remove the domainDumpXML entry when changing the driver structure
Daniel
2007-11-06 16:25:32 +00:00
Daniel Veillard
9899932303
* src/xml.c src/xs_internal.c src/xs_internal.h: applied patch
...
from Masayuki Sunou to fix xend errors when adding disk
devices, due to improper device id lookup.
Daniel
2007-11-06 11:49:01 +00:00
Daniel Veillard
31eade077e
* src/virsh.c: patch from Masayuki Sunou to fix parameter
...
validation of virsh schedinfo parameters.
Daniel
2007-11-06 09:41:18 +00:00
Daniel Veillard
028275d6da
* src/xml.c: patch from Beth Kon to fix a problem when the
...
cpuset parameter for numa uses cpu maxcpu-1
Daniel
2007-11-05 10:14:42 +00:00
Daniel Veillard
c33b54df47
* src/xm_internal.c: patches from Masayuki Sunou to fix a problem
...
when an HVM domain is started with a CD-Rom config, this should
fix #328841
Daniel
2007-11-01 13:33:58 +00:00
Daniel Veillard
390cca8125
* proxy/libvirt_proxy.c src/proxy_internal.[ch] src/xen_internal.c
...
src/xen_unified.[ch] src/xend_internal.[ch] src/xml.[ch]: last
patch for the library NUMA support, allow to serialize CPU pinning
to domain configs (but won't work though proxy access), includes
many patches from Saori Fukuta.
Daniel
2007-10-31 09:39:13 +00:00
Daniel P. Berrange
8a0711c758
Avoiding calling remote network driver recursively if inside daemon
2007-10-27 01:23:28 +00:00
Daniel P. Berrange
d6f351690e
Support CDROM media change for QEMU/KVM
2007-10-27 01:21:09 +00:00
Daniel P. Berrange
97185033e5
Refactor shell escaping code
2007-10-27 01:19:51 +00:00
Daniel P. Berrange
eed1b17791
Refactor device parsing code
2007-10-27 01:18:38 +00:00
Daniel P. Berrange
79995893de
Make qemudMonitorCommand append line endings
2007-10-27 01:16:53 +00:00
Daniel Veillard
2718513226
* src/xml.c: fix build when configured without Xen
...
Daniel
2007-10-26 13:41:18 +00:00
Daniel Veillard
211a20aefb
* src/xml.c: applied patch from Jim Meyering fixing parseNumber
...
to detect overflow, and also reindented the module.
Daniel
2007-10-24 14:22:25 +00:00
Daniel Veillard
de327d23e7
* po/id.po: Remove again bogus Project-Id-Version field from merge error
...
Daniel
2007-10-24 08:39:11 +00:00
Daniel Veillard
3d32b50f05
* po/*: updated from translation team
...
Daniel
2007-10-23 15:45:03 +00:00
Daniel Veillard
14c5c70a78
* src/xml.c: fix the build of the proxy broken on previous commit
...
Daniel
2007-10-23 15:31:33 +00:00
Daniel Veillard
08be2facab
* src/xen_internal.c src/xen_unified.c src/xen_unified.h
...
src/xend_internal.c src/xml.c src/xml.h: commited erronously
the NUMA patches sent for review on the list in last commit.
But that should not affect non NUMA users so early push should
not be a problem.
Daniel
2007-10-22 20:36:04 +00:00
Daniel Veillard
cfb192ad1e
* docs/format.html docs/libvir.html: documentation cleaups
...
from Jim Paris
Daniel
2007-10-22 20:28:55 +00:00
Daniel Veillard
a87420ae59
* src/xend_internal.c: update to cpuset parsing code for NUMA
...
Daniel
2007-10-22 13:06:15 +00:00
Daniel Veillard
d620b00ffa
* src/Makefile.am: fix tst build rule
...
* src/buf.c: fix virBufferContentAndFree to make sure the string is
always 0 terminated.
Daniel
2007-10-19 15:09:31 +00:00
Daniel Veillard
24abf6c925
* src/conf.c: fix bug on negative values in virConfParseLong()
...
raised by Tatsuro Enokura
Daniel
2007-10-19 10:01:01 +00:00
Daniel Veillard
69b9fcf297
* src/conf.c: documentation cleanups from Jim Meyering
...
* tests/conftest.c: Use fwrite, not printf, since the
result buffer is not NUL-terminatedi, from Jim Meyering.
* tests/qemuxml2argvtest.c: Initialize vm.migrateFrom[0],
to avoid "read-uninitialized" error from within
qemudBuildCommandLinei, from Jim Meyering.
Daniel
2007-10-19 08:29:13 +00:00
Richard W.M. Jones
171afdf694
Wed Oct 17 11:27:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
...
* libvirt.spec.in (BuildRequires): Add "qemu" (Jim Meyering).
2007-10-17 10:39:32 +00:00
Richard W.M. Jones
4e04ee2d2f
Wed Oct 17 11:27:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/xend_internal.c (sexpr_get): Declare with gcc's printf
attribute. (Jim Meyering)
2007-10-17 10:33:16 +00:00
Daniel P. Berrange
b4fab30b89
Mark XML param for attach/detach APIs const
2007-10-15 21:38:56 +00:00
Daniel P. Berrange
56ba14daa4
Changelog entry for default config files
2007-10-15 21:33:42 +00:00
Richard W.M. Jones
503cca7cee
Mon Oct 15 15:31:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
...
* src/test.c, include/libvirt/libvirt.h.in: Remove virDomainRestart
from the public API (it was not used), and move it into the test
driver where it is used for purely internal purposes.
2007-10-15 14:32:35 +00:00
Daniel P. Berrange
912c18afa3
Added QEMU driver config file
2007-10-12 16:05:44 +00:00
Daniel P. Berrange
af10d71cc2
Reset migration source after failed VM start
2007-10-10 19:46:17 +00:00
Daniel P. Berrange
175e1711a6
Fixed processing of vncdisplay/vncused params in XM config files
2007-10-10 17:55:38 +00:00
Daniel P. Berrange
bf70fe4883
Fix virtual networking XML -> XM config file conversion & a mem leak
2007-10-10 17:41:06 +00:00
Daniel Veillard
aa826860bc
* src/xend_internal.c: applied patch from Beth Kon to fix
...
NUMA topology for cells without CPUs
Daniel
2007-10-08 15:02:47 +00:00
Daniel P. Berrange
77cf0390e4
Fix NUMA topology error handling (beth kon)
2007-10-05 01:08:17 +00:00
Daniel P. Berrange
d08b12c1a6
Remove bogus Project-Id-Version field
2007-10-03 14:19:35 +00:00
Daniel Veillard
fdc44cf1b7
* configure.in libvirt.spec.in include/libvirt/libvirt.h docs/*:
...
preparing release of 0.3.3
* po/*: updated the strings localizations
Daniel
2007-09-30 21:09:29 +00:00
Daniel Veillard
795d920028
* python/generator.py python/libvir.c python/libvirt-python-api.xml:
...
provide bindings for block and interface statistics
Daniel
2007-09-30 20:52:13 +00:00
Daniel P. Berrange
c4461ff57b
Only use bootloader for paravirt guests
2007-09-30 15:36:47 +00:00
Daniel Veillard
b5a3d4da61
* src/virsh.c: use virNodeGetFreeMemory() for freecell without
...
argument
* src/libvirt_sym.version: export virNodeGetFreeMemory()
Daniel
2007-09-30 13:22:16 +00:00
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
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