summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi/vmmapi.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2014-08-17 00:52:07 +0000
committergrehan <grehan@FreeBSD.org>2014-08-17 00:52:07 +0000
commite83027edbbda961289c2ed185571fb6272b4f756 (patch)
tree3b7195b83b06e50b75be8a3b3f33487a98019aa8 /lib/libvmmapi/vmmapi.h
parentc64921fe8da3adcc50639ba2f5a0a66c6978c44e (diff)
downloadFreeBSD-src-e83027edbbda961289c2ed185571fb6272b4f756.zip
FreeBSD-src-e83027edbbda961289c2ed185571fb6272b4f756.tar.gz
MFC r266933
Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing it implicitly in vmm.ko.
Diffstat (limited to 'lib/libvmmapi/vmmapi.h')
-rw-r--r--lib/libvmmapi/vmmapi.h7
1 files changed, 7 insertions, 0 deletions
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 <sys/param.h>
+#include <sys/cpuset.h>
+
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
*/
OpenPOWER on IntegriCloud