|
root / base / usr / src / compat / bhyve / vm / vm_param.h
vm_param.h C 22 lines 696 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _COMPAT_FREEBSD_VM_VM_PARAM_H_
#define	_COMPAT_FREEBSD_VM_VM_PARAM_H_

#include <machine/vmparam.h>

#define	KERN_SUCCESS		0

/* Not a direct correlation, but the primary necessity is being non-zero */
#define	KERN_RESOURCE_SHORTAGE	ENOMEM

/*
 * The VM_MAXUSER_ADDRESS is used to determine the upper limit size limit of a
 * vmspace, their 'struct as' equivalent.  The compat value is sized well below
 * our native userlimit, even halving the available space below the VA hole.
 * This is to avoid Intel EPT limits and leave room available in the usabe VA
 * range for other mmap tricks.
 */
#define	VM_MAXUSER_ADDRESS	0x00003ffffffffffful


#endif	/* _COMPAT_FREEBSD_VM_VM_PARAM_H_ */