Kconfig 8.1 KB

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