xref: /openbmc/linux/arch/x86/xen/Kconfig (revision 82e6fdd6)
1# SPDX-License-Identifier: GPL-2.0
2#
3# This Kconfig describes xen options
4#
5
6config XEN
7	bool "Xen guest support"
8	depends on PARAVIRT
9	select PARAVIRT_CLOCK
10	depends on X86_64 || (X86_32 && X86_PAE)
11	depends on X86_LOCAL_APIC && X86_TSC
12	help
13	  This is the Linux Xen port.  Enabling this will allow the
14	  kernel to boot in a paravirtualized environment under the
15	  Xen hypervisor.
16
17config XEN_PV
18	bool "Xen PV guest support"
19	default y
20	depends on XEN
21	# XEN_PV is not ready to work with 5-level paging.
22	# Changes to hypervisor are also required.
23	depends on !X86_5LEVEL
24	select XEN_HAVE_PVMMU
25	select XEN_HAVE_VPMU
26	help
27	  Support running as a Xen PV guest.
28
29config XEN_PV_SMP
30	def_bool y
31	depends on XEN_PV && SMP
32
33config XEN_DOM0
34	bool "Xen PV Dom0 support"
35	default y
36	depends on XEN_PV && PCI_XEN && SWIOTLB_XEN
37	depends on X86_IO_APIC && ACPI && PCI
38	help
39	  Support running as a Xen PV Dom0 guest.
40
41config XEN_PVHVM
42	bool "Xen PVHVM guest support"
43	default y
44	depends on XEN && PCI && X86_LOCAL_APIC
45	help
46	  Support running as a Xen PVHVM guest.
47
48config XEN_PVHVM_SMP
49	def_bool y
50	depends on XEN_PVHVM && SMP
51
52config XEN_512GB
53	bool "Limit Xen pv-domain memory to 512GB"
54	depends on XEN_PV && X86_64
55	default y
56	help
57	  Limit paravirtualized user domains to 512GB of RAM.
58
59	  The Xen tools and crash dump analysis tools might not support
60	  pv-domains with more than 512 GB of RAM. This option controls the
61	  default setting of the kernel to use only up to 512 GB or more.
62	  It is always possible to change the default via specifying the
63	  boot parameter "xen_512gb_limit".
64
65config XEN_SAVE_RESTORE
66       bool
67       depends on XEN
68       select HIBERNATE_CALLBACKS
69       default y
70
71config XEN_DEBUG_FS
72	bool "Enable Xen debug and tuning parameters in debugfs"
73	depends on XEN && DEBUG_FS
74	default n
75	help
76	  Enable statistics output and various tuning options in debugfs.
77	  Enabling this option may incur a significant performance overhead.
78
79config XEN_PVH
80	bool "Support for running as a PVH guest"
81	depends on XEN && XEN_PVHVM && ACPI
82	# Pre-built page tables are not ready to handle 5-level paging.
83	depends on !X86_5LEVEL
84	def_bool n
85