summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-13 22:41:34 +0000
committerderaadt <deraadt@openbsd.org>2015-11-13 22:41:34 +0000
commit6f2a941f8678c5e57da6ec5a57ac0ca05741cdc2 (patch)
tree45aa3d949167d8002a8458394c651ab2af12b025
parentNo need to supplement usage() with extra messages about -b needing -i, or (diff)
downloadwireguard-openbsd-6f2a941f8678c5e57da6ec5a57ac0ca05741cdc2.tar.xz
wireguard-openbsd-6f2a941f8678c5e57da6ec5a57ac0ca05741cdc2.zip
vmm is i386 only for now
-rw-r--r--sys/dev/pv/pvbus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pv/pvbus.c b/sys/dev/pv/pvbus.c
index 358c55ef9d6..9ee780e834a 100644
--- a/sys/dev/pv/pvbus.c
+++ b/sys/dev/pv/pvbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pvbus.c,v 1.6 2015/11/13 07:52:20 mlarkin Exp $ */
+/* $OpenBSD: pvbus.c,v 1.7 2015/11/13 22:41:34 deraadt Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -31,7 +31,9 @@
#include <sys/socket.h>
#include <machine/specialreg.h>
+#ifdef __amd64__
#include <machine/vmmvar.h>
+#endif
#include <dev/rndvar.h>
@@ -78,7 +80,9 @@ struct pvbus_type {
{ "VMwareVMware", "VMware", NULL },
{ "XenVMMXenVMM", "Xen", pvbus_xen },
{ "bhyve bhyve ", "bhyve", NULL },
+#ifdef __amd64__
{ VMM_HV_SIGNATURE, "OpenBSD", NULL },
+#endif
};
int