Re: [libvirt] [PATCH 04/10] Move QEMU private data & namespace code into separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 01:31 PM, Eric Blake wrote: > On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: >> Move the code for handling the QEMU virDomainObjPtr private >> data, and custom XML namespace into a separate file >> >> * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: New file >> for private data

Re: [libvirt] [PATCH 02/10] Move QEMU command line management into a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 11:56 AM, Eric Blake wrote: > On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: >> The qemu_conf.c code is doing three jobs, driver config file >> loading, QEMU capabilities management and QEMU command line >> management. Move the command line code into its own file >> > Same nit abou

Re: [libvirt] [PATCH 01/10] Move QEMU capabilities management into a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 05:09 PM, Eric Blake wrote: > On 12/16/2010 11:05 AM, Eric Blake wrote: >> On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: >>> The qemu_conf.c code is doing three jobs, driver config file >>> loading, QEMU capabilities management and QEMU command line >>> management. Move the capabi

Re: [libvirt] [PATCH 01/10] Move QEMU capabilities management into a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 11:05 AM, Eric Blake wrote: > On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: >> The qemu_conf.c code is doing three jobs, driver config file >> loading, QEMU capabilities management and QEMU command line >> management. Move the capabilities code into its own file >> >> * src/qemu/q

Re: [libvirt] [PATCH 06/15] Integrate TLS/SASL directly into the socket APIs

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > This extends the basic virNetSocket APIs to allow them to have > a handle to the TLS/SASL session objects, once established. > This ensures that any data reads/writes are automagically > passed through the TLS/SASL encryption layers if required. >

Re: [libvirt] [PATCH 05/15] Generic module for handling SASL authentication & encryption

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > This provides two modules for handling SASL > > * virNetSASLContext provides the process-wide state, currently >just a whitelist of usernames on the server and a one time >library init call > > * virNetTLSSession provides the per-conne

Re: [libvirt] [PATCH 04/15] Generic module for handling TLS encryption and x509 certs

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > This provides two modules for handling TLS > > * virNetTLSContext provides the process-wide state, in particular >all the x509 credentials, DH params and x509 whitelists > * virNetTLSSession provides the per-connection state, ie the >TL

Re: [libvirt] [PATCH 03/15] Introduce a generic object for using network sockets

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > Introduces a simple wrapper around the raw POSIX sockets APIs > and name resolution APIs. Allows for easy creation of client > and server sockets with correct usage of name resolution APIs > for protocol agnostic socket setup. > > It can listen f

Re: [libvirt] [PATCH 10/10] Move QEMU hotplug helper code out of the QEMU driver

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The QEMU driver file is far too large. Move all the hotplug > helper code out into a separate file. No functional change. > > * src/qemu/qemu_hotplug.c, src/qemu/qemu_hotplug.h, > src/Makefile.am: Add hotplug helper file > * src/qemu/qemu_drive

Re: [libvirt] [PATCH 09/10] Move domain lock / job helper code to separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > To allow the APIs to be used from separate files, move the domain > lock / job helper code into qemu_domain.c > > * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: Add domain lock > / job code > * src/qemu/qemu_driver.c: Remove domain lock / jo

Re: [libvirt] [PATCH 08/10] Move QEMU driver lock helpers to a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > To allow their use from other source files, move qemuDriverLock > and qemuDriverUnlock to qemu_conf.h and make them non-static > > * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Add qemuDriverLock > qemuDriverUnlock > * src/qemu/qemu_driver.c: R

Re: [libvirt] [PATCH 07/10] Move QEMU hostdev helper code out of the QEMU driver

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The QEMU driver file is far too large. Move all the hostdev > helper code out into a separate file. No functional change. > > * src/qemu/qemu_hostdev.c, src/qemu/qemu_hostdev.h, > src/Makefile.am: Add hostdev helper file > * src/qemu/qemu_drive

