Kconfig 5.3 KB

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