Kconfig 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # KVM configuration
  4. #
  5. source "virt/kvm/Kconfig"
  6. menuconfig VIRTUALIZATION
  7. bool "Virtualization"
  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. menuconfig KVM
  16. bool "Kernel-based Virtual Machine (KVM) support"
  17. select KVM_COMMON
  18. select KVM_GENERIC_HARDWARE_ENABLING
  19. select HAVE_KVM_CPU_RELAX_INTERCEPT
  20. select KVM_MMIO
  21. select KVM_GENERIC_DIRTYLOG_READ_PROTECT
  22. select VIRT_XFER_TO_GUEST_WORK
  23. select KVM_VFIO
  24. select HAVE_KVM_DIRTY_RING_ACQ_REL
  25. select NEED_KVM_DIRTY_RING_WITH_BITMAP
  26. select HAVE_KVM_MSI
  27. select HAVE_KVM_IRQCHIP
  28. select HAVE_KVM_IRQ_ROUTING
  29. select HAVE_KVM_IRQ_BYPASS
  30. select HAVE_KVM_READONLY_MEM
  31. select HAVE_KVM_VCPU_RUN_PID_CHANGE
  32. select SCHED_INFO
  33. select GUEST_PERF_EVENTS if PERF_EVENTS
  34. select KVM_GUEST_MEMFD
  35. help
  36. Support hosting virtualized guest machines.
  37. If unsure, say N.
  38. config NVHE_EL2_DEBUG
  39. bool "Debug mode for non-VHE EL2 object"
  40. depends on KVM
  41. help
  42. Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
  43. Failure reports will BUG() in the hypervisor. This is intended for
  44. local EL2 hypervisor development.
  45. If unsure, say N.
  46. config PROTECTED_NVHE_STACKTRACE
  47. bool "Protected KVM hypervisor stacktraces"
  48. depends on NVHE_EL2_DEBUG
  49. default n
  50. help
  51. Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
  52. If using protected nVHE mode, but cannot afford the associated
  53. memory cost (less than 0.75 page per CPU) of pKVM stacktraces,
  54. say N.
  55. If unsure, or not using protected nVHE (pKVM), say N.
  56. config PTDUMP_STAGE2_DEBUGFS
  57. bool "Present the stage-2 pagetables to debugfs"
  58. depends on KVM
  59. depends on DEBUG_KERNEL
  60. depends on DEBUG_FS
  61. depends on ARCH_HAS_PTDUMP
  62. select PTDUMP
  63. default n
  64. help
  65. Say Y here if you want to show the stage-2 kernel pagetables
  66. layout in a debugfs file. This information is only useful for kernel developers
  67. who are working in architecture specific areas of the kernel.
  68. It is probably not a good idea to enable this feature in a production
  69. kernel.
  70. If in doubt, say N.
  71. endif # VIRTUALIZATION