]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle nested exceptions in bhyve.
authorneel <neel@FreeBSD.org>
Sat, 19 Jul 2014 20:59:08 +0000 (20:59 +0000)
committerneel <neel@FreeBSD.org>
Sat, 19 Jul 2014 20:59:08 +0000 (20:59 +0000)
commit1f15eea2e088718478067efc8df6ecd1fc86dcee
tree5276627274ad6c55ba76fce7b924b9a9eef00e3d
parent79931797441bc166c7381ef7865f139e5cdb47e8
Handle nested exceptions in bhyve.

A nested exception condition arises when a second exception is triggered while
delivering the first exception. Most nested exceptions can be handled serially
but some are converted into a double fault. If an exception is generated during
delivery of a double fault then the virtual machine shuts down as a result of
a triple fault.

vm_exit_intinfo() is used to record that a VM-exit happened while an event was
being delivered through the IDT. If an exception is triggered while handling
the VM-exit it will be treated like a nested exception.

vm_entry_intinfo() is used by processor-specific code to get the event to be
injected into the guest on the next VM-entry. This function is responsible for
deciding the disposition of nested exceptions.
lib/libvmmapi/vmmapi.c
lib/libvmmapi/vmmapi.h
sys/amd64/include/vmm.h
sys/amd64/include/vmm_dev.h
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/vmm.c
sys/amd64/vmm/vmm_dev.c
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/task_switch.c
usr.sbin/bhyvectl/bhyvectl.c