summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h
index d22b797dc35..57bdb71cd5f 100644
--- a/usr.sbin/vmd/vmd.h
+++ b/usr.sbin/vmd/vmd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmd.h,v 1.59 2017/08/18 07:01:29 mlarkin Exp $ */
+/* $OpenBSD: vmd.h,v 1.60 2017/08/20 21:15:32 pd Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -149,12 +149,21 @@ struct vmop_create_params {
int64_t vmc_gid;
};
+struct vm_dump_header_cpuid {
+ unsigned long code, leaf;
+ unsigned int a, b, c, d;
+};
+
+#define VM_DUMP_HEADER_CPUID_COUNT 5
+
struct vm_dump_header {
uint8_t vmh_signature[12];
#define VM_DUMP_SIGNATURE VMM_HV_SIGNATURE
uint8_t vmh_pad[3];
uint8_t vmh_version;
-#define VM_DUMP_VERSION 1
+#define VM_DUMP_VERSION 2
+ struct vm_dump_header_cpuid
+ vmh_cpuids[VM_DUMP_HEADER_CPUID_COUNT];
} __packed;
struct vmboot_params {