[libvirt] [PATCH 1/3] Add infrastructure for automatically kill guests with a connection closes

Eric Blake eblake at redhat.com
Thu Jun 23 13:07:05 UTC 2011


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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110623/80b1f1c3/attachment-0001.sig>


More information about the libvir-list mailing list