xref: /openbmc/linux/arch/x86/xen/Kconfig (revision f21e49be)
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	select X86_HV_CALLBACK_VECTOR
11	depends on X86_64 || (X86_32 && X86_PAE)
12	depends on X86_LOCAL_APIC && X86_TSC
13	help
14	  This is the Linux Xen port.  Enabling this will allow the
15	  kernel to boot in a paravirtualized environment under the
16	  Xen hypervisor.
17
18config XEN_PV
19	bool "Xen PV guest support"
20	default y
21	depends on XEN
22	depends on X86_64
23	select PARAVIRT_XXL
24	select XEN_HAVE_PVMMU
25	select XEN_HAVE_VPMU
26	help
27	  Support running as a Xen PV guest.
28
29config XEN_512GB
30	bool "Limit Xen pv-domain memory to 512GB"
31	depends on XEN_PV
32	default y
33	help
34	  Limit paravirtualized user domains to 512GB of RAM.
35
36	  The Xen tools and crash dump analysis tools might not support
37	  pv-domains with more than 512 GB of RAM. This option controls the
38	  default setting of the kernel to use only up to 512 GB or more.
39	  It is always possible to change the default via specifying the
40	  boot parameter "xen_512gb_limit".
41
42config XEN_PV_SMP
43	def_bool y
44	depends on XEN_PV && SMP
45
46config XEN_PV_DOM0
47	def_bool y
48	depends on XEN_PV && XEN_DOM0
49
50config XEN_PVHVM
51	def_bool y
52	depends on XEN && X86_LOCAL_APIC
53
54config XEN_PVHVM_SMP
55	def_bool y
56	depends on XEN_PVHVM && SMP
57
58config XEN_PVHVM_GUEST
59	bool "Xen PVHVM guest support"
60	default y
61	depends on XEN_PVHVM && PCI
62	help
63	  Support running as a Xen PVHVM guest.
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	help
75	  Enable statistics output and various tuning options in debugfs.
76	  Enabling this option may incur a significant performance overhead.
77
78config XEN_PVH
79	bool "Xen PVH guest support"
80	depends on XEN && XEN_PVHVM && ACPI
81	select PVH
82	def_bool n
83	help
84	  Support for running as a Xen PVH guest.
85
86config XEN_DOM0
87	bool "Xen Dom0 support"
88	default XEN_PV
89	depends on (XEN_PV && SWIOTLB_XEN) || (XEN_PVH && X86_64)
90	depends on X86_IO_APIC && ACPI && PCI
91	select X86_X2APIC if XEN_PVH && X86_64
92	help
93	  Support running as a Xen Dom0 guest.
94