summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-12-14 21:17:26 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-12-14 21:17:26 +0000
commit431456d9562b44beeb2bb8aed8dcb8e63f40a34a (patch)
treea9f83290b6dcdd2c453f0f4afad4256b6bbd612f /usr.sbin/vmd/vmd.h
parentc09471df0ae18ca50af982c5fdda5f9c43f55220 (diff)
Allow to start disabled and pre-configured VMs by name, "vmctl start foo".
With testing from Jon Bernard OK mlarkin@
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index 5053db79b5b..499f64388c8 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.39 2016/12/14 06:59:12 reyk Exp $ */
+/* $OpenBSD: vmd.h,v 1.40 2016/12/14 21:17:25 reyk Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -100,6 +100,11 @@ struct vmop_ifreq {
struct vmop_create_params {
struct vm_create_params vmc_params;
+ unsigned int vmc_flags;
+#define VMOP_CREATE_KERNEL 0x01
+#define VMOP_CREATE_MEMORY 0x02
+#define VMOP_CREATE_NETWORK 0x04
+#define VMOP_CREATE_DISK 0x08
/* userland-only part of the create params */
unsigned int vmc_ifflags[VMM_MAX_NICS_PER_VM];