diff options
author | jhb <jhb@FreeBSD.org> | 2014-01-29 21:23:37 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-01-29 21:23:37 +0000 |
commit | 080d62f93d7c8004e0f06800adb9eb671a15c656 (patch) | |
tree | aaeb609acf09f813a3e0705dffb98eeec21f8312 /sys/amd64/include/cpu.h | |
parent | 63fe90dcd8b2fc3d5acd50b81ae0ed650e09329a (diff) | |
download | FreeBSD-src-080d62f93d7c8004e0f06800adb9eb671a15c656.zip FreeBSD-src-080d62f93d7c8004e0f06800adb9eb671a15c656.tar.gz |
MFC 259782:
Add a resume hook for bhyve that runs a function on all CPUs during
resume. For Intel CPUs, invoke vmxon for CPUs that were in VMX mode
at the time of suspend.
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r-- | sys/amd64/include/cpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 3d9ff531..3c5d5df 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -70,6 +70,9 @@ extern struct cpu_ops cpu_ops; extern char btext[]; extern char etext[]; +/* Resume hook for VMM. */ +extern void (*vmm_resume_p)(void); + void cpu_halt(void); void cpu_reset(void); void fork_trampoline(void); |