git: ed159d5f8839 - stable/13 - bhyve: Remove VM_MAXCPU from the userspace API/ABI.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 11 May 2022 18:56:12 UTC
The branch stable/13 has been updated by jhb:

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

commit ed159d5f8839742d852cd9a5bb4f3a7699e4ec2f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-03-09 23:39:28 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-11 18:54:15 +0000

    bhyve: Remove VM_MAXCPU from the userspace API/ABI.
    
    Reviewed by:    grehan
    Differential Revision:  https://reviews.freebsd.org/D34494
    
    (cherry picked from commit f1d450ddee669f1e6fef7aefdf8102fc518eef75)
---
 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