diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-07-23 12:08:43 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-07-23 12:08:43 +0000 |
commit | abc2f340223bdd3112aa273ee9a6a86107bdc598 (patch) | |
tree | 0aecbafb54857b1f30d06d371da5905673dd0ecd /sys/dev/pv | |
parent | c841375cdf5c3ca86d91b48113efc6f5e02b2863 (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.c | 3 | ||||
-rw-r--r-- | sys/dev/pv/pvvar.h | 3 |
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); |