aboutsummaryrefslogtreecommitdiff
path: root/lib/libvmmapi/vmmapi.h
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2014-04-28 22:06:40 +0000
committerNeel Natu <neel@FreeBSD.org>2014-04-28 22:06:40 +0000
commitf0fdcfe247c3927f40b1612388f9a35973d56728 (patch)
tree2a5755c72feac26b7524cca10dc7e5475e332ee8 /lib/libvmmapi/vmmapi.h
parent70b7e330c6da51d24f6719e06bec3c5cee4f8f25 (diff)
downloadsrc-f0fdcfe247c3927f40b1612388f9a35973d56728.tar.gz
src-f0fdcfe247c3927f40b1612388f9a35973d56728.zip
Allow a virtual machine to be forcibly reset or powered off. This is done
by adding an argument to the VM_SUSPEND ioctl that specifies how the virtual machine should be suspended, viz. VM_SUSPEND_RESET or VM_SUSPEND_POWEROFF. The disposition of VM_SUSPEND is also made available to the exit handler via the 'u.suspended' member of 'struct vm_exit'. This capability is exposed via the '--force-reset' and '--force-poweroff' arguments to /usr/sbin/bhyvectl. Discussed with: grehan@
Notes
Notes: svn path=/head/; revision=265062
Diffstat (limited to 'lib/libvmmapi/vmmapi.h')
-rw-r--r--lib/libvmmapi/vmmapi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index ed63fb20259e..2a2ca6b7f9dc 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -61,7 +61,7 @@ int vm_set_register(struct vmctx *ctx, int vcpu, int reg, uint64_t val);
int vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *retval);
int vm_run(struct vmctx *ctx, int vcpu, uint64_t rip,
struct vm_exit *ret_vmexit);
-int vm_suspend(struct vmctx *ctx);
+int vm_suspend(struct vmctx *ctx, enum vm_suspend_how how);
int vm_apicid2vcpu(struct vmctx *ctx, int apicid);
int vm_inject_exception(struct vmctx *ctx, int vcpu, int vec);
int vm_inject_exception2(struct vmctx *ctx, int vcpu, int vec, int errcode);