]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: implement domainShutdown
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 4 May 2016 16:41:59 +0000 (19:41 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 5 May 2016 05:04:01 +0000 (08:04 +0300)
commit9e0bb1c8b6bafce4e6a546f3dcdde7ad124cf66b
treeaa5302d81234215584989ccc45c1a5a6753710bb
parentc35c2fe78eb05f9becf848393912e0d7ded70da2
bhyve: implement domainShutdown

Bhyve supports ACPI shutdown by issuing SIGTERM signal to a bhyve
process.

Add the bhyveDomainShutdown() function and virBhyveProcessShutdown()
helper function that just sends SIGTERM to VM's bhyve process. If
a guest supports ACPI shutdown then process will be terminated and
this event will be noticed by the bhyve monitor code that will handle
setting proper status and clean up VM's resources by calling
virBhyveProcessStop().
src/bhyve/bhyve_driver.c
src/bhyve/bhyve_process.c
src/bhyve/bhyve_process.h