The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f1d450ddee669f1e6fef7aefdf8102fc518eef75

commit f1d450ddee669f1e6fef7aefdf8102fc518eef75
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-03-09 23:39:28 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2022-03-09 23:39:28 +0000

    bhyve: Remove VM_MAXCPU from the userspace API/ABI.
    
    Reviewed by:    grehan
    Differential Revision:  https://reviews.freebsd.org/D34494
---
 sys/amd64/include/vmm.h | 2 ++
 1 file changed, 2 insertions(+)

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

Reply via email to