mirror of
https://github.com/opnsense/src.git
synced 2026-02-17 01:31:45 -05:00
from any context i.e., it is not required to be called from a vcpu thread. The ioctl simply sets a state variable 'vm->suspend' to '1' and returns. The vcpus inspect 'vm->suspend' in the run loop and if it is set to '1' the vcpu breaks out of the loop with a reason of 'VM_EXITCODE_SUSPENDED'. The suspend handler waits until all 'vm->active_cpus' have transitioned to 'vm->suspended_cpus' before returning to userspace. Discussed with: grehan |
||
|---|---|---|
| .. | ||
| Makefile | ||
| vmmapi.c | ||
| vmmapi.h | ||
| vmmapi_freebsd.c | ||