Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # KVM configuration
  4. #
  5. source "virt/kvm/Kconfig"
  6. menuconfig VIRTUALIZATION
  7. bool "Virtualization"
  8. depends on HAVE_KVM || X86
  9. default y
  10. help
  11. Say Y here to get to see options for using your Linux host to run other
  12. operating systems inside virtual machines (guests).
  13. This option alone does not add any kernel code.
  14. If you say N, all options in this submenu will be skipped and disabled.
  15. if VIRTUALIZATION
  16. config KVM
  17. tristate "Kernel-based Virtual Machine (KVM) support"
  18. depends on HAVE_KVM
  19. depends on HIGH_RES_TIMERS
  20. depends on X86_LOCAL_APIC
  21. select PREEMPT_NOTIFIERS
  22. select MMU_NOTIFIER
  23. select HAVE_KVM_IRQCHIP
  24. select HAVE_KVM_PFNCACHE
  25. select HAVE_KVM_IRQFD
  26. select HAVE_KVM_DIRTY_RING_TSO
  27. select HAVE_KVM_DIRTY_RING_ACQ_REL
  28. select IRQ_BYPASS_MANAGER
  29. select HAVE_KVM_IRQ_BYPASS
  30. select HAVE_KVM_IRQ_ROUTING
  31. select HAVE_KVM_EVENTFD
  32. select KVM_ASYNC_PF
  33. select USER_RETURN_NOTIFIER
  34. select KVM_MMIO
  35. select SCHED_INFO
  36. select PERF_EVENTS
  37. select GUEST_PERF_EVENTS
  38. select HAVE_KVM_MSI
  39. select HAVE_KVM_CPU_RELAX_INTERCEPT
  40. select HAVE_KVM_NO_POLL
  41. select KVM_XFER_TO_GUEST_WORK
  42. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  43. select KVM_VFIO
  44. select SRCU
  45. select INTERVAL_TREE
  46. select HAVE_KVM_PM_NOTIFIER if PM
  47. help
  48. Support hosting fully virtualized guest machines using hardware
  49. virtualization extensions. You will need a fairly recent
  50. processor equipped with virtualization extensions. You will also
  51. need to select one or more of the processor modules below.
  52. This module provides access to the hardware capabilities through
  53. a character device node named /dev/kvm.
  54. To compile this as a module, choose M here: the module
  55. will be called kvm.
  56. If unsure, say N.
  57. config KVM_WERROR
  58. bool "Compile KVM with -Werror"
  59. # KASAN may cause the build to fail due to larger frames
  60. default y if X86_64 && !KASAN
  61. # We use the dependency on !COMPILE_TEST to not be enabled
  62. # blindly in allmodconfig or allyesconfig configurations
  63. depends on KVM
  64. depends on (X86_64 && !KASAN) || !COMPILE_TEST
  65. depends on EXPERT
  66. help
  67. Add -Werror to the build flags for KVM.
  68. If in doubt, say "N".
  69. config KVM_INTEL
  70. tristate "KVM for Intel (and compatible) processors support"
  71. depends on KVM && IA32_FEAT_CTL
  72. help
  73. Provides support for KVM on processors equipped with Intel's VT
  74. extensions, a.k.a. Virtual Machine Extensions (VMX).
  75. To compile this as a module, choose M here: the module
  76. will be called kvm-intel.
  77. config X86_SGX_KVM
  78. bool "Software Guard eXtensions (SGX) Virtualization"
  79. depends on X86_SGX && KVM_INTEL
  80. help
  81. Enables KVM guests to create SGX enclaves.
  82. This includes support to expose "raw" unreclaimable enclave memory to
  83. guests via a device node, e.g. /dev/sgx_vepc.
  84. If unsure, say N.
  85. config KVM_AMD
  86. tristate "KVM for AMD processors support"
  87. depends on KVM
  88. help
  89. Provides support for KVM on AMD processors equipped with the AMD-V
  90. (SVM) extensions.
  91. To compile this as a module, choose M here: the module
  92. will be called kvm-amd.
  93. config KVM_AMD_SEV
  94. def_bool y
  95. bool "AMD Secure Encrypted Virtualization (SEV) support"
  96. depends on KVM_AMD && X86_64
  97. depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
  98. help
  99. Provides support for launching Encrypted VMs (SEV) and Encrypted VMs
  100. with Encrypted State (SEV-ES) on AMD processors.
  101. config KVM_XEN
  102. bool "Support for Xen hypercall interface"
  103. depends on KVM
  104. help
  105. Provides KVM support for the hosting Xen HVM guests and
  106. passing Xen hypercalls to userspace.
  107. If in doubt, say "N".
  108. config KVM_EXTERNAL_WRITE_TRACKING
  109. bool
  110. endif # VIRTUALIZATION