CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/09/18 15:47:36

Modified files:
        sys/arch/amd64/amd64: vmm_machdep.c 
        usr.sbin/vmd   : vm.c vmd.h vmm.c x86_vm.c 

Log message:
Redesign shutdown of vmd processes and use SIGTERM for hanging vm's.

In preparation for some bigger changes in vmm(4)/vmd(8), improve the
shutdown paths for vmd vm's. For vmd vm processes, the objective is to
make it through cleanup routines (such as sev_shutdown()) in any
conditions where it's safe to continue executing the program. From the
vmd "vmm" process, still use the current VMM_IOC_TERM to signal that
the vcpu's should be terminating, but also fall back to SIGTERM to the
vm process if it doesn't get the hint.

The timeouts may need to be adjusted in the future, but those can be
optimized after the bigger changes land.

Go for it, mlarkin@.

Reply via email to