summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2017-11-17 04:44:15 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2017-11-17 04:44:15 +0000
commitd7d1988279293822be290e3f1ab4a3e9042a0a94 (patch)
tree94dfe38276195e945a8f4b1d2b0bc2e6ab72821b /sys/arch/amd64
parent29593120223174d2c2f70f14f088583b951e6d7c (diff)
vmmvar.h changes for upcoming cdrom support in vmd(8).
Diff from carlos cardenas, thanks
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/include/vmmvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/vmmvar.h b/sys/arch/amd64/include/vmmvar.h
index 4847fa3defa..0d7eb4a0deb 100644
--- a/sys/arch/amd64/include/vmmvar.h
+++ b/sys/arch/amd64/include/vmmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmmvar.h,v 1.47 2017/08/20 21:15:32 pd Exp $ */
+/* $OpenBSD: vmmvar.h,v 1.48 2017/11/17 04:44:14 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -26,6 +26,7 @@
#define VMM_MAX_MEM_RANGES 16
#define VMM_MAX_DISKS_PER_VM 4
#define VMM_MAX_PATH_DISK 128
+#define VMM_MAX_PATH_CDROM 128
#define VMM_MAX_NAME_LEN 32
#define VMM_MAX_KERNEL_PATH 128
#define VMM_MAX_VCPUS_PER_VM 64
@@ -419,6 +420,7 @@ struct vm_create_params {
size_t vcp_nnics;
struct vm_mem_range vcp_memranges[VMM_MAX_MEM_RANGES];
char vcp_disks[VMM_MAX_DISKS_PER_VM][VMM_MAX_PATH_DISK];
+ char vcp_cdrom[VMM_MAX_PATH_CDROM];
char vcp_name[VMM_MAX_NAME_LEN];
char vcp_kernel[VMM_MAX_KERNEL_PATH];
uint8_t vcp_macs[VMM_MAX_NICS_PER_VM][6];