Re: [libvirt] [PATCH 06/10] Move QEMU cgroup helper code out of the QEMU driver

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The QEMU driver file is far too large. Move all the cgroup > helper code out into a separate file. No functional change. > > * src/qemu/qemu_cgroup.c, src/qemu/qemu_cgroup.h, > src/Makefile.am: Add cgroup helper file > * src/qemu/qemu_driver.c:

Re: [libvirt] [PATCH 05/10] Move QEMU audit helper code out of the QEMU driver

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The QEMU driver file is far too large. Move all the audit > helper code out into a separate file. No functional change. > > * src/qemu/qemu_audit.c, src/qemu/qemu_audit.h, > src/Makefile.am: Add audit helper file > * src/qemu/qemu_driver.c: Del

Re: [libvirt] [PATCH 04/10] Move QEMU private data & namespace code into separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > Move the code for handling the QEMU virDomainObjPtr private > data, and custom XML namespace into a separate file > > * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: New file > for private data & namespace code > * src/qemu/qemu_driver.c, src

Re: [libvirt] [PATCH 03/10] Move QEMU domain object struct into qemu_conf.h

2010-12-16 Thread Eric Blake
On 12/16/2010 01:13 PM, Eric Blake wrote: >> Hmm, seems this went wrong during a rebase. The qemu_conf.h >> addition somehow ended up in the next patch. I should just >> squash the patches 3 & 4 together > > I wondered that too, at first, but the diffstat for 4 doesn't concur either: > > src/qem

Re: [libvirt] [PATCH 03/10] Move QEMU domain object struct into qemu_conf.h

2010-12-16 Thread Eric Blake
On 12/16/2010 12:26 PM, Daniel P. Berrange wrote: > On Thu, Dec 16, 2010 at 12:13:51PM -0700, Eric Blake wrote: >> On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: >>> Allow QEMU driver files access to qemuDomainObjPrivate struct >>> >>> * src/qemu/qemu_conf.h: Add qemuDomainObjPrivate struct >>>

Re: [libvirt] VolumeCreateXML "XML" description for ESX

2010-12-16 Thread Matthias Bolte
2010/12/12 Sherif Nagy > thank you Matthias, i did follow what you said and i find the error, I am > connecting to vCenter server not to ESX directly and that what i have find. > > > Data Object Type: *NotImplemented* > That's the important information. The vCenter doesn't seem to implement the

Re: [libvirt] [PATCH 02/15] Provide a simple object for encoding/decoding RPC messages

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 16, 2010 at 10:49:16AM -0700, Eric Blake wrote: > On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > > This provides a new struct that contains a buffer for the RPC > > message header+payload, as well as a decoded copy of the message > > header. There is an API for applying a XDR encod

Re: [libvirt] [PATCH 03/10] Move QEMU domain object struct into qemu_conf.h

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 16, 2010 at 12:13:51PM -0700, Eric Blake wrote: > On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > > Allow QEMU driver files access to qemuDomainObjPrivate struct > > > > * src/qemu/qemu_conf.h: Add qemuDomainObjPrivate struct > > * src/qemu/qemu_driver.c: Remove qemuDomainObjPrivat

Re: [libvirt] [PATCH 03/10] Move QEMU domain object struct into qemu_conf.h

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > Allow QEMU driver files access to qemuDomainObjPrivate struct > > * src/qemu/qemu_conf.h: Add qemuDomainObjPrivate struct > * src/qemu/qemu_driver.c: Remove qemuDomainObjPrivate struct > --- > src/qemu/qemu_driver.c | 45 --

[libvirt] [PATCH] maint: improve tests distribution

2010-12-16 Thread Eric Blake
* tests/Makefile.am (EXTRA_DIST): Sort, and add directories. (SUBDIRS): Drop automake recursion into subdirs. * tests/commanddata/Makefile.am: Delete. * tests/confdata/Makefile.am: Likewise. * tests/sexpr2xmldata/Makefile.am: Likewise. * tests/xencapsdata/Makefile.am: Likewise. * tests/xmconfigdata

Re: [libvirt] [PATCH 02/10] Move QEMU command line management into a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The qemu_conf.c code is doing three jobs, driver config file > loading, QEMU capabilities management and QEMU command line > management. Move the command line code into its own file > > * src/qemu/qemu_command.c, src/qemu/qemu_command.h: New >

