summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-07-23 12:08:43 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-07-23 12:08:43 +0000
commitabc2f340223bdd3112aa273ee9a6a86107bdc598 (patch)
tree0aecbafb54857b1f30d06d371da5905673dd0ecd /sys/dev/pv
parentc841375cdf5c3ca86d91b48113efc6f5e02b2863 (diff)
Add the bhyve id to recognize if we're running under this hypervisor.
OK mlarkin@
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/pvbus.c3
-rw-r--r--sys/dev/pv/pvvar.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pv/pvbus.c b/sys/dev/pv/pvbus.c
index 4c5297470f7..33a1ccb48ee 100644
--- a/sys/dev/pv/pvbus.c
+++ b/sys/dev/pv/pvbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pvbus.c,v 1.2 2015/07/21 17:59:58 reyk Exp $ */
+/* $OpenBSD: pvbus.c,v 1.3 2015/07/23 12:08:42 reyk Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -72,6 +72,7 @@ struct pvbus_type {
{ "Microsoft Hv", "Hyper-V", PVBUS_HYPERV },
{ "VMwareVMware", "VMware", PVBUS_VMWARE },
{ "XenVMMXenVMM", "Xen", PVBUS_XEN },
+ { "bhyve bhyve ", "bhyve", PVBUS_BHYVE },
{ NULL }
};
diff --git a/sys/dev/pv/pvvar.h b/sys/dev/pv/pvvar.h
index efaf78d3102..c5b5777e2ec 100644
--- a/sys/dev/pv/pvvar.h
+++ b/sys/dev/pv/pvvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pvvar.h,v 1.2 2015/07/21 17:59:58 reyk Exp $ */
+/* $OpenBSD: pvvar.h,v 1.3 2015/07/23 12:08:42 reyk Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -39,6 +39,7 @@ extern int has_hv_cpuid;
#define PVBUS_HYPERV 0x02
#define PVBUS_VMWARE 0x04
#define PVBUS_XEN 0x08
+#define PVBUS_BHYVE 0x10
int pvbus_probe(void);