From e83027edbbda961289c2ed185571fb6272b4f756 Mon Sep 17 00:00:00 2001 From: grehan Date: Sun, 17 Aug 2014 00:52:07 +0000 Subject: MFC r266933 Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing it implicitly in vmm.ko. --- lib/libvmmapi/vmmapi.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/libvmmapi/vmmapi.h') diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h index bab41da..0f2e3ae 100644 --- a/lib/libvmmapi/vmmapi.h +++ b/lib/libvmmapi/vmmapi.h @@ -29,6 +29,9 @@ #ifndef _VMMAPI_H_ #define _VMMAPI_H_ +#include +#include + struct iovec; struct vmctx; enum x2apic_state; @@ -125,6 +128,10 @@ void vm_copyout(struct vmctx *ctx, int vcpu, const void *host_src, /* Reset vcpu register state */ int vcpu_reset(struct vmctx *ctx, int vcpu); +int vm_active_cpus(struct vmctx *ctx, cpuset_t *cpus); +int vm_suspended_cpus(struct vmctx *ctx, cpuset_t *cpus); +int vm_activate_cpu(struct vmctx *ctx, int vcpu); + /* * FreeBSD specific APIs */ -- cgit v1.1