[libvirt] [PATCH] maint: doc fix

2010-12-16 Thread Eric Blake
* src/libvirt.c: Avoid duplicate word. --- I'm pushing this under the trivial rule. src/libvirt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 4188b45..ff2ac93 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -3297,7 +3297,7 @@ er

Re: [libvirt] [PATCH 01/10] Move QEMU capabilities management into a separate file

2010-12-16 Thread Eric Blake
On 12/16/2010 09:50 AM, Daniel P. Berrange wrote: > The qemu_conf.c code is doing three jobs, driver config file > loading, QEMU capabilities management and QEMU command line > management. Move the capabilities code into its own file > > * src/qemu/qemu_capabilities.c, src/qemu/qemu_capabilities.h

Re: [libvirt] [PATCH 02/15] Provide a simple object for encoding/decoding RPC messages

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > This provides a new struct that contains a buffer for the RPC > message header+payload, as well as a decoded copy of the message > header. There is an API for applying a XDR encoding & decoding > of the message headers and payloads. There are also

[libvirt] [PATCH 09/10] Move domain lock / job helper code to separate file

2010-12-16 Thread Daniel P. Berrange
To allow the APIs to be used from separate files, move the domain lock / job helper code into qemu_domain.c * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: Add domain lock / job code * src/qemu/qemu_driver.c: Remove domain lock / job code --- src/qemu/qemu_domain.c | 230

[libvirt] [PATCH 06/10] Move QEMU cgroup helper code out of the QEMU driver

2010-12-16 Thread Daniel P. Berrange
The QEMU driver file is far too large. Move all the cgroup helper code out into a separate file. No functional change. * src/qemu/qemu_cgroup.c, src/qemu/qemu_cgroup.h, src/Makefile.am: Add cgroup helper file * src/qemu/qemu_driver.c: Delete cgroup code --- src/Makefile.am|1 + src/

[libvirt] [PATCH 08/10] Move QEMU driver lock helpers to a separate file

2010-12-16 Thread Daniel P. Berrange
To allow their use from other source files, move qemuDriverLock and qemuDriverUnlock to qemu_conf.h and make them non-static * src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Add qemuDriverLock qemuDriverUnlock * src/qemu/qemu_driver.c: Remove qemuDriverLock and qemuDriverUnlock --- src/qemu/qemu_c

[libvirt] [PATCH 04/10] Move QEMU private data & namespace code into separate file

2010-12-16 Thread Daniel P. Berrange
Move the code for handling the QEMU virDomainObjPtr private data, and custom XML namespace into a separate file * src/qemu/qemu_domain.c, src/qemu/qemu_domain.h: New file for private data & namespace code * src/qemu/qemu_driver.c, src/qemu/qemu_driver.h: Remove private data & namespace code *

[libvirt] [PATCH 07/10] Move QEMU hostdev helper code out of the QEMU driver

2010-12-16 Thread Daniel P. Berrange
The QEMU driver file is far too large. Move all the hostdev helper code out into a separate file. No functional change. * src/qemu/qemu_hostdev.c, src/qemu/qemu_hostdev.h, src/Makefile.am: Add hostdev helper file * src/qemu/qemu_driver.c: Delete hostdev code --- src/Makefile.am |1 +

[libvirt] [PATCH 05/10] Move QEMU audit helper code out of the QEMU driver

2010-12-16 Thread Daniel P. Berrange
The QEMU driver file is far too large. Move all the audit helper code out into a separate file. No functional change. * src/qemu/qemu_audit.c, src/qemu/qemu_audit.h, src/Makefile.am: Add audit helper file * src/qemu/qemu_driver.c: Delete audit code --- src/Makefile.am|1 + src/qemu/

[libvirt] [PATCH 00/10] Re-arrange the QEMU driver code

2010-12-16 Thread Daniel P. Berrange
The QEMU driver is getting horribly large & I constantly find myself getting lost in it. This series re-arranges the code, pulling out the following areas of functionality into new files - capabilities construction - command line arg generation/parsing - domain private data / namespace handling

