[libvirt] [PATCH 00/12] Domain Events - Round 2

Daniel P. Berrange berrange at redhat.com
Sun Oct 19 19:37:31 UTC 2008


On Fri, Oct 17, 2008 at 11:51:51AM -0400, Ben Guthro wrote:
> The following patch series implements the Events API discussed here previously in this thread:
> http://www.redhat.com/archives/libvir-list/2008-September/msg00321.html and
> http://www.redhat.com/archives/libvir-list/2008-October/msg00245.html
> 
> By Daniel B's advice - I have broken this patch into the following:
> 
> events-01-public-api          Changes to libvirt.h, and libvirt.c
> events-02-internal-api        Changes to internal.h and event code
> events-03-qemud               Changes to the daemon 
> events-04-qemud-rpc-protocol  Changes to the qemud rpc protocol
> events-05-driver.patch        Changes to the driver API
> events-06-driver-qemu         Changes to the qemu driver
> events-07-driver-remote       Changes to the remote driver
> events-08-driver-lxc          Minor changes to LXC driver structure to prevent compile errors
> events-09-driver-openvz       Minor changes to openvz driver structure to prevent compile errors
> events-10-driver-test         Minor changes to test driver structure to prevent compile errors
> events-11-example-testapp     Test app, and infrastructure changes for an example dir
> events-12-python-ignore.patch Add functions to be ignored, for now
> 
> For now, domain events are only emitted from qemu/kvm guests.

I was interested to see how well we could integrate with glib, so I 
knocked up a minimal 'libvirt-glib' library, which provides an event
loop which calls into glib. I also adapted your demo program to
use this too. The code is in this mercurial repository

   http://hg.berrange.com/libraries/libvirt-glib--devel

This is where I spotted the timeout bug I mentioned earlier - aside from 
that it works fairly nicely.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list