Kconfig 4.7 KB

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