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