aboutsummaryrefslogtreecommitdiff
path: root/lib/libvmmapi/vmmapi.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-11-05 01:36:33 +0000
committerMark Johnston <markj@FreeBSD.org>2024-11-05 01:40:41 +0000
commit99127fd103624de593c7d1d885387e7d3667d73d (patch)
tree75e7c3f904cca16fea384af135975235e5e22afb /lib/libvmmapi/vmmapi.h
parentebd48f1e52d79ef5d34415d9368c564f3e9bbc08 (diff)
Diffstat (limited to 'lib/libvmmapi/vmmapi.h')
-rw-r--r--lib/libvmmapi/vmmapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libvmmapi/vmmapi.h b/lib/libvmmapi/vmmapi.h
index 0ea1d5824271..440064ad13cb 100644
--- a/lib/libvmmapi/vmmapi.h
+++ b/lib/libvmmapi/vmmapi.h
@@ -117,6 +117,9 @@ int vm_munmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, size_t len);
int vm_create(const char *name);
struct vmctx *vm_open(const char *name);
+#define VMMAPI_OPEN_CREATE 0x01 /* create if the VM does not exist */
+#define VMMAPI_OPEN_REINIT 0x02 /* reinitialize the VM if it exists */
+struct vmctx *vm_openf(const char *name, int flags);
void vm_close(struct vmctx *ctx);
void vm_destroy(struct vmctx *ctx);
int vm_limit_rights(struct vmctx *ctx);