summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-12-03 23:32:33 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-12-03 23:32:33 +0000
commit8807054e2779e04ad0d47023071e6de67b318fdc (patch)
tree7146c1df1206c29cc3862dadfeb491231359a2ac /usr.sbin/vmd/vmd.h
parent393c2127ea1d235eff95309344dbbb306b61410c (diff)
Re-add the "load" and "reload" commands to vmctl: Instead of parsing
the configuration in vmctl directly, it now sends a (re)load request to vmd. The reload also resets the existing configuration status - this doesn't do much difference yet but a future change will compare if a specified VM is already running. "load" will allow to add configuration, while "reload" resets the state before loading.
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index 77c18902596..098f251dc51 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.9 2015/12/03 16:11:32 reyk Exp $ */
+/* $OpenBSD: vmd.h,v 1.10 2015/12/03 23:32:32 reyk Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -59,7 +59,9 @@ enum imsg_type {
IMSG_VMDOP_TERMINATE_VM_RESPONSE,
IMSG_VMDOP_GET_INFO_VM_REQUEST,
IMSG_VMDOP_GET_INFO_VM_DATA,
- IMSG_VMDOP_GET_INFO_VM_END_DATA
+ IMSG_VMDOP_GET_INFO_VM_END_DATA,
+ IMSG_VMDOP_LOAD,
+ IMSG_VMDOP_RELOAD
};
struct vmop_start_result {
@@ -96,8 +98,10 @@ struct vmd {
};
/* vmd.c */
+void vmd_reload(int, const char *);
struct vmd_vm *vm_getbyvmid(uint32_t);
void vm_remove(struct vmd_vm *);
+char *get_string(uint8_t *, size_t);
/* vmm.c */
pid_t vmm(struct privsep *, struct privsep_proc *);