From 52fac30e3e977464254b44b1dfb4717fb8d2fbde Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Mon, 16 Aug 2021 21:04:25 +0000 Subject: 14024 bhyve vm_suspend should be more flexible Reviewed by: Dan Cross Reviewed by: Luqman Aden Reviewed by: Joshua M. Clulow Approved by: Dan McDonald --- usr/src/lib/libvmmapi/common/vmmapi.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/src/lib/libvmmapi/common/vmmapi.h') diff --git a/usr/src/lib/libvmmapi/common/vmmapi.h b/usr/src/lib/libvmmapi/common/vmmapi.h index e239b70a56..6949ea4e5a 100644 --- a/usr/src/lib/libvmmapi/common/vmmapi.h +++ b/usr/src/lib/libvmmapi/common/vmmapi.h @@ -175,7 +175,11 @@ int vm_get_register_set(struct vmctx *ctx, int vcpu, unsigned int count, int vm_run(struct vmctx *ctx, int vcpu, const struct vm_entry *vm_entry, struct vm_exit *vm_exit); int vm_suspend(struct vmctx *ctx, enum vm_suspend_how how); +#ifndef __FreeBSD__ +int vm_reinit(struct vmctx *ctx, uint64_t); +#else int vm_reinit(struct vmctx *ctx); +#endif int vm_apicid2vcpu(struct vmctx *ctx, int apicid); int vm_inject_exception(struct vmctx *ctx, int vcpu, int vector, int errcode_valid, uint32_t errcode, int restart_instruction); -- cgit v1.2.3