Kconfig 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 ANON_INODES
  26. select HAVE_KVM_IRQCHIP
  27. select HAVE_KVM_IRQFD
  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 TASKSTATS
  36. select TASK_DELAY_ACCT
  37. select PERF_EVENTS
  38. select HAVE_KVM_MSI
  39. select HAVE_KVM_CPU_RELAX_INTERCEPT
  40. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  41. select KVM_VFIO
  42. select SRCU
  43. ---help---
  44. Support hosting fully virtualized guest machines using hardware
  45. virtualization extensions. You will need a fairly recent
  46. processor equipped with virtualization extensions. You will also
  47. need to select one or more of the processor modules below.
  48. This module provides access to the hardware capabilities through
  49. a character device node named /dev/kvm.
  50. To compile this as a module, choose M here: the module
  51. will be called kvm.
  52. If unsure, say N.
  53. config KVM_INTEL
  54. tristate "KVM for Intel processors support"
  55. depends on KVM
  56. # for perf_guest_get_msrs():
  57. depends on CPU_SUP_INTEL
  58. ---help---
  59. Provides support for KVM on Intel processors equipped with the VT
  60. extensions.
  61. To compile this as a module, choose M here: the module
  62. will be called kvm-intel.
  63. config KVM_AMD
  64. tristate "KVM for AMD processors support"
  65. depends on KVM
  66. ---help---
  67. Provides support for KVM on AMD processors equipped with the AMD-V
  68. (SVM) extensions.
  69. To compile this as a module, choose M here: the module
  70. will be called kvm-amd.
  71. config KVM_AMD_SEV
  72. def_bool y
  73. bool "AMD Secure Encrypted Virtualization (SEV) support"
  74. depends on KVM_AMD && X86_64
  75. depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
  76. ---help---
  77. Provides support for launching Encrypted VMs on AMD processors.
  78. config KVM_MMU_AUDIT
  79. bool "Audit KVM MMU"
  80. depends on KVM && TRACEPOINTS
  81. ---help---
  82. This option adds a R/W kVM module parameter 'mmu_audit', which allows
  83. auditing of KVM MMU events at runtime.
  84. # OK, it's a little counter-intuitive to do this, but it puts it neatly under
  85. # the virtualization menu.
  86. source drivers/vhost/Kconfig
  87. endif # VIRTUALIZATION