xref: /netbsd-src/sys/arch/xen/include/amd64/vmparam.h (revision 77901f27b5c1718b6fffc02836239da3b0093093)
1*77901f27Sriastradh /*	$NetBSD: vmparam.h,v 1.4 2023/08/25 08:05:18 riastradh Exp $	*/
24e541343Sbouyer 
34e541343Sbouyer /*-
44e541343Sbouyer  * Copyright (c)2005 YAMAMOTO Takashi,
54e541343Sbouyer  * All rights reserved.
64e541343Sbouyer  *
74e541343Sbouyer  * Redistribution and use in source and binary forms, with or without
84e541343Sbouyer  * modification, are permitted provided that the following conditions
94e541343Sbouyer  * are met:
104e541343Sbouyer  * 1. Redistributions of source code must retain the above copyright
114e541343Sbouyer  *    notice, this list of conditions and the following disclaimer.
124e541343Sbouyer  * 2. Redistributions in binary form must reproduce the above copyright
134e541343Sbouyer  *    notice, this list of conditions and the following disclaimer in the
144e541343Sbouyer  *    documentation and/or other materials provided with the distribution.
154e541343Sbouyer  *
164e541343Sbouyer  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
174e541343Sbouyer  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
184e541343Sbouyer  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
194e541343Sbouyer  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
204e541343Sbouyer  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
214e541343Sbouyer  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
224e541343Sbouyer  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
234e541343Sbouyer  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
244e541343Sbouyer  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
254e541343Sbouyer  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
264e541343Sbouyer  * SUCH DAMAGE.
274e541343Sbouyer  */
284e541343Sbouyer 
294e541343Sbouyer #if !defined(_VMPARAM_H_)
304e541343Sbouyer #include <amd64/vmparam.h>
314e541343Sbouyer 
32f3ad8a34Scherry #ifdef XENPV
334e541343Sbouyer #undef VM_PHYSSEG_MAX
344e541343Sbouyer #define	VM_PHYSSEG_MAX	1
354e541343Sbouyer 
364e541343Sbouyer #undef VM_NFREELIST
374e541343Sbouyer #undef VM_FREELIST_FIRST16
38*77901f27Sriastradh #undef VM_FREELIST_FIRST1T
39*77901f27Sriastradh #undef VM_FREELIST_FIRST64G
40*77901f27Sriastradh #undef VM_FREELIST_FIRST4G
41*77901f27Sriastradh #undef VM_FREELIST_FIRST1G
42*77901f27Sriastradh #undef VM_FREELIST_FIRST16
434e541343Sbouyer #define	VM_NFREELIST	1
44f3ad8a34Scherry #endif /* XENPV */
454e541343Sbouyer #endif /* _VMPARAM_H_ */
46f3ad8a34Scherry 
47