mirror of
https://github.com/opnsense/src.git
synced 2026-02-03 20:49:35 -05:00
The faulting instruction needs to be restarted when the exception handler is done handling the fault. bhyve now does this correctly by setting 'vmexit[vcpu].inst_length' to zero so the %rip is not advanced. A minor complication is that the fault injection APIs are used by instruction emulation code that is shared by vmm.ko and bhyve. Thus the argument that refers to 'struct vm *' in kernel or 'struct vmctx *' in userspace needs to be loosely typed as a 'void *'. |
||
|---|---|---|
| .. | ||
| Makefile | ||
| vmmapi.c | ||
| vmmapi.h | ||
| vmmapi_freebsd.c | ||