CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/04/01 21:58:57
Modified files:
usr.sbin/vmctl : vmctl.c
Log message:
Report reliable VM state on status command
`vmctl status id' reports the VM's VCPU states, that is whether they are
running or halted.
Given that only one VCPU is currently supported per VM and the undocumented
states change across repetitive status commands, change it to indicate the
VM's general state based on whether the respective host procces is running
or not.
This makes vmctl reliably report "STATE: RUNNING" and "STATE: STOPPED" for
started and stopped VMs respectively.
OK mlarkin