xref: /openbmc/linux/arch/x86/xen/Kconfig (revision 6214f5c9)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
29702785aSThomas Gleixner#
39702785aSThomas Gleixner# This Kconfig describes xen options
49702785aSThomas Gleixner#
59702785aSThomas Gleixner
69702785aSThomas Gleixnerconfig XEN
7d3d1c4bdSRusty Russell	bool "Xen guest support"
86276a074SBorislav Petkov	depends on PARAVIRT
91c7b67f7SGerd Hoffmann	select PARAVIRT_CLOCK
10ecca2502SZhao Yakui	select X86_HV_CALLBACK_VECTOR
11c5f9ee3dSH. Peter Anvin	depends on X86_64 || (X86_32 && X86_PAE)
12*6214f5c9SArnd Bergmann	depends on X86_64 || (X86_GENERIC || MPENTIUM4 || MCORE2 || MATOM || MK8)
1387ffd2b9SDavid Vrabel	depends on X86_LOCAL_APIC && X86_TSC
149702785aSThomas Gleixner	help
159702785aSThomas Gleixner	  This is the Linux Xen port.  Enabling this will allow the
169702785aSThomas Gleixner	  kernel to boot in a paravirtualized environment under the
179702785aSThomas Gleixner	  Xen hypervisor.
188006ec3eSJeremy Fitzhardinge
195e57f1d6SVitaly Kuznetsovconfig XEN_PV
205e57f1d6SVitaly Kuznetsov	bool "Xen PV guest support"
215e57f1d6SVitaly Kuznetsov	default y
225e57f1d6SVitaly Kuznetsov	depends on XEN
23a13f2ef1SJuergen Gross	depends on X86_64
24c00a280aSJuergen Gross	select PARAVIRT_XXL
255e57f1d6SVitaly Kuznetsov	select XEN_HAVE_PVMMU
2650a1062dSVitaly Kuznetsov	select XEN_HAVE_VPMU
272aef6f30SSean Christopherson	select GUEST_PERF_EVENTS
285e57f1d6SVitaly Kuznetsov	help
295e57f1d6SVitaly Kuznetsov	  Support running as a Xen PV guest.
305e57f1d6SVitaly Kuznetsov
31bfda93aeSJason Andryukconfig XEN_512GB
32bfda93aeSJason Andryuk	bool "Limit Xen pv-domain memory to 512GB"
336190c0ccSJason Andryuk	depends on XEN_PV
34bfda93aeSJason Andryuk	default y
35bfda93aeSJason Andryuk	help
36bfda93aeSJason Andryuk	  Limit paravirtualized user domains to 512GB of RAM.
37bfda93aeSJason Andryuk
38bfda93aeSJason Andryuk	  The Xen tools and crash dump analysis tools might not support
39bfda93aeSJason Andryuk	  pv-domains with more than 512 GB of RAM. This option controls the
40bfda93aeSJason Andryuk	  default setting of the kernel to use only up to 512 GB or more.
41bfda93aeSJason Andryuk	  It is always possible to change the default via specifying the
42bfda93aeSJason Andryuk	  boot parameter "xen_512gb_limit".
43bfda93aeSJason Andryuk
4433af7469SVitaly Kuznetsovconfig XEN_PV_SMP
4533af7469SVitaly Kuznetsov	def_bool y
4633af7469SVitaly Kuznetsov	depends on XEN_PV && SMP
4733af7469SVitaly Kuznetsov
48cae7d81aSJan Beulichconfig XEN_PV_DOM0
49cae7d81aSJan Beulich	def_bool y
50cae7d81aSJan Beulich	depends on XEN_PV && XEN_DOM0
516b0661a5SStefano Stabellini
52ca65f9fcSStefano Stabelliniconfig XEN_PVHVM
5334aff145SJason Andryuk	def_bool y
5434aff145SJason Andryuk	depends on XEN && X86_LOCAL_APIC
55ca65f9fcSStefano Stabellini
56a52482d9SVitaly Kuznetsovconfig XEN_PVHVM_SMP
57a52482d9SVitaly Kuznetsov	def_bool y
58a52482d9SVitaly Kuznetsov	depends on XEN_PVHVM && SMP
59a52482d9SVitaly Kuznetsov
6034aff145SJason Andryukconfig XEN_PVHVM_GUEST
6134aff145SJason Andryuk	bool "Xen PVHVM guest support"
6234aff145SJason Andryuk	default y
6334aff145SJason Andryuk	depends on XEN_PVHVM && PCI
6434aff145SJason Andryuk	help
6534aff145SJason Andryuk	  Support running as a Xen PVHVM guest.
6634aff145SJason Andryuk
6793a0886eSJeremy Fitzhardingeconfig XEN_SAVE_RESTORE
6893a0886eSJeremy Fitzhardinge	bool
691eb208aeSRafael J. Wysocki	depends on XEN
70d419e4c0SShriram Rajagopalan	select HIBERNATE_CALLBACKS
7193a0886eSJeremy Fitzhardinge	default y
72994025caSJeremy Fitzhardinge
73994025caSJeremy Fitzhardingeconfig XEN_DEBUG_FS
74994025caSJeremy Fitzhardinge	bool "Enable Xen debug and tuning parameters in debugfs"
75994025caSJeremy Fitzhardinge	depends on XEN && DEBUG_FS
76994025caSJeremy Fitzhardinge	help
77994025caSJeremy Fitzhardinge	  Enable statistics output and various tuning options in debugfs.
78994025caSJeremy Fitzhardinge	  Enabling this option may incur a significant performance overhead.
7980df4649SMaxim Uvarov
80ddc416cbSMukesh Rathorconfig XEN_PVH
8134aff145SJason Andryuk	bool "Xen PVH guest support"
827243b933SBoris Ostrovsky	depends on XEN && XEN_PVHVM && ACPI
837733607fSMaran Wilson	select PVH
84ddc416cbSMukesh Rathor	def_bool n
8534aff145SJason Andryuk	help
8634aff145SJason Andryuk	  Support for running as a Xen PVH guest.
87cae7d81aSJan Beulich
88cae7d81aSJan Beulichconfig XEN_DOM0
89cae7d81aSJan Beulich	bool "Xen Dom0 support"
90cae7d81aSJan Beulich	default XEN_PV
91cae7d81aSJan Beulich	depends on (XEN_PV && SWIOTLB_XEN) || (XEN_PVH && X86_64)
92cae7d81aSJan Beulich	depends on X86_IO_APIC && ACPI && PCI
93cae7d81aSJan Beulich	select X86_X2APIC if XEN_PVH && X86_64
94cae7d81aSJan Beulich	help
95cae7d81aSJan Beulich	  Support running as a Xen Dom0 guest.
963fac3734SJuergen Gross
973fac3734SJuergen Grossconfig XEN_PV_MSR_SAFE
983fac3734SJuergen Gross	bool "Always use safe MSR accesses in PV guests"
993fac3734SJuergen Gross	default y
1003fac3734SJuergen Gross	depends on XEN_PV
1013fac3734SJuergen Gross	help
1023fac3734SJuergen Gross	  Use safe (not faulting) MSR access functions even if the MSR access
1033fac3734SJuergen Gross	  should not fault anyway.
1043fac3734SJuergen Gross	  The default can be changed by using the "xen_msr_safe" boot parameter.
105