Kconfig 12 KB

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