]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add infrastructure to automatically destroy guests when a connection closes
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Jun 2011 09:37:57 +0000 (10:37 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 24 Jun 2011 11:15:10 +0000 (12:15 +0100)
commit558b7fd03dcc2f3a502067d1d8a142a74a9315bb
treea7760778dc96148eeba6acac920d9063271d7840
parent42f43592be3045bed5dabdaea65718f6d2c706e4
Add infrastructure to automatically destroy guests when a connection closes

Sometimes it is useful to be able to automatically destroy 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 autodestroy map
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h