]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 263780,264516,265062,265101,265203,265364:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 21 Jul 2014 02:39:17 +0000 (02:39 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 21 Jul 2014 02:39:17 +0000 (02:39 +0000)
commitee974e7419e6ecfdabcc248210011fdfd5544f75
tree84ace0524c020288c47a07096fb6abcb1d3387d4
parent4b12634085639488926b2d57c8f6df53f67bc6d3
MFC 263780,264516,265062,265101,265203,265364:
Add an ioctl to suspend a virtual machine (VM_SUSPEND).

Add logic in the HLT exit handler to detect if the guest has put all vcpus
to sleep permanently by executing a HLT with interrupts disabled.

When this condition is detected the guest with be suspended with a reason of
VM_SUSPEND_HALT and the bhyve(8) process will exit.

This logic can be disabled via the tunable 'hw.vmm.halt_detection'.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268935 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libvmmapi/vmmapi.c
lib/libvmmapi/vmmapi.h
sys/amd64/include/vmm.h
sys/amd64/include/vmm_dev.h
sys/amd64/vmm/amd/amdv.c
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/vmm.c
sys/amd64/vmm/vmm_dev.c
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyvectl/bhyvectl.c