Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. menu "Xen driver support"
  2. depends on XEN
  3. config XEN_BALLOON
  4. bool "Xen memory balloon driver"
  5. default y
  6. help
  7. The balloon driver allows the Xen domain to request more memory from
  8. the system to expand the domain's memory allocation, or alternatively
  9. return unneeded memory to the system.
  10. config XEN_SELFBALLOONING
  11. bool "Dynamically self-balloon kernel memory to target"
  12. depends on XEN && XEN_BALLOON && CLEANCACHE && SWAP && XEN_TMEM
  13. default n
  14. help
  15. Self-ballooning dynamically balloons available kernel memory driven
  16. by the current usage of anonymous memory ("committed AS") and
  17. controlled by various sysfs-settable parameters. Configuring
  18. FRONTSWAP is highly recommended; if it is not configured, self-
  19. ballooning is disabled by default. If FRONTSWAP is configured,
  20. frontswap-selfshrinking is enabled by default but can be disabled
  21. with the 'tmem.selfshrink=0' kernel boot parameter; and self-ballooning
  22. is enabled by default but can be disabled with the 'tmem.selfballooning=0'
  23. kernel boot parameter. Note that systems without a sufficiently
  24. large swap device should not enable self-ballooning.
  25. config XEN_BALLOON_MEMORY_HOTPLUG
  26. bool "Memory hotplug support for Xen balloon driver"
  27. default n
  28. depends on XEN_BALLOON && MEMORY_HOTPLUG
  29. help
  30. Memory hotplug support for Xen balloon driver allows expanding memory
  31. available for the system above limit declared at system startup.
  32. It is very useful on critical systems which require long
  33. run without rebooting.
  34. Memory could be hotplugged in following steps:
  35. 1) dom0: xl mem-max <domU> <maxmem>
  36. where <maxmem> is >= requested memory size,
  37. 2) dom0: xl mem-set <domU> <memory>
  38. where <memory> is requested memory size; alternatively memory
  39. could be added by writing proper value to
  40. /sys/devices/system/xen_memory/xen_memory0/target or
  41. /sys/devices/system/xen_memory/xen_memory0/target_kb on dumU,
  42. 3) domU: for i in /sys/devices/system/memory/memory*/state; do \
  43. [ "`cat "$i"`" = offline ] && echo online > "$i"; done
  44. Memory could be onlined automatically on domU by adding following line to udev rules:
  45. SUBSYSTEM=="memory", ACTION=="add", RUN+="/bin/sh -c '[ -f /sys$devpath/state ] && echo online > /sys$devpath/state'"
  46. In that case step 3 should be omitted.
  47. config XEN_BALLOON_MEMORY_HOTPLUG_LIMIT
  48. int "Hotplugged memory limit (in GiB) for a PV guest"
  49. default 512 if X86_64
  50. default 4 if X86_32
  51. range 0 64 if X86_32
  52. depends on XEN_HAVE_PVMMU
  53. depends on XEN_BALLOON_MEMORY_HOTPLUG
  54. help
  55. Maxmium amount of memory (in GiB) that a PV guest can be
  56. expanded to when using memory hotplug.
  57. A PV guest can have more memory than this limit if is
  58. started with a larger maximum.
  59. This value is used to allocate enough space in internal
  60. tables needed for physical memory administration.
  61. config XEN_SCRUB_PAGES
  62. bool "Scrub pages before returning them to system"
  63. depends on XEN_BALLOON
  64. default y
  65. help
  66. Scrub pages before returning them to the system for reuse by
  67. other domains. This makes sure that any confidential data
  68. is not accidentally visible to other domains. Is it more
  69. secure, but slightly less efficient.
  70. If in doubt, say yes.
  71. config XEN_DEV_EVTCHN
  72. tristate "Xen /dev/xen/evtchn device"
  73. default y
  74. help
  75. The evtchn driver allows a userspace process to trigger event
  76. channels and to receive notification of an event channel
  77. firing.
  78. If in doubt, say yes.
  79. config XEN_BACKEND
  80. bool "Backend driver support"
  81. depends on XEN_DOM0
  82. default y
  83. help
  84. Support for backend device drivers that provide I/O services
  85. to other virtual machines.
  86. config XENFS
  87. tristate "Xen filesystem"
  88. select XEN_PRIVCMD
  89. default y
  90. help
  91. The xen filesystem provides a way for domains to share
  92. information with each other and with the hypervisor.
  93. For example, by reading and writing the "xenbus" file, guests
  94. may pass arbitrary information to the initial domain.
  95. If in doubt, say yes.
  96. config XEN_COMPAT_XENFS
  97. bool "Create compatibility mount point /proc/xen"
  98. depends on XENFS
  99. default y
  100. help
  101. The old xenstore userspace tools expect to find "xenbus"
  102. under /proc/xen, but "xenbus" is now found at the root of the
  103. xenfs filesystem. Selecting this causes the kernel to create
  104. the compatibility mount point /proc/xen if it is running on
  105. a xen platform.
  106. If in doubt, say yes.
  107. config XEN_SYS_HYPERVISOR
  108. bool "Create xen entries under /sys/hypervisor"
  109. depends on SYSFS
  110. select SYS_HYPERVISOR
  111. default y
  112. help
  113. Create entries under /sys/hypervisor describing the Xen
  114. hypervisor environment. When running native or in another
  115. virtual environment, /sys/hypervisor will still be present,
  116. but will have no xen contents.
  117. config XEN_XENBUS_FRONTEND
  118. tristate
  119. config XEN_GNTDEV
  120. tristate "userspace grant access device driver"
  121. depends on XEN
  122. default m
  123. select MMU_NOTIFIER
  124. help
  125. Allows userspace processes to use grants.
  126. config XEN_GRANT_DEV_ALLOC
  127. tristate "User-space grant reference allocator driver"
  128. depends on XEN
  129. default m
  130. help
  131. Allows userspace processes to create pages with access granted
  132. to other domains. This can be used to implement frontend drivers
  133. or as part of an inter-domain shared memory channel.
  134. config SWIOTLB_XEN
  135. def_bool y
  136. select SWIOTLB
  137. config XEN_TMEM
  138. tristate
  139. depends on !ARM && !ARM64
  140. default m if (CLEANCACHE || FRONTSWAP)
  141. help
  142. Shim to interface in-kernel Transcendent Memory hooks
  143. (e.g. cleancache and frontswap) to Xen tmem hypercalls.
  144. config XEN_PCIDEV_BACKEND
  145. tristate "Xen PCI-device backend driver"
  146. depends on PCI && X86 && XEN
  147. depends on XEN_BACKEND
  148. default m
  149. help
  150. The PCI device backend driver allows the kernel to export arbitrary
  151. PCI devices to other guests. If you select this to be a module, you
  152. will need to make sure no other driver has bound to the device(s)
  153. you want to make visible to other guests.
  154. The parameter "passthrough" allows you specify how you want the PCI
  155. devices to appear in the guest. You can choose the default (0) where
  156. PCI topology starts at 00.00.0, or (1) for passthrough if you want
  157. the PCI devices topology appear the same as in the host.
  158. The "hide" parameter (only applicable if backend driver is compiled
  159. into the kernel) allows you to bind the PCI devices to this module
  160. from the default device drivers. The argument is the list of PCI BDFs:
  161. xen-pciback.hide=(03:00.0)(04:00.0)
  162. If in doubt, say m.
  163. config XEN_SCSI_BACKEND
  164. tristate "XEN SCSI backend driver"
  165. depends on XEN && XEN_BACKEND && TARGET_CORE
  166. help
  167. The SCSI backend driver allows the kernel to export its SCSI Devices
  168. to other guests via a high-performance shared-memory interface.
  169. Only needed for systems running as XEN driver domains (e.g. Dom0) and
  170. if guests need generic access to SCSI devices.
  171. config XEN_PRIVCMD
  172. tristate
  173. depends on XEN
  174. default m
  175. config XEN_STUB
  176. bool "Xen stub drivers"
  177. depends on XEN && X86_64 && BROKEN
  178. default n
  179. help
  180. Allow kernel to install stub drivers, to reserve space for Xen drivers,
  181. i.e. memory hotplug and cpu hotplug, and to block native drivers loaded,
  182. so that real Xen drivers can be modular.
  183. To enable Xen features like cpu and memory hotplug, select Y here.
  184. config XEN_ACPI_HOTPLUG_MEMORY
  185. tristate "Xen ACPI memory hotplug"
  186. depends on XEN_DOM0 && XEN_STUB && ACPI
  187. default n
  188. help
  189. This is Xen ACPI memory hotplug.
  190. Currently Xen only support ACPI memory hot-add. If you want
  191. to hot-add memory at runtime (the hot-added memory cannot be
  192. removed until machine stop), select Y/M here, otherwise select N.
  193. config XEN_ACPI_HOTPLUG_CPU
  194. tristate "Xen ACPI cpu hotplug"
  195. depends on XEN_DOM0 && XEN_STUB && ACPI
  196. select ACPI_CONTAINER
  197. default n
  198. help
  199. Xen ACPI cpu enumerating and hotplugging
  200. For hotplugging, currently Xen only support ACPI cpu hotadd.
  201. If you want to hotadd cpu at runtime (the hotadded cpu cannot
  202. be removed until machine stop), select Y/M here.
  203. config XEN_ACPI_PROCESSOR
  204. tristate "Xen ACPI processor"
  205. depends on XEN && XEN_DOM0 && X86 && ACPI_PROCESSOR && CPU_FREQ
  206. default m
  207. help
  208. This ACPI processor uploads Power Management information to the Xen
  209. hypervisor.
  210. To do that the driver parses the Power Management data and uploads
  211. said information to the Xen hypervisor. Then the Xen hypervisor can
  212. select the proper Cx and Pxx states. It also registers itself as the
  213. SMM so that other drivers (such as ACPI cpufreq scaling driver) will
  214. not load.
  215. To compile this driver as a module, choose M here: the module will be
  216. called xen_acpi_processor If you do not know what to choose, select
  217. M here. If the CPUFREQ drivers are built in, select Y here.
  218. config XEN_MCE_LOG
  219. bool "Xen platform mcelog"
  220. depends on XEN_DOM0 && X86_64 && X86_MCE
  221. default n
  222. help
  223. Allow kernel fetching MCE error from Xen platform and
  224. converting it into Linux mcelog format for mcelog tools
  225. config XEN_HAVE_PVMMU
  226. bool
  227. config XEN_EFI
  228. def_bool y
  229. depends on X86_64 && EFI
  230. config XEN_AUTO_XLATE
  231. def_bool y
  232. depends on ARM || ARM64 || XEN_PVHVM
  233. help
  234. Support for auto-translated physmap guests.
  235. config XEN_ACPI
  236. def_bool y
  237. depends on X86 && ACPI
  238. config XEN_SYMS
  239. bool "Xen symbols"
  240. depends on X86 && XEN_DOM0 && XENFS
  241. default y if KALLSYMS
  242. help
  243. Exports hypervisor symbols (along with their types and addresses) via
  244. /proc/xen/xensyms file, similar to /proc/kallsyms
  245. config XEN_HAVE_VPMU
  246. bool
  247. endmenu