[libvirt] [PATCH] Xen Events Updated

Ben Guthro bguthro at virtualiron.com
Tue Nov 11 18:34:29 UTC 2008


This version of the Xen-Events patch goes a step further than the last version, and now emits the following domain events:

STARTED
STOPPED
ADDED
REMOVED

This is accomplished by monitoring /etc/xen, and taking advantage of what seemed to be dormant code in the XM driver. By re-enabling the "config cache", we can properly track domains when files come, and go into this directory.

 configure.in                |   13 +
 include/libvirt/virterror.h |    1
 po/POTFILES.in              |    1
 src/Makefile.am             |    3
 src/virterror.c             |    3
 src/xen_inotify.c           |  270 +++++++++++++++++++++++++++
 src/xen_inotify.h           |   32 +++
 src/xen_unified.c           |  190 +++++++++++++++++++
 src/xen_unified.h           |   61 ++++++
 src/xm_internal.c           |   24 +-
 src/xs_internal.c           |  430 +++++++++++++++++++++++++++++++++++++++++++-
 src/xs_internal.h           |   51 +++++
 12 files changed, 1069 insertions(+), 10 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: events-xen.patch
Type: text/x-patch
Size: 43290 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20081111/9a17fc86/attachment-0001.bin>


More information about the libvir-list mailing list