Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # SPDX-License-Identifier: GPL-2.0
  2. # KVM common configuration items and defaults
  3. config KVM_COMMON
  4. bool
  5. select EVENTFD
  6. select INTERVAL_TREE
  7. select PREEMPT_NOTIFIERS
  8. config HAVE_KVM_PFNCACHE
  9. bool
  10. config HAVE_KVM_IRQCHIP
  11. bool
  12. config HAVE_KVM_IRQ_ROUTING
  13. bool
  14. config HAVE_KVM_DIRTY_RING
  15. bool
  16. # Only strongly ordered architectures can select this, as it doesn't
  17. # put any explicit constraint on userspace ordering. They can also
  18. # select the _ACQ_REL version.
  19. config HAVE_KVM_DIRTY_RING_TSO
  20. bool
  21. select HAVE_KVM_DIRTY_RING
  22. depends on X86
  23. # Weakly ordered architectures can only select this, advertising
  24. # to userspace the additional ordering requirements.
  25. config HAVE_KVM_DIRTY_RING_ACQ_REL
  26. bool
  27. select HAVE_KVM_DIRTY_RING
  28. # Allow enabling both the dirty bitmap and dirty ring. Only architectures
  29. # that need to dirty memory outside of a vCPU context should select this.
  30. config NEED_KVM_DIRTY_RING_WITH_BITMAP
  31. bool
  32. depends on HAVE_KVM_DIRTY_RING
  33. config KVM_MMIO
  34. bool
  35. config KVM_ASYNC_PF
  36. bool
  37. # Toggle to switch between direct notification and batch job
  38. config KVM_ASYNC_PF_SYNC
  39. bool
  40. config HAVE_KVM_MSI
  41. bool
  42. config HAVE_KVM_READONLY_MEM
  43. bool
  44. config HAVE_KVM_CPU_RELAX_INTERCEPT
  45. bool
  46. config KVM_VFIO
  47. bool
  48. config HAVE_KVM_INVALID_WAKEUPS
  49. bool
  50. config KVM_GENERIC_DIRTYLOG_READ_PROTECT
  51. bool
  52. config KVM_GENERIC_PRE_FAULT_MEMORY
  53. bool
  54. config KVM_COMPAT
  55. def_bool y
  56. depends on KVM && COMPAT && !(S390 || ARM64 || RISCV)
  57. config HAVE_KVM_IRQ_BYPASS
  58. tristate
  59. select IRQ_BYPASS_MANAGER
  60. config HAVE_KVM_VCPU_ASYNC_IOCTL
  61. bool
  62. config HAVE_KVM_VCPU_RUN_PID_CHANGE
  63. bool
  64. config HAVE_KVM_NO_POLL
  65. bool
  66. config KVM_XFER_TO_GUEST_WORK
  67. bool
  68. config HAVE_KVM_PM_NOTIFIER
  69. bool
  70. config KVM_GENERIC_HARDWARE_ENABLING
  71. bool
  72. config KVM_GENERIC_MMU_NOTIFIER
  73. select MMU_NOTIFIER
  74. bool
  75. config KVM_GENERIC_MEMORY_ATTRIBUTES
  76. depends on KVM_GENERIC_MMU_NOTIFIER
  77. bool
  78. config KVM_PRIVATE_MEM
  79. select XARRAY_MULTI
  80. bool
  81. config KVM_GENERIC_PRIVATE_MEM
  82. select KVM_GENERIC_MEMORY_ATTRIBUTES
  83. select KVM_PRIVATE_MEM
  84. bool
  85. config HAVE_KVM_ARCH_GMEM_PREPARE
  86. bool
  87. depends on KVM_PRIVATE_MEM
  88. config HAVE_KVM_ARCH_GMEM_INVALIDATE
  89. bool
  90. depends on KVM_PRIVATE_MEM