summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorDan McDonald <danmcd@mnx.io>2022-05-13 11:55:18 -0400
committerDan McDonald <danmcd@mnx.io>2022-05-13 11:55:18 -0400
commit402559e299331588f209b3a9693e3bcd6a83d22c (patch)
treedf8a051adcd1a783e5d6c0e6dfe579162679fab2 /usr
parent37dd26ec6ee052126fde7d953731ec587312f02a (diff)
downloadillumos-joyent-402559e299331588f209b3a9693e3bcd6a83d22c.tar.gz
14578 bhyve upstream sync 2022 March (fix BHYVE zone code)
Diffstat (limited to 'usr')
-rw-r--r--usr/src/lib/brand/bhyve/zone/bhhwcompat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/lib/brand/bhyve/zone/bhhwcompat.c b/usr/src/lib/brand/bhyve/zone/bhhwcompat.c
index d13df8cd42..a09719849e 100644
--- a/usr/src/lib/brand/bhyve/zone/bhhwcompat.c
+++ b/usr/src/lib/brand/bhyve/zone/bhhwcompat.c
@@ -62,6 +62,11 @@ main(int argc, char *argv[])
}
}
+/*
+ * Uggh, recent changes to sys/vmm.h exclude this from userland. Keep in synch.
+ * See illumos#14691 for the correct answer to this problem.
+ */
+#define VM_MAXCPU 32
if (max_cpu) {
(void) printf("%d\n", VM_MAXCPU);
}