xref: /illumos-gate/usr/src/compat/bhyve/vm/vm_param.h (revision 9b664393d4fdda96221e6ea9ea95790d3c15be70)
1 #ifndef _COMPAT_FREEBSD_VM_VM_PARAM_H_
2 #define	_COMPAT_FREEBSD_VM_VM_PARAM_H_
3 
4 #include <machine/vmparam.h>
5 
6 #define	KERN_SUCCESS		0
7 
8 /* Not a direct correlation, but the primary necessity is being non-zero */
9 #define	KERN_RESOURCE_SHORTAGE	ENOMEM
10 
11 /*
12  * The VM_MAXUSER_ADDRESS is used to determine the upper limit size limit of a
13  * vmspace, their 'struct as' equivalent.  The compat value is sized well below
14  * our native userlimit, even halving the available space below the VA hole.
15  * This is to avoid Intel EPT limits and leave room available in the usabe VA
16  * range for other mmap tricks.
17  */
18 #define	VM_MAXUSER_ADDRESS	0x00003ffffffffffful
19 
20 
21 #endif	/* _COMPAT_FREEBSD_VM_VM_PARAM_H_ */
22