• D
    Allow automatic kill of guests when a connection is closed · 3ba937da
    Daniel P. Berrange 提交于
    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
    3ba937da
virsh.c 397.3 KB