Add -f option to vmctl stop to forcefully kill a VM.
authorreyk <reyk@openbsd.org>
Wed, 11 Jul 2018 09:35:44 +0000 (09:35 +0000)
committerreyk <reyk@openbsd.org>
Wed, 11 Jul 2018 09:35:44 +0000 (09:35 +0000)
commitf6e5c9eb7e9081dc2abaae8f39a56d6a510abeb2
treef0a21de60c782793f9c7892c63b552b4bfc71bcb
parenteb2c0aa16bebf03c18a4fd2ac638038e885b0590
Add -f option to vmctl stop to forcefully kill a VM.

This also fixes a bug in vmm_sighdlr where it might have missed
forwarding the TERMINATE_EVENT to the vmd parent after a VM child
died, leading to an abandoned VM in the vmd parent process.

OK ccardenas@ mlarkin@ benno@ kn@
usr.sbin/vmctl/main.c
usr.sbin/vmctl/vmctl.8
usr.sbin/vmctl/vmctl.c
usr.sbin/vmctl/vmctl.h
usr.sbin/vmd/control.c
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h
usr.sbin/vmd/vmm.c