aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-03-09 23:39:28 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-11 18:54:15 +0000
commited159d5f8839742d852cd9a5bb4f3a7699e4ec2f (patch)
tree7003c1f638ee421d9707d87436954de1a09ae0f1
parent31649c58500230531e848ecc77283097668bfda6 (diff)
downloadsrc-ed159d5f8839742d852cd9a5bb4f3a7699e4ec2f.tar.gz
src-ed159d5f8839742d852cd9a5bb4f3a7699e4ec2f.zip
bhyve: Remove VM_MAXCPU from the userspace API/ABI.
Reviewed by: grehan Differential Revision: https://reviews.freebsd.org/D34494 (cherry picked from commit f1d450ddee669f1e6fef7aefdf8102fc518eef75)
-rw-r--r--sys/amd64/include/vmm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/vmm.h b/sys/amd64/include/vmm.h
index f265237a5303..d7d1509248f1 100644
--- a/sys/amd64/include/vmm.h
+++ b/sys/amd64/include/vmm.h
@@ -469,7 +469,9 @@ void vm_copyout(struct vm *vm, int vcpuid, const void *kaddr,
int vcpu_trace_exceptions(struct vm *vm, int vcpuid);
#endif /* KERNEL */
+#ifdef _KERNEL
#define VM_MAXCPU 16 /* maximum virtual cpus */
+#endif
/*
* Identifiers for optional vmm capabilities