Kconfig 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. #
  2. # KVM configuration
  3. #
  4. source "virt/kvm/Kconfig"
  5. menuconfig VIRTUALIZATION
  6. bool "Virtualization"
  7. ---help---
  8. Say Y here to get to see options for using your Linux host to run
  9. other operating systems inside virtual machines (guests).
  10. This option alone does not add any kernel code.
  11. If you say N, all options in this submenu will be skipped and
  12. disabled.
  13. if VIRTUALIZATION
  14. config KVM
  15. bool
  16. select PREEMPT_NOTIFIERS
  17. select ANON_INODES
  18. select HAVE_KVM_EVENTFD
  19. select SRCU
  20. select KVM_VFIO
  21. select IRQ_BYPASS_MANAGER
  22. select HAVE_KVM_IRQ_BYPASS
  23. config KVM_BOOK3S_HANDLER
  24. bool
  25. config KVM_BOOK3S_32_HANDLER
  26. bool
  27. select KVM_BOOK3S_HANDLER
  28. select KVM_MMIO
  29. config KVM_BOOK3S_64_HANDLER
  30. bool
  31. select KVM_BOOK3S_HANDLER
  32. config KVM_BOOK3S_PR_POSSIBLE
  33. bool
  34. select KVM_MMIO
  35. select MMU_NOTIFIER
  36. config KVM_BOOK3S_HV_POSSIBLE
  37. bool
  38. config KVM_BOOK3S_32
  39. tristate "KVM support for PowerPC book3s_32 processors"
  40. depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT
  41. select KVM
  42. select KVM_BOOK3S_32_HANDLER
  43. select KVM_BOOK3S_PR_POSSIBLE
  44. ---help---
  45. Support running unmodified book3s_32 guest kernels
  46. in virtual machines on book3s_32 host processors.
  47. This module provides access to the hardware capabilities through
  48. a character device node named /dev/kvm.
  49. If unsure, say N.
  50. config KVM_BOOK3S_64
  51. tristate "KVM support for PowerPC book3s_64 processors"
  52. depends on PPC_BOOK3S_64
  53. select KVM_BOOK3S_64_HANDLER
  54. select KVM
  55. select KVM_BOOK3S_PR_POSSIBLE if !KVM_BOOK3S_HV_POSSIBLE
  56. ---help---
  57. Support running unmodified book3s_64 and book3s_32 guest kernels
  58. in virtual machines on book3s_64 host processors.
  59. This module provides access to the hardware capabilities through
  60. a character device node named /dev/kvm.
  61. If unsure, say N.
  62. config KVM_BOOK3S_64_HV
  63. tristate "KVM for POWER7 and later using hypervisor mode in host"
  64. depends on KVM_BOOK3S_64 && PPC_POWERNV
  65. select KVM_BOOK3S_HV_POSSIBLE
  66. select MMU_NOTIFIER
  67. select CMA
  68. ---help---
  69. Support running unmodified book3s_64 guest kernels in
  70. virtual machines on POWER7 and newer processors that have
  71. hypervisor mode available to the host.
  72. If you say Y here, KVM will use the hardware virtualization
  73. facilities of POWER7 (and later) processors, meaning that
  74. guest operating systems will run at full hardware speed
  75. using supervisor and user modes. However, this also means
  76. that KVM is not usable under PowerVM (pHyp), is only usable
  77. on POWER7 or later processors, and cannot emulate a
  78. different processor from the host processor.
  79. If unsure, say N.
  80. config KVM_BOOK3S_64_PR
  81. tristate "KVM support without using hypervisor mode in host"
  82. depends on KVM_BOOK3S_64
  83. select KVM_BOOK3S_PR_POSSIBLE
  84. ---help---
  85. Support running guest kernels in virtual machines on processors
  86. without using hypervisor mode in the host, by running the
  87. guest in user mode (problem state) and emulating all
  88. privileged instructions and registers.
  89. This is not as fast as using hypervisor mode, but works on
  90. machines where hypervisor mode is not available or not usable,
  91. and can emulate processors that are different from the host
  92. processor, including emulating 32-bit processors on a 64-bit
  93. host.
  94. config KVM_BOOK3S_HV_EXIT_TIMING
  95. bool "Detailed timing for hypervisor real-mode code"
  96. depends on KVM_BOOK3S_HV_POSSIBLE && DEBUG_FS
  97. ---help---
  98. Calculate time taken for each vcpu in the real-mode guest entry,
  99. exit, and interrupt handling code, plus time spent in the guest
  100. and in nap mode due to idle (cede) while other threads are still
  101. in the guest. The total, minimum and maximum times in nanoseconds
  102. together with the number of executions are reported in debugfs in
  103. kvm/vm#/vcpu#/timings. The overhead is of the order of 30 - 40
  104. ns per exit on POWER8.
  105. If unsure, say N.
  106. config KVM_BOOKE_HV
  107. bool
  108. config KVM_EXIT_TIMING
  109. bool "Detailed exit timing"
  110. depends on KVM_E500V2 || KVM_E500MC
  111. ---help---
  112. Calculate elapsed time for every exit/enter cycle. A per-vcpu
  113. report is available in debugfs kvm/vm#_vcpu#_timing.
  114. The overhead is relatively small, however it is not recommended for
  115. production environments.
  116. If unsure, say N.
  117. config KVM_E500V2
  118. bool "KVM support for PowerPC E500v2 processors"
  119. depends on E500 && !PPC_E500MC
  120. select KVM
  121. select KVM_MMIO
  122. select MMU_NOTIFIER
  123. ---help---
  124. Support running unmodified E500 guest kernels in virtual machines on
  125. E500v2 host processors.
  126. This module provides access to the hardware capabilities through
  127. a character device node named /dev/kvm.
  128. If unsure, say N.
  129. config KVM_E500MC
  130. bool "KVM support for PowerPC E500MC/E5500/E6500 processors"
  131. depends on PPC_E500MC
  132. select KVM
  133. select KVM_MMIO
  134. select KVM_BOOKE_HV
  135. select MMU_NOTIFIER
  136. ---help---
  137. Support running unmodified E500MC/E5500/E6500 guest kernels in
  138. virtual machines on E500MC/E5500/E6500 host processors.
  139. This module provides access to the hardware capabilities through
  140. a character device node named /dev/kvm.
  141. If unsure, say N.
  142. config KVM_MPIC
  143. bool "KVM in-kernel MPIC emulation"
  144. depends on KVM && E500
  145. select HAVE_KVM_IRQCHIP
  146. select HAVE_KVM_IRQFD
  147. select HAVE_KVM_IRQ_ROUTING
  148. select HAVE_KVM_MSI
  149. help
  150. Enable support for emulating MPIC devices inside the
  151. host kernel, rather than relying on userspace to emulate.
  152. Currently, support is limited to certain versions of
  153. Freescale's MPIC implementation.
  154. config KVM_XICS
  155. bool "KVM in-kernel XICS emulation"
  156. depends on KVM_BOOK3S_64 && !KVM_MPIC
  157. select HAVE_KVM_IRQCHIP
  158. select HAVE_KVM_IRQFD
  159. default y
  160. ---help---
  161. Include support for the XICS (eXternal Interrupt Controller
  162. Specification) interrupt controller architecture used on
  163. IBM POWER (pSeries) servers.
  164. source drivers/vhost/Kconfig
  165. endif # VIRTUALIZATION