Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. config KVM_BOOK3S_HANDLER
  20. bool
  21. config KVM_BOOK3S_32_HANDLER
  22. bool
  23. select KVM_BOOK3S_HANDLER
  24. select KVM_MMIO
  25. config KVM_BOOK3S_64_HANDLER
  26. bool
  27. select KVM_BOOK3S_HANDLER
  28. config KVM_BOOK3S_PR_POSSIBLE
  29. bool
  30. select KVM_MMIO
  31. select MMU_NOTIFIER
  32. config KVM_BOOK3S_HV_POSSIBLE
  33. bool
  34. config KVM_BOOK3S_32
  35. tristate "KVM support for PowerPC book3s_32 processors"
  36. depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT
  37. select KVM
  38. select KVM_BOOK3S_32_HANDLER
  39. select KVM_BOOK3S_PR_POSSIBLE
  40. ---help---
  41. Support running unmodified book3s_32 guest kernels
  42. in virtual machines on book3s_32 host processors.
  43. This module provides access to the hardware capabilities through
  44. a character device node named /dev/kvm.
  45. If unsure, say N.
  46. config KVM_BOOK3S_64
  47. tristate "KVM support for PowerPC book3s_64 processors"
  48. depends on PPC_BOOK3S_64
  49. select KVM_BOOK3S_64_HANDLER
  50. select KVM
  51. select KVM_BOOK3S_PR_POSSIBLE if !KVM_BOOK3S_HV_POSSIBLE
  52. ---help---
  53. Support running unmodified book3s_64 and book3s_32 guest kernels
  54. in virtual machines on book3s_64 host processors.
  55. This module provides access to the hardware capabilities through
  56. a character device node named /dev/kvm.
  57. If unsure, say N.
  58. config KVM_BOOK3S_64_HV
  59. bool "KVM support for POWER7 and PPC970 using hypervisor mode in host"
  60. depends on KVM_BOOK3S_64
  61. select KVM_BOOK3S_HV_POSSIBLE
  62. select MMU_NOTIFIER
  63. select CMA
  64. ---help---
  65. Support running unmodified book3s_64 guest kernels in
  66. virtual machines on POWER7 and PPC970 processors that have
  67. hypervisor mode available to the host.
  68. If you say Y here, KVM will use the hardware virtualization
  69. facilities of POWER7 (and later) processors, meaning that
  70. guest operating systems will run at full hardware speed
  71. using supervisor and user modes. However, this also means
  72. that KVM is not usable under PowerVM (pHyp), is only usable
  73. on POWER7 (or later) processors and PPC970-family processors,
  74. and cannot emulate a different processor from the host processor.
  75. If unsure, say N.
  76. config KVM_BOOK3S_64_PR
  77. bool "KVM support without using hypervisor mode in host"
  78. depends on KVM_BOOK3S_64 && !KVM_BOOK3S_64_HV
  79. select KVM_BOOK3S_PR_POSSIBLE
  80. ---help---
  81. Support running guest kernels in virtual machines on processors
  82. without using hypervisor mode in the host, by running the
  83. guest in user mode (problem state) and emulating all
  84. privileged instructions and registers.
  85. This is not as fast as using hypervisor mode, but works on
  86. machines where hypervisor mode is not available or not usable,
  87. and can emulate processors that are different from the host
  88. processor, including emulating 32-bit processors on a 64-bit
  89. host.
  90. config KVM_BOOKE_HV
  91. bool
  92. config KVM_440
  93. bool "KVM support for PowerPC 440 processors"
  94. depends on 44x
  95. select KVM
  96. select KVM_MMIO
  97. ---help---
  98. Support running unmodified 440 guest kernels in virtual machines on
  99. 440 host processors.
  100. This module provides access to the hardware capabilities through
  101. a character device node named /dev/kvm.
  102. If unsure, say N.
  103. config KVM_EXIT_TIMING
  104. bool "Detailed exit timing"
  105. depends on KVM_440 || KVM_E500V2 || KVM_E500MC
  106. ---help---
  107. Calculate elapsed time for every exit/enter cycle. A per-vcpu
  108. report is available in debugfs kvm/vm#_vcpu#_timing.
  109. The overhead is relatively small, however it is not recommended for
  110. production environments.
  111. If unsure, say N.
  112. config KVM_E500V2
  113. bool "KVM support for PowerPC E500v2 processors"
  114. depends on E500 && !PPC_E500MC
  115. select KVM
  116. select KVM_MMIO
  117. select MMU_NOTIFIER
  118. ---help---
  119. Support running unmodified E500 guest kernels in virtual machines on
  120. E500v2 host processors.
  121. This module provides access to the hardware capabilities through
  122. a character device node named /dev/kvm.
  123. If unsure, say N.
  124. config KVM_E500MC
  125. bool "KVM support for PowerPC E500MC/E5500/E6500 processors"
  126. depends on PPC_E500MC
  127. select KVM
  128. select KVM_MMIO
  129. select KVM_BOOKE_HV
  130. select MMU_NOTIFIER
  131. ---help---
  132. Support running unmodified E500MC/E5500/E6500 guest kernels in
  133. virtual machines on E500MC/E5500/E6500 host processors.
  134. This module provides access to the hardware capabilities through
  135. a character device node named /dev/kvm.
  136. If unsure, say N.
  137. config KVM_MPIC
  138. bool "KVM in-kernel MPIC emulation"
  139. depends on KVM && E500
  140. select HAVE_KVM_IRQCHIP
  141. select HAVE_KVM_IRQ_ROUTING
  142. select HAVE_KVM_MSI
  143. help
  144. Enable support for emulating MPIC devices inside the
  145. host kernel, rather than relying on userspace to emulate.
  146. Currently, support is limited to certain versions of
  147. Freescale's MPIC implementation.
  148. config KVM_XICS
  149. bool "KVM in-kernel XICS emulation"
  150. depends on KVM_BOOK3S_64 && !KVM_MPIC
  151. ---help---
  152. Include support for the XICS (eXternal Interrupt Controller
  153. Specification) interrupt controller architecture used on
  154. IBM POWER (pSeries) servers.
  155. source drivers/vhost/Kconfig
  156. endif # VIRTUALIZATION