123 lines · plain
1# SPDX-License-Identifier: GPL-2.02# KVM common configuration items and defaults3 4config KVM_COMMON5 bool6 select EVENTFD7 select INTERVAL_TREE8 select PREEMPT_NOTIFIERS9 10config HAVE_KVM_PFNCACHE11 bool12 13config HAVE_KVM_IRQCHIP14 bool15 16config HAVE_KVM_IRQ_ROUTING17 bool18 19config HAVE_KVM_DIRTY_RING20 bool21 22# Only strongly ordered architectures can select this, as it doesn't23# put any explicit constraint on userspace ordering. They can also24# select the _ACQ_REL version.25config HAVE_KVM_DIRTY_RING_TSO26 bool27 select HAVE_KVM_DIRTY_RING28 depends on X8629 30# Weakly ordered architectures can only select this, advertising31# to userspace the additional ordering requirements.32config HAVE_KVM_DIRTY_RING_ACQ_REL33 bool34 select HAVE_KVM_DIRTY_RING35 36# Allow enabling both the dirty bitmap and dirty ring. Only architectures37# that need to dirty memory outside of a vCPU context should select this.38config NEED_KVM_DIRTY_RING_WITH_BITMAP39 bool40 depends on HAVE_KVM_DIRTY_RING41 42config KVM_MMIO43 bool44 45config KVM_ASYNC_PF46 bool47 48# Toggle to switch between direct notification and batch job49config KVM_ASYNC_PF_SYNC50 bool51 52config HAVE_KVM_MSI53 bool54 55config HAVE_KVM_READONLY_MEM56 bool57 58config HAVE_KVM_CPU_RELAX_INTERCEPT59 bool60 61config KVM_VFIO62 bool63 64config HAVE_KVM_INVALID_WAKEUPS65 bool66 67config KVM_GENERIC_DIRTYLOG_READ_PROTECT68 bool69 70config KVM_GENERIC_PRE_FAULT_MEMORY71 bool72 73config KVM_COMPAT74 def_bool y75 depends on KVM && COMPAT && !(S390 || ARM64 || RISCV)76 77config HAVE_KVM_IRQ_BYPASS78 bool79 select IRQ_BYPASS_MANAGER80 81config HAVE_KVM_VCPU_ASYNC_IOCTL82 bool83 84config HAVE_KVM_VCPU_RUN_PID_CHANGE85 bool86 87config HAVE_KVM_NO_POLL88 bool89 90config KVM_XFER_TO_GUEST_WORK91 bool92 93config HAVE_KVM_PM_NOTIFIER94 bool95 96config KVM_GENERIC_HARDWARE_ENABLING97 bool98 99config KVM_GENERIC_MMU_NOTIFIER100 select MMU_NOTIFIER101 bool102 103config KVM_GENERIC_MEMORY_ATTRIBUTES104 depends on KVM_GENERIC_MMU_NOTIFIER105 bool106 107config KVM_PRIVATE_MEM108 select XARRAY_MULTI109 bool110 111config KVM_GENERIC_PRIVATE_MEM112 select KVM_GENERIC_MEMORY_ATTRIBUTES113 select KVM_PRIVATE_MEM114 bool115 116config HAVE_KVM_ARCH_GMEM_PREPARE117 bool118 depends on KVM_PRIVATE_MEM119 120config HAVE_KVM_ARCH_GMEM_INVALIDATE121 bool122 depends on KVM_PRIVATE_MEM123