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