aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2013-12-23 19:48:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2013-12-23 19:48:22 +0000
commit63e62d390d4e890614a2952c6d2ee777baf41e15 (patch)
treec6a14c4ed4b175a1cec41da10f5e90f466be7f7d /sys/amd64/include/cpu.h
parent6cb6c0a8af0369ccf631e21f1842061a32948eae (diff)
downloadsrc-63e62d390d4e890614a2952c6d2ee777baf41e15.tar.gz
src-63e62d390d4e890614a2952c6d2ee777baf41e15.zip
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. Reviewed by: neel
Notes
Notes: svn path=/head/; revision=259782
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 3d9ff5318f77..3c5d5df86fcf 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);