Kconfig 8.1 KB

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