[libvirt] [PATCH 03/10] Move QEMU domain object struct into qemu_conf.h

2010-12-16 Thread Daniel P. Berrange
Allow QEMU driver files access to qemuDomainObjPrivate struct * src/qemu/qemu_conf.h: Add qemuDomainObjPrivate struct * src/qemu/qemu_driver.c: Remove qemuDomainObjPrivate struct --- src/qemu/qemu_driver.c | 45 - 1 files changed, 0 insertions(+), 45

Re: [libvirt] [00/15] Re-factoring XDR RPC code v2

2010-12-16 Thread Eric Blake
On 12/16/2010 04:37 AM, Daniel P. Berrange wrote: >> This is still not quite functionally complete, so not ready to >> apply. The missing pieces are >> >> - Make the client side streams code work again >> - Re-integrate DTrace probes in libvirtd > > To save time, the patches are also available d

Re: [libvirt] [Patch v4] Add VMware Workstation and Player driver

2010-12-16 Thread Matthias Bolte
2010/12/14 Jean-Baptiste Rouault : > --- > diff --git a/src/vmware/vmware_conf.c b/src/vmware/vmware_conf.c > new file mode 100644 > index 000..a3a0689 > --- /dev/null > +++ b/src/vmware/vmware_conf.c > +int > +vmwareParsePath(char *path, char **directory, char **filename) > +{ > +    char *s

Re: [libvirt] [PATCH 01/15] Defines the basics of a generic RPC protocol in XDR

2010-12-16 Thread Eric Blake
On 12/16/2010 04:21 AM, Daniel P. Berrange wrote: > This patch defines the basics of a generic RPC protocol in XDR. > This is wire ABI compatible with the original remote_protocol.x. > diff --git a/.x-sc_preprocessor_indentation b/.x-sc_preprocessor_indentation > new file mode 100644 > index 00

Re: [libvirt] [PATCH 4/8] Introduce generic objects for building XDR RPC servers/clients

2010-12-16 Thread Eric Blake
On 12/16/2010 04:34 AM, Daniel P. Berrange wrote: > On Thu, Dec 09, 2010 at 03:29:20PM -0700, Eric Blake wrote: >>> @@ -1098,6 +1116,28 @@ libvirt_qemu_la_CFLAGS = $(AM_CFLAGS) >>> libvirt_qemu_la_LIBADD = libvirt.la $(CYGWIN_EXTRA_LIBADD) >>> EXTRA_DIST += $(LIBVIRT_QEMU_SYMBOL_FILE) >>> >>> +

Re: [libvirt] [C# bindings] [PATCH]

2010-12-16 Thread arnaud.champion
 -- From: "Matthias Bolte" Sent: Thursday, December 16, 2010 1:44 PM To: Cc: Subject: Re: [libvirt] [C# bindings] [PATCH] 2010/12/8 : Hi there, a long time since some update for C# bindings, sorry, I'm a little busy. Anyway here are some pa

[libvirt] contribution: qemu hook script to manage guests network bandwidth

2010-12-16 Thread Dominik Klein
Hi we had the need to manage guests bandwidth. Therefore I wrote a qemu hook script that achieves this and, if there is any interest in that, would like to contribute it to the project. This script will only work on linux hosts. It effectively limits the bandwidth a guest can _send_. It only some

Re: [libvirt] [C# bindings] [PATCH]

2010-12-16 Thread Matthias Bolte
2010/12/8 : > Hi there, > > a long time since some update for C# bindings, sorry, I'm a little busy. > Anyway here are some patches that correct marshaling around network > functions, and as usual a new sample code related to network functions. > 0001-Network-function-marhsalling-corrections.patc

Re: [libvirt] [C# bindings][PATCH]

2010-12-16 Thread Matthias Bolte
2010/12/8 : > Hi, > > here is another patch for C# bindings. I have update our project DAVIM with > latest C# bindings and it show some naming errors. This patch correct it. > > Arnaud > ACK and pushed. Matthias -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/l

[libvirt] vmware, vcenter, clusterComputeResource error.

2010-12-16 Thread guillaume LE LOUËT
Hello dear libvirt users. I am trying to make some migration from a VMWare esx to another. I am using ubuntu, and the last version found (my install script is http://dl.dropbox.com/u/7494462/libvirt/install.sh ) The configuration is the following: 192.168.18.5 is the first esx 172.28.2.7 is the v

[libvirt] Require Python library source code

2010-12-16 Thread Sridhar Ravindran
Hi, I require python library source code. Currently , "C" source code alone is available and Python API support is given as package. Thanks Sridhar.R -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] system / session URI

2010-12-16 Thread arnaud.champ...@devatom.fr
Okay, thanks for the explaination. This explain why I can't do some network thing with session URI ;) Thanks a lot Regards, Arnaud De: "Eric Blake" Envoyé: mercredi 15 décembre 2010 23:09 A: arnaud.champ...@devatom.fr Objet: Re: [libvirt] system / session

Re: [libvirt] [00/15] Re-factoring XDR RPC code v2

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 16, 2010 at 11:21:52AM +, Daniel P. Berrange wrote: > A followup to > > http://www.redhat.com/archives/libvir-list/2010-December/msg00051.html > > Since that time > > - The SASL/TLS I/O code has been integrated into the virNetSocket >class directly to remove duplication bet

Re: [libvirt] [PATCH 5/8] Introduce generic RPC server objects

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 09, 2010 at 04:09:20PM -0700, Eric Blake wrote: > On 12/01/2010 10:26 AM, Daniel P. Berrange wrote: > > + > > +if (virNetServerProgramDispatch(prog, > > +srv, > > +job->client, > > +

Re: [libvirt] [PATCH 4/8] Introduce generic objects for building XDR RPC servers/clients

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 09, 2010 at 03:29:20PM -0700, Eric Blake wrote: > > @@ -1098,6 +1116,28 @@ libvirt_qemu_la_CFLAGS = $(AM_CFLAGS) > > libvirt_qemu_la_LIBADD = libvirt.la $(CYGWIN_EXTRA_LIBADD) > > EXTRA_DIST += $(LIBVIRT_QEMU_SYMBOL_FILE) > > > > + > > +noinst_LTLIBRARIES += libvirt-net-rpc.la > > +

[libvirt] [PATCH 08/15] Introduce generic RPC client objects

2010-12-16 Thread Daniel P. Berrange
To facilitate creation of new clients using XDR RPC services, pull alot of the remote driver code into a set of reusable objects. - virNetClient: Encapsulates a socket connection to a remote RPC server. Handles all the network I/O for reading/writing RPC messages. Delegates RPC encoding

[libvirt] [PATCH 15/15] Add a test case for the RPC message APIs

2010-12-16 Thread Daniel P. Berrange
Add a test case which validates the RPC message encoding & decoding to/from XDR representation. Covers the core message header, the error class and streams. * testutils.c, testutils.h: Helper for printing binary differences * virnetmessagetest.c: Validate all XDR encoding/decoding --- tests/.giti

[libvirt] [PATCH 04/15] Generic module for handling TLS encryption and x509 certs

2010-12-16 Thread Daniel P. Berrange
This provides two modules for handling TLS * virNetTLSContext provides the process-wide state, in particular all the x509 credentials, DH params and x509 whitelists * virNetTLSSession provides the per-connection state, ie the TLS session itself. The virNetTLSContext provides APIs for vali

[libvirt] [PATCH 03/15] Introduce a generic object for using network sockets

2010-12-16 Thread Daniel P. Berrange
Introduces a simple wrapper around the raw POSIX sockets APIs and name resolution APIs. Allows for easy creation of client and server sockets with correct usage of name resolution APIs for protocol agnostic socket setup. It can listen for UNIX and TCP stream sockets. It can connect to UNIX, TCP s

[libvirt] [PATCH 12/15] Cleanup remote protocol definitions

2010-12-16 Thread Daniel P. Berrange
The standard remote protocol for libvirtd no longer needs to include definitions of the generic message header/error structs or status codes. This is all defined in the generic RPC protocol * src/remote/remote_protocol.x: Remove all RPC message definitions * src/remote/remote_protocol.h, src/remot

[libvirt] [PATCH 02/15] Provide a simple object for encoding/decoding RPC messages

2010-12-16 Thread Daniel P. Berrange
This provides a new struct that contains a buffer for the RPC message header+payload, as well as a decoded copy of the message header. There is an API for applying a XDR encoding & decoding of the message headers and payloads. There are also APIs for maintaining a simple FIFO queue of message insta

[libvirt] [PATCH 14/15] Add a test case for the socket APIs

2010-12-16 Thread Daniel P. Berrange
Start of a trivial test case for the socket APIs. Only tests simple server setup & client connect for UNIX sockets so far * tests/Makefile.am: Add socket test * tests/virnetsockettest.c: New test case * tests/testutils.c: Avoid overriding LIBVIRT_DEBUG settings --- tests/.gitignore |1

[libvirt] [PATCH 09/15] New generic script for generating RPC dispatcher

2010-12-16 Thread Daniel P. Berrange
A variant on the old remote_generate_stubs.pl which can generate generic stubs for RPC dispatch * src/rpc/gendispatch.pl: A script for generating RPC dispatchers --- src/Makefile.am|4 + src/rpc/gendispatch.pl | 230 2 files changed, 2

[libvirt] [PATCH 13/15] Change the RPC generator procedure

2010-12-16 Thread Daniel P. Berrange
Move the existing rpcgen_fix.pl script to rpcgenprotocol.pl and adjust it so that the script runs 'rpcgen' itself via a pipe, avoiding the need for any intermediate files. * Makefile.am: Re-write RPC generator rules * remote/rpcgen_fix.pl -> rpc/genprotocol.pl * remote/qemu_protocol.h, remote/remo

[libvirt] [PATCH 01/15] Defines the basics of a generic RPC protocol in XDR

2010-12-16 Thread Daniel P. Berrange
This patch defines the basics of a generic RPC protocol in XDR. This is wire ABI compatible with the original remote_protocol.x. It takes everything except for the RPC calls / events from that protocol - The basic header virNetMessageHeader (aka remote_message_header) - The error object virNetMe

[libvirt] [PATCH 06/15] Integrate TLS/SASL directly into the socket APIs

2010-12-16 Thread Daniel P. Berrange
This extends the basic virNetSocket APIs to allow them to have a handle to the TLS/SASL session objects, once established. This ensures that any data reads/writes are automagically passed through the TLS/SASL encryption layers if required. * src/rpc/virnetsocket.c, src/rpc/virnetsocket.h: Wire up

[libvirt] [PATCH 05/15] Generic module for handling SASL authentication & encryption

2010-12-16 Thread Daniel P. Berrange
This provides two modules for handling SASL * virNetSASLContext provides the process-wide state, currently just a whitelist of usernames on the server and a one time library init call * virNetTLSSession provides the per-connection state, ie the SASL session itself. This also include AP

[libvirt] [00/15] Re-factoring XDR RPC code v2

2010-12-16 Thread Daniel P. Berrange
A followup to http://www.redhat.com/archives/libvir-list/2010-December/msg00051.html Since that time - The SASL/TLS I/O code has been integrated into the virNetSocket class directly to remove duplication between client&servers - libvirtd has been converted to use the new APIs - Error hand

Re: [libvirt] [PATCH v2 1/2] timer impl

2010-12-16 Thread Daniel P. Berrange
On Thu, Dec 16, 2010 at 01:48:42PM +0800, Wen Congyang wrote: > At 12/15/2010 11:32 PM, Daniel P. Berrange Write: > > On Wed, Dec 15, 2010 at 08:24:44AM -0700, Eric Blake wrote: > >> On 12/15/2010 08:20 AM, Eric Blake wrote: > >>> On 12/14/2010 07:34 PM, Wen Congyang wrote: > >>> > >>> In addition