Kconfig 2.3 KB

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