]> xenbits.xensource.com Git - libvirt.git/commit
Allow automatic kill of guests when a connection is closed
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Jun 2011 10:41:57 +0000 (11:41 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 24 Jun 2011 11:15:10 +0000 (12:15 +0100)
commit3ba937da427c4bb5b625d0810415186baae1b2ab
tree0e5a5fcbdbbf7ec80aa0e93d55637fd87b9f7c4d
parent2c2effa1d7000aa97140c734a6be6e8d40df1022
Allow automatic kill of guests when a connection is closed

If an application is using libvirt + KVM as a piece of its
internal infrastructure to perform a specific task, it can
be desirable to guarentee the VM dies when the virConnectPtr
disconnects from libvirtd. This ensures the app can't leak
any VMs it was using. Adding VIR_DOMAIN_START_AUTOKILL as
a flag when starting guests enables this to be done.

* include/libvirt/libvirt.h.in: All VIR_DOMAIN_START_AUTOKILL
* src/qemu/qemu_driver.c: Support automatic killing of guests
  upon connection close
* tools/virsh.c: Add --autokill flag to 'start' and 'create'
  commands
include/libvirt/libvirt.h.in
src/libvirt.c
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h
tools/virsh.c
tools/virsh.pod