libvirt/examples
Daniel P. Berrange a6135ec1e6 Introduce a new event emitted when a virtualization failure occurs
This introduces a new domain

  VIR_DOMAIN_EVENT_ID_CONTROL_ERROR

Which uses the existing generic callback

typedef void (*virConnectDomainEventGenericCallback)(virConnectPtr conn,
                                                     virDomainPtr dom,
                                                     void *opaque);

This event is intended to be emitted when there is a failure in
some part of the domain virtualization system. Whether the domain
continues to run/exist after the failure is an implementation
detail specific to the hypervisor.

The idea is that with some types of failure, hypervisors may
prefer to leave the domain running in a "degraded" mode of
operation. For example, if something goes wrong with the QEMU
monitor, it is possible to leave the guest OS running quite
happily. The mgmt app will simply loose the ability todo various
tasks. The mgmt app can then choose how/when to deal with the
failure that occured.
* daemon/remote.c: Dispatch of new event
* examples/domain-events/events-c/event-test.c: Demo catch
  of event
* include/libvirt/libvirt.h.in: Define event ID and callback
* src/conf/domain_event.c, src/conf/domain_event.h: Internal
  event handling
* src/remote/remote_driver.c: Receipt of new event from daemon
* src/remote/remote_protocol.x: Wire protocol for new event
* src/remote_protocol-structs: add new event for checks
2011-05-29 20:21:53 +08:00
..
apparmor Improve the apparmor example 2010-04-06 23:01:24 +02:00
domain-events Introduce a new event emitted when a virtualization failure occurs 2011-05-29 20:21:53 +08:00
dominfo maint: avoid space-tab 2010-12-21 13:21:25 -07:00
domsuspend maint: avoid space-tab 2010-12-21 13:21:25 -07:00
hellolibvirt Fix build in separate build directory 2009-10-01 16:55:09 +02:00
openauth Add openauth example to demonstrate a custom auth callback 2010-07-13 13:50:27 +02:00
python Remove bogus check for Xen in example program 2010-11-29 15:17:00 +00:00
systemtap Include socket address in client probe data 2010-10-22 12:00:45 +01:00
xml nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00