On 06/23/2011 04:58 AM, Daniel P. Berrange wrote:
Sometimes it is useful to be able to automatically kill a guest when
a connection is closed. For example, kill an incoming migration if
the client managing the migration dies. This introduces a map between
guest 'uuid' strings and virConnectPtr objects. When a connection is
closed, any associated guests are killed off
* src/qemu/qemu_conf.h: Add autokill hash table to qemu driver
* src/qemu/qemu_process.c, src/qemu/qemu_process.h: Add APIs
for performing autokill of guests associated with a connection
* src/qemu/qemu_driver.c: Initialize autokill map
---
src/qemu/qemu_conf.h | 5 ++
src/qemu/qemu_driver.c | 17 +++++--
src/qemu/qemu_migration.c | 7 ++-
src/qemu/qemu_process.c | 118 +++++++++++++++++++++++++++++++++++++++++++++
src/qemu/qemu_process.h | 12 +++++
5 files changed, 151 insertions(+), 8 deletions(-)
ACK.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org