This wires up the libvirt compute driver to process async events from libvirtd and emit lifecycle events. This makes use of the native libvirt event loop to handle I/O processing which requires a native thread. The native thread uses a queue + self-pipe to forward events onto a green thread. The green thread reads events off the queue and uses the emit_event method to dispatch them to the compute manager. Blueprint: compute-driver-events Change-Id: Icd2cb7081adde10420ae55beebe60350afe21379 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
26 KiB
26 KiB