I'm revive this patch after see the OpenBSD presentation yesterday at bhyveconf, they have something pretty much similar.
Nowadays the only way to check how many VMs we are running on bhyve is
performe an ls(1) on '/dev/vmm/'. This patch adds a new command option
on bhyvectl.
root@pipoca:/ # bhyvectl --list
NAME MEM VCPU
fbsd 2147483648 4
fbsd2 2147483648 4
fbsd1 536870912 1
Also it is possible to search by name:
root@pipoca:/ # bhyvectl --list --vm=fbsd1
NAME MEM VCPU
fbsd1 536870912 1
NOTE: I have another patch that converts this output to libxo(3), however
I would like to do it in two steps. First add this feature and then
convert the entirely bhyvectl to libxo(3).