Kconfig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # KVM configuration
  4. #
  5. source "virt/lib/Kconfig"
  6. source "virt/kvm/Kconfig"
  7. menuconfig VIRTUALIZATION
  8. bool "Virtualization"
  9. help
  10. Say Y here to get to see options for using your Linux host to run
  11. other operating systems inside virtual machines (guests).
  12. This option alone does not add any kernel code.
  13. If you say N, all options in this submenu will be skipped and
  14. disabled.
  15. if VIRTUALIZATION
  16. menuconfig KVM
  17. bool "Kernel-based Virtual Machine (KVM) support"
  18. depends on HAVE_KVM
  19. select MMU_NOTIFIER
  20. select PREEMPT_NOTIFIERS
  21. select HAVE_KVM_CPU_RELAX_INTERCEPT
  22. select HAVE_KVM_ARCH_TLB_FLUSH_ALL
  23. select KVM_MMIO
  24. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  25. select KVM_XFER_TO_GUEST_WORK
  26. select SRCU
  27. select KVM_VFIO
  28. select HAVE_KVM_EVENTFD
  29. select HAVE_KVM_IRQFD
  30. select HAVE_KVM_MSI
  31. select HAVE_KVM_IRQCHIP
  32. select HAVE_KVM_IRQ_ROUTING
  33. select IRQ_BYPASS_MANAGER
  34. select HAVE_KVM_IRQ_BYPASS
  35. select HAVE_KVM_VCPU_RUN_PID_CHANGE
  36. select SCHED_INFO
  37. select GUEST_PERF_EVENTS if PERF_EVENTS
  38. select INTERVAL_TREE
  39. help
  40. Support hosting virtualized guest machines.
  41. If unsure, say N.
  42. config NVHE_EL2_DEBUG
  43. bool "Debug mode for non-VHE EL2 object"
  44. depends on KVM
  45. help
  46. Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
  47. Failure reports will BUG() in the hypervisor. This is intended for
  48. local EL2 hypervisor development.
  49. If unsure, say N.
  50. config PROTECTED_NVHE_STACKTRACE
  51. bool "Protected KVM hypervisor stacktraces"
  52. depends on NVHE_EL2_DEBUG
  53. default n
  54. help
  55. Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
  56. If using protected nVHE mode, but cannot afford the associated
  57. memory cost (less than 0.75 page per CPU) of pKVM stacktraces,
  58. say N.
  59. If unsure, or not using protected nVHE (pKVM), say N.
  60. config PKVM_MODULE_PATH
  61. string "Path to pKVM modules"
  62. default ""
  63. help
  64. Directory where the pKVM modules are found. If empty, the modules
  65. will be searched into the default path /lib/modules/<uname>.
  66. endif # VIRTUALIZATION