Kconfig 12 KB

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