Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. # for TASKSTATS/TASK_DELAY_ACCT:
  21. depends on NET && MULTIUSER
  22. depends on X86_LOCAL_APIC
  23. select PREEMPT_NOTIFIERS
  24. select MMU_NOTIFIER
  25. select HAVE_KVM_IRQCHIP
  26. select HAVE_KVM_IRQFD
  27. select IRQ_BYPASS_MANAGER
  28. select HAVE_KVM_IRQ_BYPASS
  29. select HAVE_KVM_IRQ_ROUTING
  30. select HAVE_KVM_EVENTFD
  31. select KVM_ASYNC_PF
  32. select USER_RETURN_NOTIFIER
  33. select KVM_MMIO
  34. select TASKSTATS
  35. select TASK_DELAY_ACCT
  36. select PERF_EVENTS
  37. select HAVE_KVM_MSI
  38. select HAVE_KVM_CPU_RELAX_INTERCEPT
  39. select HAVE_KVM_NO_POLL
  40. select KVM_XFER_TO_GUEST_WORK
  41. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  42. select KVM_VFIO
  43. select SRCU
  44. help
  45. Support hosting fully virtualized guest machines using hardware
  46. virtualization extensions. You will need a fairly recent
  47. processor equipped with virtualization extensions. You will also
  48. need to select one or more of the processor modules below.
  49. This module provides access to the hardware capabilities through
  50. a character device node named /dev/kvm.
  51. To compile this as a module, choose M here: the module
  52. will be called kvm.
  53. If unsure, say N.
  54. config KVM_WERROR
  55. bool "Compile KVM with -Werror"
  56. # KASAN may cause the build to fail due to larger frames
  57. default y if X86_64 && !KASAN
  58. # We use the dependency on !COMPILE_TEST to not be enabled
  59. # blindly in allmodconfig or allyesconfig configurations
  60. depends on KVM
  61. depends on (X86_64 && !KASAN) || !COMPILE_TEST
  62. depends on EXPERT
  63. help
  64. Add -Werror to the build flags for KVM.
  65. If in doubt, say "N".
  66. config KVM_INTEL
  67. tristate "KVM for Intel (and compatible) processors support"
  68. depends on KVM && IA32_FEAT_CTL
  69. help
  70. Provides support for KVM on processors equipped with Intel's VT
  71. extensions, a.k.a. Virtual Machine Extensions (VMX).
  72. To compile this as a module, choose M here: the module
  73. will be called kvm-intel.
  74. config KVM_AMD
  75. tristate "KVM for AMD processors support"
  76. depends on KVM
  77. help
  78. Provides support for KVM on AMD processors equipped with the AMD-V
  79. (SVM) extensions.
  80. To compile this as a module, choose M here: the module
  81. will be called kvm-amd.
  82. config KVM_AMD_SEV
  83. def_bool y
  84. bool "AMD Secure Encrypted Virtualization (SEV) support"
  85. depends on KVM_AMD && X86_64
  86. depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
  87. help
  88. Provides support for launching Encrypted VMs on AMD processors.
  89. config KVM_MMU_AUDIT
  90. bool "Audit KVM MMU"
  91. depends on KVM && TRACEPOINTS
  92. help
  93. This option adds a R/W kVM module parameter 'mmu_audit', which allows
  94. auditing of KVM MMU events at runtime.
  95. endif # VIRTUALIZATION