Daniel P. Berrange
8a1a2ac558
Fix Win32 portability problems with 'inteface' symbol clash
2009-05-29 14:29:22 +00:00
Daniel P. Berrange
60d4777190
Remote protocol support for domain XML conversion APIs
2009-05-21 13:50:56 +00:00
Daniel P. Berrange
4d5383fd36
public API for domain XML conversions
2009-05-21 13:46:35 +00:00
Daniel Veillard
73bc011483
Add the Interface config APIs
...
* configure.in include/libvirt/libvirt.h[.in]
include/libvirt/virterror.h qemud/remote.c
qemud/remote_dispatch_args.h qemud/remote_dispatch_prototypes.h
qemud/remote_dispatch_ret.h qemud/remote_dispatch_table.h
qemud/remote_protocol.[chx] src/Makefile.am src/datatypes.c
src/datatypes.h src/driver.h src/libvirt.c src/remote_internal.c
src/virterror.c src/libvirt_private.syms src/libvirt_public.syms:
Add the Interface config APIs and remote stubs for those, patch
by Laine Stump
* AUTHORS: add Laine
daniel
2009-05-20 14:26:49 +00:00
Cole Robinson
adf4384501
Use virAsprintf, rather than VIR_ALLOC + strcpy + strcat
2009-05-19 13:15:50 +00:00
Cole Robinson
885de7f8cf
Remote driver plumbing for virStorageVolCreateXMLFrom
2009-05-12 20:13:52 +00:00
Cole Robinson
a331653dad
Add pidfile argument to __virExec
...
virExec will write out the pid of the daemonized process only. Use this
in the QEMU driver, rather than QEMU's pidfile, so we can catch errors we
might miss if the emulator bails early.
2009-05-11 13:50:38 +00:00
Cole Robinson
79d9d2432f
Add helper function virExecDaemonize
...
Wraps __virExec with the VIR_EXEC_DAEMON flag. Waits on the intermediate
process to ensure we don't end up with any zombies, and differentiates between
original process errors and intermediate process errors.
2009-05-11 13:34:37 +00:00
Daniel P. Berrange
62aa1b56d6
Add virNodeDeviceCreateXML / virNodeDeviceDestroy boilerplate public API and remote protocol impl
2009-04-24 13:11:23 +00:00
Daniel P. Berrange
c881b32215
Fix 2 domain ID handling bugs in remote driver
2009-04-19 15:21:54 +00:00
Daniel P. Berrange
45707d5631
Add treeview to node device listing in virsh
2009-04-01 09:52:59 +00:00
Chris Lalancette
4d3d0039e5
Convert all drivers to use old-style struct initializers; this makes a handy
...
built-in TODO list for each driver. Also rip out the internal getURI method;
it is never used by any of the drivers, and was buggy to boot.
2009-03-31 15:47:16 +00:00
Daniel Veillard
df59fdce06
* src/remote_internal.c: remove file descriptors leak
...
daniel
2009-03-17 11:00:56 +00:00
Daniel P. Berrange
b9739b4709
Add missing locking calls in remote driver
2009-03-03 19:33:34 +00:00
Daniel P. Berrange
a8cd24b346
Remote protocol / RPC API for sVirt support (James Morris & Dan Walsh)
2009-03-03 09:27:02 +00:00
Daniel Veillard
0231102863
Implement node attach/reattach/reset in the remote driver
...
* qemud/remote.c qemud/remote_dispatch_args.h
qemud/remote_dispatch_prototypes.h qemud/remote_dispatch_table.h
qemud/remote_protocol.c qemud/remote_protocol.h
qemud/remote_protocol.x src/remote_internal.c: Implement
attach/reattach/reset in the remote driver, patch by Mark
McLoughlin.
Daniel
2009-03-02 16:30:59 +00:00
Daniel Veillard
372d5b3088
* src/remote_internal.c: fix autostart of session daemon, patch
...
by Dan Berrange
Daniel
2009-02-26 15:06:06 +00:00
Daniel P. Berrange
4dce547640
Fix I/O errors in libvirtd daemon, and hang/crash in remote client upon I/O error
2009-02-17 09:44:18 +00:00
Jim Meyering
c18ccff446
cleanup: remove useless if-before-VIR_FREE
...
* Makefile.cfg (useless_free_options): Also check for VIR_FREE.
* src/iptables.c (iptRulesFree): Remove useless if-before-VIR_FREE.
* src/remote_internal.c (remoteAuthSASL): Likewise.
* src/test.c (testOpenFromFile): Likewise.
2009-02-03 13:08:07 +00:00
Guido Günther
e69b20d616
Don't hardcode ssh port 22, use VIR_FREE, initialize pointers to NULL not 0.
2009-01-31 13:49:11 +00:00
Daniel P. Berrange
1c64dc76c1
Misc xen driver bug/crash fixes
2009-01-29 23:01:37 +00:00
Jim Meyering
bc18a91f91
error-reporting calls using VIR_ERR_NO_MEMORY: use virReportOOMError instead
...
* src/uml_conf.c (VIR_FROM_THIS): Define to VIR_FROM_UML.
* src/xs_internal.c (VIR_FROM_THIS): Define to VIR_FROM_XEN.
* src/xml.c (VIR_FROM_THIS): Define to VIR_FROM_XML.
* src/stats_linux.c (VIR_FROM_THIS): Define to VIR_FROM_STATS_LINUX.
* src/datatypes.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
* src/lxc_conf.c (VIR_FROM_THIS): Define to VIR_FROM_LXC.
* src/libvirt.c (VIR_FROM_THIS): Define to VIR_FROM_NONE.
* src/node_device_conf.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
* src/openvz_conf.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
* src/openvz_driver.c (VIR_FROM_THIS): Define to VIR_FROM_OPENVZ.
* src/conf.c (VIR_FROM_THIS): Define to VIR_FROM_CONF.
Note: this loses config_filename:config_lineno diagnostics,
but that's ok.
* src/node_device.c (VIR_FROM_THIS): Define to VIR_FROM_NODEDEV.
* src/sexpr.c (VIR_FROM_THIS): Define to VIR_FROM_SEXPR.
* po/POTFILES.in: remove src/sexpr.c and src/lxc_conf.c
2009-01-29 12:10:32 +00:00
Daniel P. Berrange
94d6177982
Fix typo & tweak variable decl
2009-01-28 22:07:36 +00:00
Daniel P. Berrange
46d1324e47
Stopping reading off wire after 1 complete RPC message is received
2009-01-28 22:00:32 +00:00
Jim Meyering
e730de6fd8
remote_internal.c: fix typo that would mistakenly report OOM
...
* src/remote_internal.c (addrToString): Report VIR_ERR_UNKNOWN_HOST,
not VIR_ERR_NO_MEMORY.
2009-01-28 16:14:24 +00:00
Daniel P. Berrange
1b745219c7
Remove use of non-reentrant POSIX apis
2009-01-22 19:41:48 +00:00
John Levon
2b29698352
Least privilege support for Solaris
2009-01-22 17:49:41 +00:00
Daniel P. Berrange
f61341173b
Allow concurrent processing of RPC calls in daemon
2009-01-20 19:25:15 +00:00
Daniel P. Berrange
2c7be88d15
Remove a use of strerror() in error reporting in remote driver
2009-01-20 17:47:13 +00:00
Daniel P. Berrange
437ac354fc
Make error reporting threadsafe by avoiding strerror
2009-01-20 17:13:33 +00:00
Daniel P. Berrange
61674cc17d
Make RPC call dispatch threaded
2009-01-20 16:36:34 +00:00
Daniel P. Berrange
c790f6d25e
Avoid bogus event loop wakeups in remote driver when doing RPC call
2009-01-20 11:45:09 +00:00
Daniel P. Berrange
ed493909f7
Add locking to the remote driver
2009-01-20 11:41:24 +00:00
Daniel P. Berrange
dd9b3fb594
Fix bug when fork isn't available (Win32) in remote driver
2009-01-15 20:13:12 +00:00
Daniel P. Berrange
2be79b1d5e
Reduce exit paths in remote driver APIs
2009-01-15 20:07:10 +00:00
Daniel P. Berrange
19d1bf2562
Remove use of macros in remote driver private data access
2009-01-15 20:04:44 +00:00
Daniel P. Berrange
0cd119e7b8
Fix incorrect use of private data field in remote driver
2009-01-15 20:03:10 +00:00
Guido Günther
043d702f02
use virAsprintf instead of asprintf
2008-12-23 13:03:29 +00:00
Daniel P. Berrange
829b6420d8
Fix mistaken free of domain event object after queueing (David Lively)
2008-12-18 12:11:53 +00:00
Daniel P. Berrange
7c4bc3f92f
Use pid_t for all PID tracking variables (John Levon)
2008-12-18 11:58:28 +00:00
Daniel P. Berrange
ded70984f3
Fix unreachable statement (John Levon)
2008-12-17 21:50:02 +00:00
Daniel P. Berrange
b5259e7e11
Fix domain events callback type (John Levon)
2008-12-17 21:48:20 +00:00
Daniel P. Berrange
e5fc0aad31
Fix return type for Xen open subdriver method impl (John Levon)
2008-12-17 21:26:16 +00:00
Daniel P. Berrange
7e58aaa7ae
Remove use of anonymous unions for non-GCC (John Levon)
2008-12-17 18:12:07 +00:00
Daniel P. Berrange
bc898df2c7
QEMU domain event thread safety
2008-12-04 21:09:20 +00:00
Daniel P. Berrange
d88d459d7b
Allow remote://hostname/ style URIs for automatic driver probe. Fix virGetVersion impl
2008-11-28 12:03:20 +00:00
Daniel P. Berrange
8325fcf13d
Remote protocol support for node devices (David Lively)
2008-11-21 12:31:04 +00:00
Daniel P. Berrange
660418cff4
Misc fixes to event registration failure cases
2008-11-21 10:22:58 +00:00
Daniel P. Berrange
d378791480
Fix crash on NULL uri scheme
2008-11-20 14:33:59 +00:00
Daniel P. Berrange
6d04effac7
Add a virFreeCallback to event loop APIs
2008-11-19 16:24:01 +00:00