• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/kvm_cap.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(KVM_CAP_IRQCHIP) || (defined(HAVE_DECL_KVM_CAP_IRQCHIP) && HAVE_DECL_KVM_CAP_IRQCHIP)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((KVM_CAP_IRQCHIP) == (0), "KVM_CAP_IRQCHIP != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define KVM_CAP_IRQCHIP 0
12 #endif
13 #if defined(KVM_CAP_HLT) || (defined(HAVE_DECL_KVM_CAP_HLT) && HAVE_DECL_KVM_CAP_HLT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((KVM_CAP_HLT) == (1), "KVM_CAP_HLT != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define KVM_CAP_HLT 1
19 #endif
20 #if defined(KVM_CAP_MMU_SHADOW_CACHE_CONTROL) || (defined(HAVE_DECL_KVM_CAP_MMU_SHADOW_CACHE_CONTROL) && HAVE_DECL_KVM_CAP_MMU_SHADOW_CACHE_CONTROL)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((KVM_CAP_MMU_SHADOW_CACHE_CONTROL) == (2), "KVM_CAP_MMU_SHADOW_CACHE_CONTROL != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define KVM_CAP_MMU_SHADOW_CACHE_CONTROL 2
26 #endif
27 #if defined(KVM_CAP_USER_MEMORY) || (defined(HAVE_DECL_KVM_CAP_USER_MEMORY) && HAVE_DECL_KVM_CAP_USER_MEMORY)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((KVM_CAP_USER_MEMORY) == (3), "KVM_CAP_USER_MEMORY != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define KVM_CAP_USER_MEMORY 3
33 #endif
34 #if defined(KVM_CAP_SET_TSS_ADDR) || (defined(HAVE_DECL_KVM_CAP_SET_TSS_ADDR) && HAVE_DECL_KVM_CAP_SET_TSS_ADDR)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((KVM_CAP_SET_TSS_ADDR) == (4), "KVM_CAP_SET_TSS_ADDR != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define KVM_CAP_SET_TSS_ADDR 4
40 #endif
41 #if defined(KVM_CAP_VAPIC) || (defined(HAVE_DECL_KVM_CAP_VAPIC) && HAVE_DECL_KVM_CAP_VAPIC)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((KVM_CAP_VAPIC) == (6), "KVM_CAP_VAPIC != 6");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define KVM_CAP_VAPIC 6
47 #endif
48 #if defined(KVM_CAP_EXT_CPUID) || (defined(HAVE_DECL_KVM_CAP_EXT_CPUID) && HAVE_DECL_KVM_CAP_EXT_CPUID)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((KVM_CAP_EXT_CPUID) == (7), "KVM_CAP_EXT_CPUID != 7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define KVM_CAP_EXT_CPUID 7
54 #endif
55 #if defined(KVM_CAP_CLOCKSOURCE) || (defined(HAVE_DECL_KVM_CAP_CLOCKSOURCE) && HAVE_DECL_KVM_CAP_CLOCKSOURCE)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((KVM_CAP_CLOCKSOURCE) == (8), "KVM_CAP_CLOCKSOURCE != 8");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define KVM_CAP_CLOCKSOURCE 8
61 #endif
62 #if defined(KVM_CAP_NR_VCPUS) || (defined(HAVE_DECL_KVM_CAP_NR_VCPUS) && HAVE_DECL_KVM_CAP_NR_VCPUS)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((KVM_CAP_NR_VCPUS) == (9), "KVM_CAP_NR_VCPUS != 9");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define KVM_CAP_NR_VCPUS 9
68 #endif
69 #if defined(KVM_CAP_NR_MEMSLOTS) || (defined(HAVE_DECL_KVM_CAP_NR_MEMSLOTS) && HAVE_DECL_KVM_CAP_NR_MEMSLOTS)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((KVM_CAP_NR_MEMSLOTS) == (10), "KVM_CAP_NR_MEMSLOTS != 10");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define KVM_CAP_NR_MEMSLOTS 10
75 #endif
76 #if defined(KVM_CAP_PIT) || (defined(HAVE_DECL_KVM_CAP_PIT) && HAVE_DECL_KVM_CAP_PIT)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((KVM_CAP_PIT) == (11), "KVM_CAP_PIT != 11");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define KVM_CAP_PIT 11
82 #endif
83 #if defined(KVM_CAP_NOP_IO_DELAY) || (defined(HAVE_DECL_KVM_CAP_NOP_IO_DELAY) && HAVE_DECL_KVM_CAP_NOP_IO_DELAY)
84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
85 static_assert((KVM_CAP_NOP_IO_DELAY) == (12), "KVM_CAP_NOP_IO_DELAY != 12");
86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
87 #else
88 # define KVM_CAP_NOP_IO_DELAY 12
89 #endif
90 #if defined(KVM_CAP_PV_MMU) || (defined(HAVE_DECL_KVM_CAP_PV_MMU) && HAVE_DECL_KVM_CAP_PV_MMU)
91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
92 static_assert((KVM_CAP_PV_MMU) == (13), "KVM_CAP_PV_MMU != 13");
93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
94 #else
95 # define KVM_CAP_PV_MMU 13
96 #endif
97 #if defined(KVM_CAP_MP_STATE) || (defined(HAVE_DECL_KVM_CAP_MP_STATE) && HAVE_DECL_KVM_CAP_MP_STATE)
98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
99 static_assert((KVM_CAP_MP_STATE) == (14), "KVM_CAP_MP_STATE != 14");
100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
101 #else
102 # define KVM_CAP_MP_STATE 14
103 #endif
104 #if defined(KVM_CAP_COALESCED_MMIO) || (defined(HAVE_DECL_KVM_CAP_COALESCED_MMIO) && HAVE_DECL_KVM_CAP_COALESCED_MMIO)
105 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
106 static_assert((KVM_CAP_COALESCED_MMIO) == (15), "KVM_CAP_COALESCED_MMIO != 15");
107 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
108 #else
109 # define KVM_CAP_COALESCED_MMIO 15
110 #endif
111 #if defined(KVM_CAP_SYNC_MMU) || (defined(HAVE_DECL_KVM_CAP_SYNC_MMU) && HAVE_DECL_KVM_CAP_SYNC_MMU)
112 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
113 static_assert((KVM_CAP_SYNC_MMU) == (16), "KVM_CAP_SYNC_MMU != 16");
114 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
115 #else
116 # define KVM_CAP_SYNC_MMU 16
117 #endif
118 #if defined(KVM_CAP_IOMMU) || (defined(HAVE_DECL_KVM_CAP_IOMMU) && HAVE_DECL_KVM_CAP_IOMMU)
119 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
120 static_assert((KVM_CAP_IOMMU) == (18), "KVM_CAP_IOMMU != 18");
121 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
122 #else
123 # define KVM_CAP_IOMMU 18
124 #endif
125 #if defined(KVM_CAP_DESTROY_MEMORY_REGION_WORKS) || (defined(HAVE_DECL_KVM_CAP_DESTROY_MEMORY_REGION_WORKS) && HAVE_DECL_KVM_CAP_DESTROY_MEMORY_REGION_WORKS)
126 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
127 static_assert((KVM_CAP_DESTROY_MEMORY_REGION_WORKS) == (21), "KVM_CAP_DESTROY_MEMORY_REGION_WORKS != 21");
128 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
129 #else
130 # define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21
131 #endif
132 #if defined(KVM_CAP_USER_NMI) || (defined(HAVE_DECL_KVM_CAP_USER_NMI) && HAVE_DECL_KVM_CAP_USER_NMI)
133 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
134 static_assert((KVM_CAP_USER_NMI) == (22), "KVM_CAP_USER_NMI != 22");
135 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
136 #else
137 # define KVM_CAP_USER_NMI 22
138 #endif
139 #if defined(KVM_CAP_SET_GUEST_DEBUG) || (defined(HAVE_DECL_KVM_CAP_SET_GUEST_DEBUG) && HAVE_DECL_KVM_CAP_SET_GUEST_DEBUG)
140 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
141 static_assert((KVM_CAP_SET_GUEST_DEBUG) == (23), "KVM_CAP_SET_GUEST_DEBUG != 23");
142 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
143 #else
144 # define KVM_CAP_SET_GUEST_DEBUG 23
145 #endif
146 #if defined(KVM_CAP_REINJECT_CONTROL) || (defined(HAVE_DECL_KVM_CAP_REINJECT_CONTROL) && HAVE_DECL_KVM_CAP_REINJECT_CONTROL)
147 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
148 static_assert((KVM_CAP_REINJECT_CONTROL) == (24), "KVM_CAP_REINJECT_CONTROL != 24");
149 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
150 #else
151 # define KVM_CAP_REINJECT_CONTROL 24
152 #endif
153 #if defined(KVM_CAP_IRQ_ROUTING) || (defined(HAVE_DECL_KVM_CAP_IRQ_ROUTING) && HAVE_DECL_KVM_CAP_IRQ_ROUTING)
154 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
155 static_assert((KVM_CAP_IRQ_ROUTING) == (25), "KVM_CAP_IRQ_ROUTING != 25");
156 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
157 #else
158 # define KVM_CAP_IRQ_ROUTING 25
159 #endif
160 #if defined(KVM_CAP_IRQ_INJECT_STATUS) || (defined(HAVE_DECL_KVM_CAP_IRQ_INJECT_STATUS) && HAVE_DECL_KVM_CAP_IRQ_INJECT_STATUS)
161 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
162 static_assert((KVM_CAP_IRQ_INJECT_STATUS) == (26), "KVM_CAP_IRQ_INJECT_STATUS != 26");
163 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
164 #else
165 # define KVM_CAP_IRQ_INJECT_STATUS 26
166 #endif
167 #if defined(KVM_CAP_ASSIGN_DEV_IRQ) || (defined(HAVE_DECL_KVM_CAP_ASSIGN_DEV_IRQ) && HAVE_DECL_KVM_CAP_ASSIGN_DEV_IRQ)
168 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
169 static_assert((KVM_CAP_ASSIGN_DEV_IRQ) == (29), "KVM_CAP_ASSIGN_DEV_IRQ != 29");
170 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
171 #else
172 # define KVM_CAP_ASSIGN_DEV_IRQ 29
173 #endif
174 #if defined(KVM_CAP_JOIN_MEMORY_REGIONS_WORKS) || (defined(HAVE_DECL_KVM_CAP_JOIN_MEMORY_REGIONS_WORKS) && HAVE_DECL_KVM_CAP_JOIN_MEMORY_REGIONS_WORKS)
175 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
176 static_assert((KVM_CAP_JOIN_MEMORY_REGIONS_WORKS) == (30), "KVM_CAP_JOIN_MEMORY_REGIONS_WORKS != 30");
177 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
178 #else
179 # define KVM_CAP_JOIN_MEMORY_REGIONS_WORKS 30
180 #endif
181 #if defined(KVM_CAP_MCE) || (defined(HAVE_DECL_KVM_CAP_MCE) && HAVE_DECL_KVM_CAP_MCE)
182 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
183 static_assert((KVM_CAP_MCE) == (31), "KVM_CAP_MCE != 31");
184 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
185 #else
186 # define KVM_CAP_MCE 31
187 #endif
188 #if defined(KVM_CAP_IRQFD) || (defined(HAVE_DECL_KVM_CAP_IRQFD) && HAVE_DECL_KVM_CAP_IRQFD)
189 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
190 static_assert((KVM_CAP_IRQFD) == (32), "KVM_CAP_IRQFD != 32");
191 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
192 #else
193 # define KVM_CAP_IRQFD 32
194 #endif
195 #if defined(KVM_CAP_PIT2) || (defined(HAVE_DECL_KVM_CAP_PIT2) && HAVE_DECL_KVM_CAP_PIT2)
196 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
197 static_assert((KVM_CAP_PIT2) == (33), "KVM_CAP_PIT2 != 33");
198 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
199 #else
200 # define KVM_CAP_PIT2 33
201 #endif
202 #if defined(KVM_CAP_SET_BOOT_CPU_ID) || (defined(HAVE_DECL_KVM_CAP_SET_BOOT_CPU_ID) && HAVE_DECL_KVM_CAP_SET_BOOT_CPU_ID)
203 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
204 static_assert((KVM_CAP_SET_BOOT_CPU_ID) == (34), "KVM_CAP_SET_BOOT_CPU_ID != 34");
205 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
206 #else
207 # define KVM_CAP_SET_BOOT_CPU_ID 34
208 #endif
209 #if defined(KVM_CAP_PIT_STATE2) || (defined(HAVE_DECL_KVM_CAP_PIT_STATE2) && HAVE_DECL_KVM_CAP_PIT_STATE2)
210 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
211 static_assert((KVM_CAP_PIT_STATE2) == (35), "KVM_CAP_PIT_STATE2 != 35");
212 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
213 #else
214 # define KVM_CAP_PIT_STATE2 35
215 #endif
216 #if defined(KVM_CAP_IOEVENTFD) || (defined(HAVE_DECL_KVM_CAP_IOEVENTFD) && HAVE_DECL_KVM_CAP_IOEVENTFD)
217 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
218 static_assert((KVM_CAP_IOEVENTFD) == (36), "KVM_CAP_IOEVENTFD != 36");
219 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
220 #else
221 # define KVM_CAP_IOEVENTFD 36
222 #endif
223 #if defined(KVM_CAP_SET_IDENTITY_MAP_ADDR) || (defined(HAVE_DECL_KVM_CAP_SET_IDENTITY_MAP_ADDR) && HAVE_DECL_KVM_CAP_SET_IDENTITY_MAP_ADDR)
224 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
225 static_assert((KVM_CAP_SET_IDENTITY_MAP_ADDR) == (37), "KVM_CAP_SET_IDENTITY_MAP_ADDR != 37");
226 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
227 #else
228 # define KVM_CAP_SET_IDENTITY_MAP_ADDR 37
229 #endif
230 #if defined(KVM_CAP_XEN_HVM) || (defined(HAVE_DECL_KVM_CAP_XEN_HVM) && HAVE_DECL_KVM_CAP_XEN_HVM)
231 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
232 static_assert((KVM_CAP_XEN_HVM) == (38), "KVM_CAP_XEN_HVM != 38");
233 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
234 #else
235 # define KVM_CAP_XEN_HVM 38
236 #endif
237 #if defined(KVM_CAP_ADJUST_CLOCK) || (defined(HAVE_DECL_KVM_CAP_ADJUST_CLOCK) && HAVE_DECL_KVM_CAP_ADJUST_CLOCK)
238 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
239 static_assert((KVM_CAP_ADJUST_CLOCK) == (39), "KVM_CAP_ADJUST_CLOCK != 39");
240 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
241 #else
242 # define KVM_CAP_ADJUST_CLOCK 39
243 #endif
244 #if defined(KVM_CAP_INTERNAL_ERROR_DATA) || (defined(HAVE_DECL_KVM_CAP_INTERNAL_ERROR_DATA) && HAVE_DECL_KVM_CAP_INTERNAL_ERROR_DATA)
245 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
246 static_assert((KVM_CAP_INTERNAL_ERROR_DATA) == (40), "KVM_CAP_INTERNAL_ERROR_DATA != 40");
247 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
248 #else
249 # define KVM_CAP_INTERNAL_ERROR_DATA 40
250 #endif
251 #if defined(KVM_CAP_VCPU_EVENTS) || (defined(HAVE_DECL_KVM_CAP_VCPU_EVENTS) && HAVE_DECL_KVM_CAP_VCPU_EVENTS)
252 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
253 static_assert((KVM_CAP_VCPU_EVENTS) == (41), "KVM_CAP_VCPU_EVENTS != 41");
254 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
255 #else
256 # define KVM_CAP_VCPU_EVENTS 41
257 #endif
258 #if defined(KVM_CAP_S390_PSW) || (defined(HAVE_DECL_KVM_CAP_S390_PSW) && HAVE_DECL_KVM_CAP_S390_PSW)
259 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
260 static_assert((KVM_CAP_S390_PSW) == (42), "KVM_CAP_S390_PSW != 42");
261 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
262 #else
263 # define KVM_CAP_S390_PSW 42
264 #endif
265 #if defined(KVM_CAP_PPC_SEGSTATE) || (defined(HAVE_DECL_KVM_CAP_PPC_SEGSTATE) && HAVE_DECL_KVM_CAP_PPC_SEGSTATE)
266 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
267 static_assert((KVM_CAP_PPC_SEGSTATE) == (43), "KVM_CAP_PPC_SEGSTATE != 43");
268 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
269 #else
270 # define KVM_CAP_PPC_SEGSTATE 43
271 #endif
272 #if defined(KVM_CAP_HYPERV) || (defined(HAVE_DECL_KVM_CAP_HYPERV) && HAVE_DECL_KVM_CAP_HYPERV)
273 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
274 static_assert((KVM_CAP_HYPERV) == (44), "KVM_CAP_HYPERV != 44");
275 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
276 #else
277 # define KVM_CAP_HYPERV 44
278 #endif
279 #if defined(KVM_CAP_HYPERV_VAPIC) || (defined(HAVE_DECL_KVM_CAP_HYPERV_VAPIC) && HAVE_DECL_KVM_CAP_HYPERV_VAPIC)
280 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
281 static_assert((KVM_CAP_HYPERV_VAPIC) == (45), "KVM_CAP_HYPERV_VAPIC != 45");
282 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
283 #else
284 # define KVM_CAP_HYPERV_VAPIC 45
285 #endif
286 #if defined(KVM_CAP_HYPERV_SPIN) || (defined(HAVE_DECL_KVM_CAP_HYPERV_SPIN) && HAVE_DECL_KVM_CAP_HYPERV_SPIN)
287 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
288 static_assert((KVM_CAP_HYPERV_SPIN) == (46), "KVM_CAP_HYPERV_SPIN != 46");
289 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
290 #else
291 # define KVM_CAP_HYPERV_SPIN 46
292 #endif
293 #if defined(KVM_CAP_PCI_SEGMENT) || (defined(HAVE_DECL_KVM_CAP_PCI_SEGMENT) && HAVE_DECL_KVM_CAP_PCI_SEGMENT)
294 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
295 static_assert((KVM_CAP_PCI_SEGMENT) == (47), "KVM_CAP_PCI_SEGMENT != 47");
296 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
297 #else
298 # define KVM_CAP_PCI_SEGMENT 47
299 #endif
300 #if defined(KVM_CAP_PPC_PAIRED_SINGLES) || (defined(HAVE_DECL_KVM_CAP_PPC_PAIRED_SINGLES) && HAVE_DECL_KVM_CAP_PPC_PAIRED_SINGLES)
301 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
302 static_assert((KVM_CAP_PPC_PAIRED_SINGLES) == (48), "KVM_CAP_PPC_PAIRED_SINGLES != 48");
303 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
304 #else
305 # define KVM_CAP_PPC_PAIRED_SINGLES 48
306 #endif
307 #if defined(KVM_CAP_INTR_SHADOW) || (defined(HAVE_DECL_KVM_CAP_INTR_SHADOW) && HAVE_DECL_KVM_CAP_INTR_SHADOW)
308 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
309 static_assert((KVM_CAP_INTR_SHADOW) == (49), "KVM_CAP_INTR_SHADOW != 49");
310 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
311 #else
312 # define KVM_CAP_INTR_SHADOW 49
313 #endif
314 #if defined(KVM_CAP_DEBUGREGS) || (defined(HAVE_DECL_KVM_CAP_DEBUGREGS) && HAVE_DECL_KVM_CAP_DEBUGREGS)
315 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
316 static_assert((KVM_CAP_DEBUGREGS) == (50), "KVM_CAP_DEBUGREGS != 50");
317 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
318 #else
319 # define KVM_CAP_DEBUGREGS 50
320 #endif
321 #if defined(KVM_CAP_X86_ROBUST_SINGLESTEP) || (defined(HAVE_DECL_KVM_CAP_X86_ROBUST_SINGLESTEP) && HAVE_DECL_KVM_CAP_X86_ROBUST_SINGLESTEP)
322 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
323 static_assert((KVM_CAP_X86_ROBUST_SINGLESTEP) == (51), "KVM_CAP_X86_ROBUST_SINGLESTEP != 51");
324 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
325 #else
326 # define KVM_CAP_X86_ROBUST_SINGLESTEP 51
327 #endif
328 #if defined(KVM_CAP_PPC_OSI) || (defined(HAVE_DECL_KVM_CAP_PPC_OSI) && HAVE_DECL_KVM_CAP_PPC_OSI)
329 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
330 static_assert((KVM_CAP_PPC_OSI) == (52), "KVM_CAP_PPC_OSI != 52");
331 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
332 #else
333 # define KVM_CAP_PPC_OSI 52
334 #endif
335 #if defined(KVM_CAP_PPC_UNSET_IRQ) || (defined(HAVE_DECL_KVM_CAP_PPC_UNSET_IRQ) && HAVE_DECL_KVM_CAP_PPC_UNSET_IRQ)
336 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
337 static_assert((KVM_CAP_PPC_UNSET_IRQ) == (53), "KVM_CAP_PPC_UNSET_IRQ != 53");
338 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
339 #else
340 # define KVM_CAP_PPC_UNSET_IRQ 53
341 #endif
342 #if defined(KVM_CAP_ENABLE_CAP) || (defined(HAVE_DECL_KVM_CAP_ENABLE_CAP) && HAVE_DECL_KVM_CAP_ENABLE_CAP)
343 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
344 static_assert((KVM_CAP_ENABLE_CAP) == (54), "KVM_CAP_ENABLE_CAP != 54");
345 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
346 #else
347 # define KVM_CAP_ENABLE_CAP 54
348 #endif
349 #if defined(KVM_CAP_XSAVE) || (defined(HAVE_DECL_KVM_CAP_XSAVE) && HAVE_DECL_KVM_CAP_XSAVE)
350 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
351 static_assert((KVM_CAP_XSAVE) == (55), "KVM_CAP_XSAVE != 55");
352 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
353 #else
354 # define KVM_CAP_XSAVE 55
355 #endif
356 #if defined(KVM_CAP_XCRS) || (defined(HAVE_DECL_KVM_CAP_XCRS) && HAVE_DECL_KVM_CAP_XCRS)
357 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
358 static_assert((KVM_CAP_XCRS) == (56), "KVM_CAP_XCRS != 56");
359 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
360 #else
361 # define KVM_CAP_XCRS 56
362 #endif
363 #if defined(KVM_CAP_PPC_GET_PVINFO) || (defined(HAVE_DECL_KVM_CAP_PPC_GET_PVINFO) && HAVE_DECL_KVM_CAP_PPC_GET_PVINFO)
364 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
365 static_assert((KVM_CAP_PPC_GET_PVINFO) == (57), "KVM_CAP_PPC_GET_PVINFO != 57");
366 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
367 #else
368 # define KVM_CAP_PPC_GET_PVINFO 57
369 #endif
370 #if defined(KVM_CAP_PPC_IRQ_LEVEL) || (defined(HAVE_DECL_KVM_CAP_PPC_IRQ_LEVEL) && HAVE_DECL_KVM_CAP_PPC_IRQ_LEVEL)
371 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
372 static_assert((KVM_CAP_PPC_IRQ_LEVEL) == (58), "KVM_CAP_PPC_IRQ_LEVEL != 58");
373 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
374 #else
375 # define KVM_CAP_PPC_IRQ_LEVEL 58
376 #endif
377 #if defined(KVM_CAP_ASYNC_PF) || (defined(HAVE_DECL_KVM_CAP_ASYNC_PF) && HAVE_DECL_KVM_CAP_ASYNC_PF)
378 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
379 static_assert((KVM_CAP_ASYNC_PF) == (59), "KVM_CAP_ASYNC_PF != 59");
380 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
381 #else
382 # define KVM_CAP_ASYNC_PF 59
383 #endif
384 #if defined(KVM_CAP_TSC_CONTROL) || (defined(HAVE_DECL_KVM_CAP_TSC_CONTROL) && HAVE_DECL_KVM_CAP_TSC_CONTROL)
385 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
386 static_assert((KVM_CAP_TSC_CONTROL) == (60), "KVM_CAP_TSC_CONTROL != 60");
387 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
388 #else
389 # define KVM_CAP_TSC_CONTROL 60
390 #endif
391 #if defined(KVM_CAP_GET_TSC_KHZ) || (defined(HAVE_DECL_KVM_CAP_GET_TSC_KHZ) && HAVE_DECL_KVM_CAP_GET_TSC_KHZ)
392 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
393 static_assert((KVM_CAP_GET_TSC_KHZ) == (61), "KVM_CAP_GET_TSC_KHZ != 61");
394 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
395 #else
396 # define KVM_CAP_GET_TSC_KHZ 61
397 #endif
398 #if defined(KVM_CAP_PPC_BOOKE_SREGS) || (defined(HAVE_DECL_KVM_CAP_PPC_BOOKE_SREGS) && HAVE_DECL_KVM_CAP_PPC_BOOKE_SREGS)
399 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
400 static_assert((KVM_CAP_PPC_BOOKE_SREGS) == (62), "KVM_CAP_PPC_BOOKE_SREGS != 62");
401 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
402 #else
403 # define KVM_CAP_PPC_BOOKE_SREGS 62
404 #endif
405 #if defined(KVM_CAP_SPAPR_TCE) || (defined(HAVE_DECL_KVM_CAP_SPAPR_TCE) && HAVE_DECL_KVM_CAP_SPAPR_TCE)
406 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
407 static_assert((KVM_CAP_SPAPR_TCE) == (63), "KVM_CAP_SPAPR_TCE != 63");
408 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
409 #else
410 # define KVM_CAP_SPAPR_TCE 63
411 #endif
412 #if defined(KVM_CAP_PPC_SMT) || (defined(HAVE_DECL_KVM_CAP_PPC_SMT) && HAVE_DECL_KVM_CAP_PPC_SMT)
413 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
414 static_assert((KVM_CAP_PPC_SMT) == (64), "KVM_CAP_PPC_SMT != 64");
415 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
416 #else
417 # define KVM_CAP_PPC_SMT 64
418 #endif
419 #if defined(KVM_CAP_PPC_RMA) || (defined(HAVE_DECL_KVM_CAP_PPC_RMA) && HAVE_DECL_KVM_CAP_PPC_RMA)
420 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
421 static_assert((KVM_CAP_PPC_RMA) == (65), "KVM_CAP_PPC_RMA != 65");
422 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
423 #else
424 # define KVM_CAP_PPC_RMA 65
425 #endif
426 #if defined(KVM_CAP_MAX_VCPUS) || (defined(HAVE_DECL_KVM_CAP_MAX_VCPUS) && HAVE_DECL_KVM_CAP_MAX_VCPUS)
427 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
428 static_assert((KVM_CAP_MAX_VCPUS) == (66), "KVM_CAP_MAX_VCPUS != 66");
429 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
430 #else
431 # define KVM_CAP_MAX_VCPUS 66
432 #endif
433 #if defined(KVM_CAP_PPC_HIOR) || (defined(HAVE_DECL_KVM_CAP_PPC_HIOR) && HAVE_DECL_KVM_CAP_PPC_HIOR)
434 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
435 static_assert((KVM_CAP_PPC_HIOR) == (67), "KVM_CAP_PPC_HIOR != 67");
436 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
437 #else
438 # define KVM_CAP_PPC_HIOR 67
439 #endif
440 #if defined(KVM_CAP_PPC_PAPR) || (defined(HAVE_DECL_KVM_CAP_PPC_PAPR) && HAVE_DECL_KVM_CAP_PPC_PAPR)
441 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
442 static_assert((KVM_CAP_PPC_PAPR) == (68), "KVM_CAP_PPC_PAPR != 68");
443 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
444 #else
445 # define KVM_CAP_PPC_PAPR 68
446 #endif
447 #if defined(KVM_CAP_SW_TLB) || (defined(HAVE_DECL_KVM_CAP_SW_TLB) && HAVE_DECL_KVM_CAP_SW_TLB)
448 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
449 static_assert((KVM_CAP_SW_TLB) == (69), "KVM_CAP_SW_TLB != 69");
450 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
451 #else
452 # define KVM_CAP_SW_TLB 69
453 #endif
454 #if defined(KVM_CAP_ONE_REG) || (defined(HAVE_DECL_KVM_CAP_ONE_REG) && HAVE_DECL_KVM_CAP_ONE_REG)
455 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
456 static_assert((KVM_CAP_ONE_REG) == (70), "KVM_CAP_ONE_REG != 70");
457 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
458 #else
459 # define KVM_CAP_ONE_REG 70
460 #endif
461 #if defined(KVM_CAP_S390_GMAP) || (defined(HAVE_DECL_KVM_CAP_S390_GMAP) && HAVE_DECL_KVM_CAP_S390_GMAP)
462 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
463 static_assert((KVM_CAP_S390_GMAP) == (71), "KVM_CAP_S390_GMAP != 71");
464 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
465 #else
466 # define KVM_CAP_S390_GMAP 71
467 #endif
468 #if defined(KVM_CAP_TSC_DEADLINE_TIMER) || (defined(HAVE_DECL_KVM_CAP_TSC_DEADLINE_TIMER) && HAVE_DECL_KVM_CAP_TSC_DEADLINE_TIMER)
469 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
470 static_assert((KVM_CAP_TSC_DEADLINE_TIMER) == (72), "KVM_CAP_TSC_DEADLINE_TIMER != 72");
471 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
472 #else
473 # define KVM_CAP_TSC_DEADLINE_TIMER 72
474 #endif
475 #if defined(KVM_CAP_S390_UCONTROL) || (defined(HAVE_DECL_KVM_CAP_S390_UCONTROL) && HAVE_DECL_KVM_CAP_S390_UCONTROL)
476 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
477 static_assert((KVM_CAP_S390_UCONTROL) == (73), "KVM_CAP_S390_UCONTROL != 73");
478 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
479 #else
480 # define KVM_CAP_S390_UCONTROL 73
481 #endif
482 #if defined(KVM_CAP_SYNC_REGS) || (defined(HAVE_DECL_KVM_CAP_SYNC_REGS) && HAVE_DECL_KVM_CAP_SYNC_REGS)
483 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
484 static_assert((KVM_CAP_SYNC_REGS) == (74), "KVM_CAP_SYNC_REGS != 74");
485 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
486 #else
487 # define KVM_CAP_SYNC_REGS 74
488 #endif
489 #if defined(KVM_CAP_PCI_2_3) || (defined(HAVE_DECL_KVM_CAP_PCI_2_3) && HAVE_DECL_KVM_CAP_PCI_2_3)
490 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
491 static_assert((KVM_CAP_PCI_2_3) == (75), "KVM_CAP_PCI_2_3 != 75");
492 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
493 #else
494 # define KVM_CAP_PCI_2_3 75
495 #endif
496 #if defined(KVM_CAP_KVMCLOCK_CTRL) || (defined(HAVE_DECL_KVM_CAP_KVMCLOCK_CTRL) && HAVE_DECL_KVM_CAP_KVMCLOCK_CTRL)
497 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
498 static_assert((KVM_CAP_KVMCLOCK_CTRL) == (76), "KVM_CAP_KVMCLOCK_CTRL != 76");
499 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
500 #else
501 # define KVM_CAP_KVMCLOCK_CTRL 76
502 #endif
503 #if defined(KVM_CAP_SIGNAL_MSI) || (defined(HAVE_DECL_KVM_CAP_SIGNAL_MSI) && HAVE_DECL_KVM_CAP_SIGNAL_MSI)
504 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
505 static_assert((KVM_CAP_SIGNAL_MSI) == (77), "KVM_CAP_SIGNAL_MSI != 77");
506 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
507 #else
508 # define KVM_CAP_SIGNAL_MSI 77
509 #endif
510 #if defined(KVM_CAP_PPC_GET_SMMU_INFO) || (defined(HAVE_DECL_KVM_CAP_PPC_GET_SMMU_INFO) && HAVE_DECL_KVM_CAP_PPC_GET_SMMU_INFO)
511 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
512 static_assert((KVM_CAP_PPC_GET_SMMU_INFO) == (78), "KVM_CAP_PPC_GET_SMMU_INFO != 78");
513 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
514 #else
515 # define KVM_CAP_PPC_GET_SMMU_INFO 78
516 #endif
517 #if defined(KVM_CAP_S390_COW) || (defined(HAVE_DECL_KVM_CAP_S390_COW) && HAVE_DECL_KVM_CAP_S390_COW)
518 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
519 static_assert((KVM_CAP_S390_COW) == (79), "KVM_CAP_S390_COW != 79");
520 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
521 #else
522 # define KVM_CAP_S390_COW 79
523 #endif
524 #if defined(KVM_CAP_PPC_ALLOC_HTAB) || (defined(HAVE_DECL_KVM_CAP_PPC_ALLOC_HTAB) && HAVE_DECL_KVM_CAP_PPC_ALLOC_HTAB)
525 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
526 static_assert((KVM_CAP_PPC_ALLOC_HTAB) == (80), "KVM_CAP_PPC_ALLOC_HTAB != 80");
527 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
528 #else
529 # define KVM_CAP_PPC_ALLOC_HTAB 80
530 #endif
531 #if defined(KVM_CAP_READONLY_MEM) || (defined(HAVE_DECL_KVM_CAP_READONLY_MEM) && HAVE_DECL_KVM_CAP_READONLY_MEM)
532 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
533 static_assert((KVM_CAP_READONLY_MEM) == (81), "KVM_CAP_READONLY_MEM != 81");
534 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
535 #else
536 # define KVM_CAP_READONLY_MEM 81
537 #endif
538 #if defined(KVM_CAP_IRQFD_RESAMPLE) || (defined(HAVE_DECL_KVM_CAP_IRQFD_RESAMPLE) && HAVE_DECL_KVM_CAP_IRQFD_RESAMPLE)
539 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
540 static_assert((KVM_CAP_IRQFD_RESAMPLE) == (82), "KVM_CAP_IRQFD_RESAMPLE != 82");
541 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
542 #else
543 # define KVM_CAP_IRQFD_RESAMPLE 82
544 #endif
545 #if defined(KVM_CAP_PPC_BOOKE_WATCHDOG) || (defined(HAVE_DECL_KVM_CAP_PPC_BOOKE_WATCHDOG) && HAVE_DECL_KVM_CAP_PPC_BOOKE_WATCHDOG)
546 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
547 static_assert((KVM_CAP_PPC_BOOKE_WATCHDOG) == (83), "KVM_CAP_PPC_BOOKE_WATCHDOG != 83");
548 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
549 #else
550 # define KVM_CAP_PPC_BOOKE_WATCHDOG 83
551 #endif
552 #if defined(KVM_CAP_PPC_HTAB_FD) || (defined(HAVE_DECL_KVM_CAP_PPC_HTAB_FD) && HAVE_DECL_KVM_CAP_PPC_HTAB_FD)
553 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
554 static_assert((KVM_CAP_PPC_HTAB_FD) == (84), "KVM_CAP_PPC_HTAB_FD != 84");
555 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
556 #else
557 # define KVM_CAP_PPC_HTAB_FD 84
558 #endif
559 #if defined(KVM_CAP_S390_CSS_SUPPORT) || (defined(HAVE_DECL_KVM_CAP_S390_CSS_SUPPORT) && HAVE_DECL_KVM_CAP_S390_CSS_SUPPORT)
560 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
561 static_assert((KVM_CAP_S390_CSS_SUPPORT) == (85), "KVM_CAP_S390_CSS_SUPPORT != 85");
562 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
563 #else
564 # define KVM_CAP_S390_CSS_SUPPORT 85
565 #endif
566 #if defined(KVM_CAP_PPC_EPR) || (defined(HAVE_DECL_KVM_CAP_PPC_EPR) && HAVE_DECL_KVM_CAP_PPC_EPR)
567 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
568 static_assert((KVM_CAP_PPC_EPR) == (86), "KVM_CAP_PPC_EPR != 86");
569 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
570 #else
571 # define KVM_CAP_PPC_EPR 86
572 #endif
573 #if defined(KVM_CAP_ARM_PSCI) || (defined(HAVE_DECL_KVM_CAP_ARM_PSCI) && HAVE_DECL_KVM_CAP_ARM_PSCI)
574 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
575 static_assert((KVM_CAP_ARM_PSCI) == (87), "KVM_CAP_ARM_PSCI != 87");
576 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
577 #else
578 # define KVM_CAP_ARM_PSCI 87
579 #endif
580 #if defined(KVM_CAP_ARM_SET_DEVICE_ADDR) || (defined(HAVE_DECL_KVM_CAP_ARM_SET_DEVICE_ADDR) && HAVE_DECL_KVM_CAP_ARM_SET_DEVICE_ADDR)
581 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
582 static_assert((KVM_CAP_ARM_SET_DEVICE_ADDR) == (88), "KVM_CAP_ARM_SET_DEVICE_ADDR != 88");
583 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
584 #else
585 # define KVM_CAP_ARM_SET_DEVICE_ADDR 88
586 #endif
587 #if defined(KVM_CAP_DEVICE_CTRL) || (defined(HAVE_DECL_KVM_CAP_DEVICE_CTRL) && HAVE_DECL_KVM_CAP_DEVICE_CTRL)
588 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
589 static_assert((KVM_CAP_DEVICE_CTRL) == (89), "KVM_CAP_DEVICE_CTRL != 89");
590 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
591 #else
592 # define KVM_CAP_DEVICE_CTRL 89
593 #endif
594 #if defined(KVM_CAP_IRQ_MPIC) || (defined(HAVE_DECL_KVM_CAP_IRQ_MPIC) && HAVE_DECL_KVM_CAP_IRQ_MPIC)
595 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
596 static_assert((KVM_CAP_IRQ_MPIC) == (90), "KVM_CAP_IRQ_MPIC != 90");
597 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
598 #else
599 # define KVM_CAP_IRQ_MPIC 90
600 #endif
601 #if defined(KVM_CAP_PPC_RTAS) || (defined(HAVE_DECL_KVM_CAP_PPC_RTAS) && HAVE_DECL_KVM_CAP_PPC_RTAS)
602 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
603 static_assert((KVM_CAP_PPC_RTAS) == (91), "KVM_CAP_PPC_RTAS != 91");
604 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
605 #else
606 # define KVM_CAP_PPC_RTAS 91
607 #endif
608 #if defined(KVM_CAP_IRQ_XICS) || (defined(HAVE_DECL_KVM_CAP_IRQ_XICS) && HAVE_DECL_KVM_CAP_IRQ_XICS)
609 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
610 static_assert((KVM_CAP_IRQ_XICS) == (92), "KVM_CAP_IRQ_XICS != 92");
611 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
612 #else
613 # define KVM_CAP_IRQ_XICS 92
614 #endif
615 #if defined(KVM_CAP_ARM_EL1_32BIT) || (defined(HAVE_DECL_KVM_CAP_ARM_EL1_32BIT) && HAVE_DECL_KVM_CAP_ARM_EL1_32BIT)
616 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
617 static_assert((KVM_CAP_ARM_EL1_32BIT) == (93), "KVM_CAP_ARM_EL1_32BIT != 93");
618 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
619 #else
620 # define KVM_CAP_ARM_EL1_32BIT 93
621 #endif
622 #if defined(KVM_CAP_SPAPR_MULTITCE) || (defined(HAVE_DECL_KVM_CAP_SPAPR_MULTITCE) && HAVE_DECL_KVM_CAP_SPAPR_MULTITCE)
623 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
624 static_assert((KVM_CAP_SPAPR_MULTITCE) == (94), "KVM_CAP_SPAPR_MULTITCE != 94");
625 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
626 #else
627 # define KVM_CAP_SPAPR_MULTITCE 94
628 #endif
629 #if defined(KVM_CAP_EXT_EMUL_CPUID) || (defined(HAVE_DECL_KVM_CAP_EXT_EMUL_CPUID) && HAVE_DECL_KVM_CAP_EXT_EMUL_CPUID)
630 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
631 static_assert((KVM_CAP_EXT_EMUL_CPUID) == (95), "KVM_CAP_EXT_EMUL_CPUID != 95");
632 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
633 #else
634 # define KVM_CAP_EXT_EMUL_CPUID 95
635 #endif
636 #if defined(KVM_CAP_HYPERV_TIME) || (defined(HAVE_DECL_KVM_CAP_HYPERV_TIME) && HAVE_DECL_KVM_CAP_HYPERV_TIME)
637 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
638 static_assert((KVM_CAP_HYPERV_TIME) == (96), "KVM_CAP_HYPERV_TIME != 96");
639 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
640 #else
641 # define KVM_CAP_HYPERV_TIME 96
642 #endif
643 #if defined(KVM_CAP_IOAPIC_POLARITY_IGNORED) || (defined(HAVE_DECL_KVM_CAP_IOAPIC_POLARITY_IGNORED) && HAVE_DECL_KVM_CAP_IOAPIC_POLARITY_IGNORED)
644 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
645 static_assert((KVM_CAP_IOAPIC_POLARITY_IGNORED) == (97), "KVM_CAP_IOAPIC_POLARITY_IGNORED != 97");
646 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
647 #else
648 # define KVM_CAP_IOAPIC_POLARITY_IGNORED 97
649 #endif
650 #if defined(KVM_CAP_ENABLE_CAP_VM) || (defined(HAVE_DECL_KVM_CAP_ENABLE_CAP_VM) && HAVE_DECL_KVM_CAP_ENABLE_CAP_VM)
651 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
652 static_assert((KVM_CAP_ENABLE_CAP_VM) == (98), "KVM_CAP_ENABLE_CAP_VM != 98");
653 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
654 #else
655 # define KVM_CAP_ENABLE_CAP_VM 98
656 #endif
657 #if defined(KVM_CAP_S390_IRQCHIP) || (defined(HAVE_DECL_KVM_CAP_S390_IRQCHIP) && HAVE_DECL_KVM_CAP_S390_IRQCHIP)
658 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
659 static_assert((KVM_CAP_S390_IRQCHIP) == (99), "KVM_CAP_S390_IRQCHIP != 99");
660 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
661 #else
662 # define KVM_CAP_S390_IRQCHIP 99
663 #endif
664 #if defined(KVM_CAP_IOEVENTFD_NO_LENGTH) || (defined(HAVE_DECL_KVM_CAP_IOEVENTFD_NO_LENGTH) && HAVE_DECL_KVM_CAP_IOEVENTFD_NO_LENGTH)
665 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
666 static_assert((KVM_CAP_IOEVENTFD_NO_LENGTH) == (100), "KVM_CAP_IOEVENTFD_NO_LENGTH != 100");
667 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
668 #else
669 # define KVM_CAP_IOEVENTFD_NO_LENGTH 100
670 #endif
671 #if defined(KVM_CAP_VM_ATTRIBUTES) || (defined(HAVE_DECL_KVM_CAP_VM_ATTRIBUTES) && HAVE_DECL_KVM_CAP_VM_ATTRIBUTES)
672 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
673 static_assert((KVM_CAP_VM_ATTRIBUTES) == (101), "KVM_CAP_VM_ATTRIBUTES != 101");
674 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
675 #else
676 # define KVM_CAP_VM_ATTRIBUTES 101
677 #endif
678 #if defined(KVM_CAP_ARM_PSCI_0_2) || (defined(HAVE_DECL_KVM_CAP_ARM_PSCI_0_2) && HAVE_DECL_KVM_CAP_ARM_PSCI_0_2)
679 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
680 static_assert((KVM_CAP_ARM_PSCI_0_2) == (102), "KVM_CAP_ARM_PSCI_0_2 != 102");
681 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
682 #else
683 # define KVM_CAP_ARM_PSCI_0_2 102
684 #endif
685 #if defined(KVM_CAP_PPC_FIXUP_HCALL) || (defined(HAVE_DECL_KVM_CAP_PPC_FIXUP_HCALL) && HAVE_DECL_KVM_CAP_PPC_FIXUP_HCALL)
686 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
687 static_assert((KVM_CAP_PPC_FIXUP_HCALL) == (103), "KVM_CAP_PPC_FIXUP_HCALL != 103");
688 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
689 #else
690 # define KVM_CAP_PPC_FIXUP_HCALL 103
691 #endif
692 #if defined(KVM_CAP_PPC_ENABLE_HCALL) || (defined(HAVE_DECL_KVM_CAP_PPC_ENABLE_HCALL) && HAVE_DECL_KVM_CAP_PPC_ENABLE_HCALL)
693 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
694 static_assert((KVM_CAP_PPC_ENABLE_HCALL) == (104), "KVM_CAP_PPC_ENABLE_HCALL != 104");
695 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
696 #else
697 # define KVM_CAP_PPC_ENABLE_HCALL 104
698 #endif
699 #if defined(KVM_CAP_CHECK_EXTENSION_VM) || (defined(HAVE_DECL_KVM_CAP_CHECK_EXTENSION_VM) && HAVE_DECL_KVM_CAP_CHECK_EXTENSION_VM)
700 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
701 static_assert((KVM_CAP_CHECK_EXTENSION_VM) == (105), "KVM_CAP_CHECK_EXTENSION_VM != 105");
702 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
703 #else
704 # define KVM_CAP_CHECK_EXTENSION_VM 105
705 #endif
706 #if defined(KVM_CAP_S390_USER_SIGP) || (defined(HAVE_DECL_KVM_CAP_S390_USER_SIGP) && HAVE_DECL_KVM_CAP_S390_USER_SIGP)
707 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
708 static_assert((KVM_CAP_S390_USER_SIGP) == (106), "KVM_CAP_S390_USER_SIGP != 106");
709 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
710 #else
711 # define KVM_CAP_S390_USER_SIGP 106
712 #endif
713 #if defined(KVM_CAP_S390_VECTOR_REGISTERS) || (defined(HAVE_DECL_KVM_CAP_S390_VECTOR_REGISTERS) && HAVE_DECL_KVM_CAP_S390_VECTOR_REGISTERS)
714 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
715 static_assert((KVM_CAP_S390_VECTOR_REGISTERS) == (107), "KVM_CAP_S390_VECTOR_REGISTERS != 107");
716 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
717 #else
718 # define KVM_CAP_S390_VECTOR_REGISTERS 107
719 #endif
720 #if defined(KVM_CAP_S390_MEM_OP) || (defined(HAVE_DECL_KVM_CAP_S390_MEM_OP) && HAVE_DECL_KVM_CAP_S390_MEM_OP)
721 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
722 static_assert((KVM_CAP_S390_MEM_OP) == (108), "KVM_CAP_S390_MEM_OP != 108");
723 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
724 #else
725 # define KVM_CAP_S390_MEM_OP 108
726 #endif
727 #if defined(KVM_CAP_S390_USER_STSI) || (defined(HAVE_DECL_KVM_CAP_S390_USER_STSI) && HAVE_DECL_KVM_CAP_S390_USER_STSI)
728 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
729 static_assert((KVM_CAP_S390_USER_STSI) == (109), "KVM_CAP_S390_USER_STSI != 109");
730 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
731 #else
732 # define KVM_CAP_S390_USER_STSI 109
733 #endif
734 #if defined(KVM_CAP_S390_SKEYS) || (defined(HAVE_DECL_KVM_CAP_S390_SKEYS) && HAVE_DECL_KVM_CAP_S390_SKEYS)
735 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
736 static_assert((KVM_CAP_S390_SKEYS) == (110), "KVM_CAP_S390_SKEYS != 110");
737 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
738 #else
739 # define KVM_CAP_S390_SKEYS 110
740 #endif
741 #if defined(KVM_CAP_MIPS_FPU) || (defined(HAVE_DECL_KVM_CAP_MIPS_FPU) && HAVE_DECL_KVM_CAP_MIPS_FPU)
742 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
743 static_assert((KVM_CAP_MIPS_FPU) == (111), "KVM_CAP_MIPS_FPU != 111");
744 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
745 #else
746 # define KVM_CAP_MIPS_FPU 111
747 #endif
748 #if defined(KVM_CAP_MIPS_MSA) || (defined(HAVE_DECL_KVM_CAP_MIPS_MSA) && HAVE_DECL_KVM_CAP_MIPS_MSA)
749 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
750 static_assert((KVM_CAP_MIPS_MSA) == (112), "KVM_CAP_MIPS_MSA != 112");
751 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
752 #else
753 # define KVM_CAP_MIPS_MSA 112
754 #endif
755 #if defined(KVM_CAP_S390_INJECT_IRQ) || (defined(HAVE_DECL_KVM_CAP_S390_INJECT_IRQ) && HAVE_DECL_KVM_CAP_S390_INJECT_IRQ)
756 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
757 static_assert((KVM_CAP_S390_INJECT_IRQ) == (113), "KVM_CAP_S390_INJECT_IRQ != 113");
758 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
759 #else
760 # define KVM_CAP_S390_INJECT_IRQ 113
761 #endif
762 #if defined(KVM_CAP_S390_IRQ_STATE) || (defined(HAVE_DECL_KVM_CAP_S390_IRQ_STATE) && HAVE_DECL_KVM_CAP_S390_IRQ_STATE)
763 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
764 static_assert((KVM_CAP_S390_IRQ_STATE) == (114), "KVM_CAP_S390_IRQ_STATE != 114");
765 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
766 #else
767 # define KVM_CAP_S390_IRQ_STATE 114
768 #endif
769 #if defined(KVM_CAP_PPC_HWRNG) || (defined(HAVE_DECL_KVM_CAP_PPC_HWRNG) && HAVE_DECL_KVM_CAP_PPC_HWRNG)
770 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
771 static_assert((KVM_CAP_PPC_HWRNG) == (115), "KVM_CAP_PPC_HWRNG != 115");
772 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
773 #else
774 # define KVM_CAP_PPC_HWRNG 115
775 #endif
776 #if defined(KVM_CAP_DISABLE_QUIRKS) || (defined(HAVE_DECL_KVM_CAP_DISABLE_QUIRKS) && HAVE_DECL_KVM_CAP_DISABLE_QUIRKS)
777 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
778 static_assert((KVM_CAP_DISABLE_QUIRKS) == (116), "KVM_CAP_DISABLE_QUIRKS != 116");
779 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
780 #else
781 # define KVM_CAP_DISABLE_QUIRKS 116
782 #endif
783 #if defined(KVM_CAP_X86_SMM) || (defined(HAVE_DECL_KVM_CAP_X86_SMM) && HAVE_DECL_KVM_CAP_X86_SMM)
784 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
785 static_assert((KVM_CAP_X86_SMM) == (117), "KVM_CAP_X86_SMM != 117");
786 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
787 #else
788 # define KVM_CAP_X86_SMM 117
789 #endif
790 #if defined(KVM_CAP_MULTI_ADDRESS_SPACE) || (defined(HAVE_DECL_KVM_CAP_MULTI_ADDRESS_SPACE) && HAVE_DECL_KVM_CAP_MULTI_ADDRESS_SPACE)
791 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
792 static_assert((KVM_CAP_MULTI_ADDRESS_SPACE) == (118), "KVM_CAP_MULTI_ADDRESS_SPACE != 118");
793 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
794 #else
795 # define KVM_CAP_MULTI_ADDRESS_SPACE 118
796 #endif
797 #if defined(KVM_CAP_GUEST_DEBUG_HW_BPS) || (defined(HAVE_DECL_KVM_CAP_GUEST_DEBUG_HW_BPS) && HAVE_DECL_KVM_CAP_GUEST_DEBUG_HW_BPS)
798 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
799 static_assert((KVM_CAP_GUEST_DEBUG_HW_BPS) == (119), "KVM_CAP_GUEST_DEBUG_HW_BPS != 119");
800 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
801 #else
802 # define KVM_CAP_GUEST_DEBUG_HW_BPS 119
803 #endif
804 #if defined(KVM_CAP_GUEST_DEBUG_HW_WPS) || (defined(HAVE_DECL_KVM_CAP_GUEST_DEBUG_HW_WPS) && HAVE_DECL_KVM_CAP_GUEST_DEBUG_HW_WPS)
805 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
806 static_assert((KVM_CAP_GUEST_DEBUG_HW_WPS) == (120), "KVM_CAP_GUEST_DEBUG_HW_WPS != 120");
807 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
808 #else
809 # define KVM_CAP_GUEST_DEBUG_HW_WPS 120
810 #endif
811 #if defined(KVM_CAP_SPLIT_IRQCHIP) || (defined(HAVE_DECL_KVM_CAP_SPLIT_IRQCHIP) && HAVE_DECL_KVM_CAP_SPLIT_IRQCHIP)
812 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
813 static_assert((KVM_CAP_SPLIT_IRQCHIP) == (121), "KVM_CAP_SPLIT_IRQCHIP != 121");
814 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
815 #else
816 # define KVM_CAP_SPLIT_IRQCHIP 121
817 #endif
818 #if defined(KVM_CAP_IOEVENTFD_ANY_LENGTH) || (defined(HAVE_DECL_KVM_CAP_IOEVENTFD_ANY_LENGTH) && HAVE_DECL_KVM_CAP_IOEVENTFD_ANY_LENGTH)
819 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
820 static_assert((KVM_CAP_IOEVENTFD_ANY_LENGTH) == (122), "KVM_CAP_IOEVENTFD_ANY_LENGTH != 122");
821 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
822 #else
823 # define KVM_CAP_IOEVENTFD_ANY_LENGTH 122
824 #endif
825 #if defined(KVM_CAP_HYPERV_SYNIC) || (defined(HAVE_DECL_KVM_CAP_HYPERV_SYNIC) && HAVE_DECL_KVM_CAP_HYPERV_SYNIC)
826 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
827 static_assert((KVM_CAP_HYPERV_SYNIC) == (123), "KVM_CAP_HYPERV_SYNIC != 123");
828 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
829 #else
830 # define KVM_CAP_HYPERV_SYNIC 123
831 #endif
832 #if defined(KVM_CAP_S390_RI) || (defined(HAVE_DECL_KVM_CAP_S390_RI) && HAVE_DECL_KVM_CAP_S390_RI)
833 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
834 static_assert((KVM_CAP_S390_RI) == (124), "KVM_CAP_S390_RI != 124");
835 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
836 #else
837 # define KVM_CAP_S390_RI 124
838 #endif
839 #if defined(KVM_CAP_SPAPR_TCE_64) || (defined(HAVE_DECL_KVM_CAP_SPAPR_TCE_64) && HAVE_DECL_KVM_CAP_SPAPR_TCE_64)
840 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
841 static_assert((KVM_CAP_SPAPR_TCE_64) == (125), "KVM_CAP_SPAPR_TCE_64 != 125");
842 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
843 #else
844 # define KVM_CAP_SPAPR_TCE_64 125
845 #endif
846 #if defined(KVM_CAP_ARM_PMU_V3) || (defined(HAVE_DECL_KVM_CAP_ARM_PMU_V3) && HAVE_DECL_KVM_CAP_ARM_PMU_V3)
847 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
848 static_assert((KVM_CAP_ARM_PMU_V3) == (126), "KVM_CAP_ARM_PMU_V3 != 126");
849 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
850 #else
851 # define KVM_CAP_ARM_PMU_V3 126
852 #endif
853 #if defined(KVM_CAP_VCPU_ATTRIBUTES) || (defined(HAVE_DECL_KVM_CAP_VCPU_ATTRIBUTES) && HAVE_DECL_KVM_CAP_VCPU_ATTRIBUTES)
854 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
855 static_assert((KVM_CAP_VCPU_ATTRIBUTES) == (127), "KVM_CAP_VCPU_ATTRIBUTES != 127");
856 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
857 #else
858 # define KVM_CAP_VCPU_ATTRIBUTES 127
859 #endif
860 #if defined(KVM_CAP_MAX_VCPU_ID) || (defined(HAVE_DECL_KVM_CAP_MAX_VCPU_ID) && HAVE_DECL_KVM_CAP_MAX_VCPU_ID)
861 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
862 static_assert((KVM_CAP_MAX_VCPU_ID) == (128), "KVM_CAP_MAX_VCPU_ID != 128");
863 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
864 #else
865 # define KVM_CAP_MAX_VCPU_ID 128
866 #endif
867 #if defined(KVM_CAP_X2APIC_API) || (defined(HAVE_DECL_KVM_CAP_X2APIC_API) && HAVE_DECL_KVM_CAP_X2APIC_API)
868 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
869 static_assert((KVM_CAP_X2APIC_API) == (129), "KVM_CAP_X2APIC_API != 129");
870 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
871 #else
872 # define KVM_CAP_X2APIC_API 129
873 #endif
874 #if defined(KVM_CAP_S390_USER_INSTR0) || (defined(HAVE_DECL_KVM_CAP_S390_USER_INSTR0) && HAVE_DECL_KVM_CAP_S390_USER_INSTR0)
875 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
876 static_assert((KVM_CAP_S390_USER_INSTR0) == (130), "KVM_CAP_S390_USER_INSTR0 != 130");
877 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
878 #else
879 # define KVM_CAP_S390_USER_INSTR0 130
880 #endif
881 #if defined(KVM_CAP_MSI_DEVID) || (defined(HAVE_DECL_KVM_CAP_MSI_DEVID) && HAVE_DECL_KVM_CAP_MSI_DEVID)
882 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
883 static_assert((KVM_CAP_MSI_DEVID) == (131), "KVM_CAP_MSI_DEVID != 131");
884 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
885 #else
886 # define KVM_CAP_MSI_DEVID 131
887 #endif
888 #if defined(KVM_CAP_PPC_HTM) || (defined(HAVE_DECL_KVM_CAP_PPC_HTM) && HAVE_DECL_KVM_CAP_PPC_HTM)
889 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
890 static_assert((KVM_CAP_PPC_HTM) == (132), "KVM_CAP_PPC_HTM != 132");
891 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
892 #else
893 # define KVM_CAP_PPC_HTM 132
894 #endif
895 #if defined(KVM_CAP_SPAPR_RESIZE_HPT) || (defined(HAVE_DECL_KVM_CAP_SPAPR_RESIZE_HPT) && HAVE_DECL_KVM_CAP_SPAPR_RESIZE_HPT)
896 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
897 static_assert((KVM_CAP_SPAPR_RESIZE_HPT) == (133), "KVM_CAP_SPAPR_RESIZE_HPT != 133");
898 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
899 #else
900 # define KVM_CAP_SPAPR_RESIZE_HPT 133
901 #endif
902 #if defined(KVM_CAP_PPC_MMU_RADIX) || (defined(HAVE_DECL_KVM_CAP_PPC_MMU_RADIX) && HAVE_DECL_KVM_CAP_PPC_MMU_RADIX)
903 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
904 static_assert((KVM_CAP_PPC_MMU_RADIX) == (134), "KVM_CAP_PPC_MMU_RADIX != 134");
905 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
906 #else
907 # define KVM_CAP_PPC_MMU_RADIX 134
908 #endif
909 #if defined(KVM_CAP_PPC_MMU_HASH_V3) || (defined(HAVE_DECL_KVM_CAP_PPC_MMU_HASH_V3) && HAVE_DECL_KVM_CAP_PPC_MMU_HASH_V3)
910 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
911 static_assert((KVM_CAP_PPC_MMU_HASH_V3) == (135), "KVM_CAP_PPC_MMU_HASH_V3 != 135");
912 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
913 #else
914 # define KVM_CAP_PPC_MMU_HASH_V3 135
915 #endif
916 #if defined(KVM_CAP_IMMEDIATE_EXIT) || (defined(HAVE_DECL_KVM_CAP_IMMEDIATE_EXIT) && HAVE_DECL_KVM_CAP_IMMEDIATE_EXIT)
917 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
918 static_assert((KVM_CAP_IMMEDIATE_EXIT) == (136), "KVM_CAP_IMMEDIATE_EXIT != 136");
919 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
920 #else
921 # define KVM_CAP_IMMEDIATE_EXIT 136
922 #endif
923 #if defined(KVM_CAP_MIPS_VZ) || (defined(HAVE_DECL_KVM_CAP_MIPS_VZ) && HAVE_DECL_KVM_CAP_MIPS_VZ)
924 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
925 static_assert((KVM_CAP_MIPS_VZ) == (137), "KVM_CAP_MIPS_VZ != 137");
926 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
927 #else
928 # define KVM_CAP_MIPS_VZ 137
929 #endif
930 #if defined(KVM_CAP_MIPS_TE) || (defined(HAVE_DECL_KVM_CAP_MIPS_TE) && HAVE_DECL_KVM_CAP_MIPS_TE)
931 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
932 static_assert((KVM_CAP_MIPS_TE) == (138), "KVM_CAP_MIPS_TE != 138");
933 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
934 #else
935 # define KVM_CAP_MIPS_TE 138
936 #endif
937 #if defined(KVM_CAP_MIPS_64BIT) || (defined(HAVE_DECL_KVM_CAP_MIPS_64BIT) && HAVE_DECL_KVM_CAP_MIPS_64BIT)
938 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
939 static_assert((KVM_CAP_MIPS_64BIT) == (139), "KVM_CAP_MIPS_64BIT != 139");
940 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
941 #else
942 # define KVM_CAP_MIPS_64BIT 139
943 #endif
944 #if defined(KVM_CAP_S390_GS) || (defined(HAVE_DECL_KVM_CAP_S390_GS) && HAVE_DECL_KVM_CAP_S390_GS)
945 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
946 static_assert((KVM_CAP_S390_GS) == (140), "KVM_CAP_S390_GS != 140");
947 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
948 #else
949 # define KVM_CAP_S390_GS 140
950 #endif
951 #if defined(KVM_CAP_S390_AIS) || (defined(HAVE_DECL_KVM_CAP_S390_AIS) && HAVE_DECL_KVM_CAP_S390_AIS)
952 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
953 static_assert((KVM_CAP_S390_AIS) == (141), "KVM_CAP_S390_AIS != 141");
954 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
955 #else
956 # define KVM_CAP_S390_AIS 141
957 #endif
958 #if defined(KVM_CAP_SPAPR_TCE_VFIO) || (defined(HAVE_DECL_KVM_CAP_SPAPR_TCE_VFIO) && HAVE_DECL_KVM_CAP_SPAPR_TCE_VFIO)
959 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
960 static_assert((KVM_CAP_SPAPR_TCE_VFIO) == (142), "KVM_CAP_SPAPR_TCE_VFIO != 142");
961 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
962 #else
963 # define KVM_CAP_SPAPR_TCE_VFIO 142
964 #endif
965 #if defined(KVM_CAP_X86_DISABLE_EXITS) || (defined(HAVE_DECL_KVM_CAP_X86_DISABLE_EXITS) && HAVE_DECL_KVM_CAP_X86_DISABLE_EXITS)
966 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
967 static_assert((KVM_CAP_X86_DISABLE_EXITS) == (143), "KVM_CAP_X86_DISABLE_EXITS != 143");
968 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
969 #else
970 # define KVM_CAP_X86_DISABLE_EXITS 143
971 #endif
972 #if defined(KVM_CAP_ARM_USER_IRQ) || (defined(HAVE_DECL_KVM_CAP_ARM_USER_IRQ) && HAVE_DECL_KVM_CAP_ARM_USER_IRQ)
973 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
974 static_assert((KVM_CAP_ARM_USER_IRQ) == (144), "KVM_CAP_ARM_USER_IRQ != 144");
975 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
976 #else
977 # define KVM_CAP_ARM_USER_IRQ 144
978 #endif
979 #if defined(KVM_CAP_S390_CMMA_MIGRATION) || (defined(HAVE_DECL_KVM_CAP_S390_CMMA_MIGRATION) && HAVE_DECL_KVM_CAP_S390_CMMA_MIGRATION)
980 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
981 static_assert((KVM_CAP_S390_CMMA_MIGRATION) == (145), "KVM_CAP_S390_CMMA_MIGRATION != 145");
982 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
983 #else
984 # define KVM_CAP_S390_CMMA_MIGRATION 145
985 #endif
986 #if defined(KVM_CAP_PPC_FWNMI) || (defined(HAVE_DECL_KVM_CAP_PPC_FWNMI) && HAVE_DECL_KVM_CAP_PPC_FWNMI)
987 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
988 static_assert((KVM_CAP_PPC_FWNMI) == (146), "KVM_CAP_PPC_FWNMI != 146");
989 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
990 #else
991 # define KVM_CAP_PPC_FWNMI 146
992 #endif
993 #if defined(KVM_CAP_PPC_SMT_POSSIBLE) || (defined(HAVE_DECL_KVM_CAP_PPC_SMT_POSSIBLE) && HAVE_DECL_KVM_CAP_PPC_SMT_POSSIBLE)
994 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
995 static_assert((KVM_CAP_PPC_SMT_POSSIBLE) == (147), "KVM_CAP_PPC_SMT_POSSIBLE != 147");
996 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
997 #else
998 # define KVM_CAP_PPC_SMT_POSSIBLE 147
999 #endif
1000 #if defined(KVM_CAP_HYPERV_SYNIC2) || (defined(HAVE_DECL_KVM_CAP_HYPERV_SYNIC2) && HAVE_DECL_KVM_CAP_HYPERV_SYNIC2)
1001 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1002 static_assert((KVM_CAP_HYPERV_SYNIC2) == (148), "KVM_CAP_HYPERV_SYNIC2 != 148");
1003 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1004 #else
1005 # define KVM_CAP_HYPERV_SYNIC2 148
1006 #endif
1007 #if defined(KVM_CAP_HYPERV_VP_INDEX) || (defined(HAVE_DECL_KVM_CAP_HYPERV_VP_INDEX) && HAVE_DECL_KVM_CAP_HYPERV_VP_INDEX)
1008 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1009 static_assert((KVM_CAP_HYPERV_VP_INDEX) == (149), "KVM_CAP_HYPERV_VP_INDEX != 149");
1010 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1011 #else
1012 # define KVM_CAP_HYPERV_VP_INDEX 149
1013 #endif
1014 #if defined(KVM_CAP_S390_AIS_MIGRATION) || (defined(HAVE_DECL_KVM_CAP_S390_AIS_MIGRATION) && HAVE_DECL_KVM_CAP_S390_AIS_MIGRATION)
1015 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1016 static_assert((KVM_CAP_S390_AIS_MIGRATION) == (150), "KVM_CAP_S390_AIS_MIGRATION != 150");
1017 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1018 #else
1019 # define KVM_CAP_S390_AIS_MIGRATION 150
1020 #endif
1021 #if defined(KVM_CAP_PPC_GET_CPU_CHAR) || (defined(HAVE_DECL_KVM_CAP_PPC_GET_CPU_CHAR) && HAVE_DECL_KVM_CAP_PPC_GET_CPU_CHAR)
1022 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1023 static_assert((KVM_CAP_PPC_GET_CPU_CHAR) == (151), "KVM_CAP_PPC_GET_CPU_CHAR != 151");
1024 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1025 #else
1026 # define KVM_CAP_PPC_GET_CPU_CHAR 151
1027 #endif
1028 #if defined(KVM_CAP_S390_BPB) || (defined(HAVE_DECL_KVM_CAP_S390_BPB) && HAVE_DECL_KVM_CAP_S390_BPB)
1029 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1030 static_assert((KVM_CAP_S390_BPB) == (152), "KVM_CAP_S390_BPB != 152");
1031 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1032 #else
1033 # define KVM_CAP_S390_BPB 152
1034 #endif
1035 #if defined(KVM_CAP_GET_MSR_FEATURES) || (defined(HAVE_DECL_KVM_CAP_GET_MSR_FEATURES) && HAVE_DECL_KVM_CAP_GET_MSR_FEATURES)
1036 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1037 static_assert((KVM_CAP_GET_MSR_FEATURES) == (153), "KVM_CAP_GET_MSR_FEATURES != 153");
1038 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1039 #else
1040 # define KVM_CAP_GET_MSR_FEATURES 153
1041 #endif
1042 #if defined(KVM_CAP_HYPERV_EVENTFD) || (defined(HAVE_DECL_KVM_CAP_HYPERV_EVENTFD) && HAVE_DECL_KVM_CAP_HYPERV_EVENTFD)
1043 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1044 static_assert((KVM_CAP_HYPERV_EVENTFD) == (154), "KVM_CAP_HYPERV_EVENTFD != 154");
1045 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1046 #else
1047 # define KVM_CAP_HYPERV_EVENTFD 154
1048 #endif
1049 #if defined(KVM_CAP_HYPERV_TLBFLUSH) || (defined(HAVE_DECL_KVM_CAP_HYPERV_TLBFLUSH) && HAVE_DECL_KVM_CAP_HYPERV_TLBFLUSH)
1050 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1051 static_assert((KVM_CAP_HYPERV_TLBFLUSH) == (155), "KVM_CAP_HYPERV_TLBFLUSH != 155");
1052 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1053 #else
1054 # define KVM_CAP_HYPERV_TLBFLUSH 155
1055 #endif
1056 #if defined(KVM_CAP_S390_HPAGE_1M) || (defined(HAVE_DECL_KVM_CAP_S390_HPAGE_1M) && HAVE_DECL_KVM_CAP_S390_HPAGE_1M)
1057 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
1058 static_assert((KVM_CAP_S390_HPAGE_1M) == (156), "KVM_CAP_S390_HPAGE_1M != 156");
1059 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
1060 #else
1061 # define KVM_CAP_S390_HPAGE_1M 156
1062 #endif
1063 
1064 #ifndef XLAT_MACROS_ONLY
1065 
1066 # ifdef IN_MPERS
1067 
1068 #  error static const struct xlat kvm_cap in mpers mode
1069 
1070 # else
1071 
1072 static
1073 const struct xlat kvm_cap[] = {
1074  [KVM_CAP_IRQCHIP] = XLAT(KVM_CAP_IRQCHIP),
1075  [KVM_CAP_HLT] = XLAT(KVM_CAP_HLT),
1076  [KVM_CAP_MMU_SHADOW_CACHE_CONTROL] = XLAT(KVM_CAP_MMU_SHADOW_CACHE_CONTROL),
1077  [KVM_CAP_USER_MEMORY] = XLAT(KVM_CAP_USER_MEMORY),
1078  [KVM_CAP_SET_TSS_ADDR] = XLAT(KVM_CAP_SET_TSS_ADDR),
1079  [KVM_CAP_VAPIC] = XLAT(KVM_CAP_VAPIC),
1080  [KVM_CAP_EXT_CPUID] = XLAT(KVM_CAP_EXT_CPUID),
1081  [KVM_CAP_CLOCKSOURCE] = XLAT(KVM_CAP_CLOCKSOURCE),
1082  [KVM_CAP_NR_VCPUS] = XLAT(KVM_CAP_NR_VCPUS),
1083  [KVM_CAP_NR_MEMSLOTS] = XLAT(KVM_CAP_NR_MEMSLOTS),
1084  [KVM_CAP_PIT] = XLAT(KVM_CAP_PIT),
1085  [KVM_CAP_NOP_IO_DELAY] = XLAT(KVM_CAP_NOP_IO_DELAY),
1086  [KVM_CAP_PV_MMU] = XLAT(KVM_CAP_PV_MMU),
1087  [KVM_CAP_MP_STATE] = XLAT(KVM_CAP_MP_STATE),
1088  [KVM_CAP_COALESCED_MMIO] = XLAT(KVM_CAP_COALESCED_MMIO),
1089  [KVM_CAP_SYNC_MMU] = XLAT(KVM_CAP_SYNC_MMU),
1090  [KVM_CAP_IOMMU] = XLAT(KVM_CAP_IOMMU),
1091  [KVM_CAP_DESTROY_MEMORY_REGION_WORKS] = XLAT(KVM_CAP_DESTROY_MEMORY_REGION_WORKS),
1092  [KVM_CAP_USER_NMI] = XLAT(KVM_CAP_USER_NMI),
1093  [KVM_CAP_SET_GUEST_DEBUG] = XLAT(KVM_CAP_SET_GUEST_DEBUG),
1094  [KVM_CAP_REINJECT_CONTROL] = XLAT(KVM_CAP_REINJECT_CONTROL),
1095  [KVM_CAP_IRQ_ROUTING] = XLAT(KVM_CAP_IRQ_ROUTING),
1096  [KVM_CAP_IRQ_INJECT_STATUS] = XLAT(KVM_CAP_IRQ_INJECT_STATUS),
1097  [KVM_CAP_ASSIGN_DEV_IRQ] = XLAT(KVM_CAP_ASSIGN_DEV_IRQ),
1098  [KVM_CAP_JOIN_MEMORY_REGIONS_WORKS] = XLAT(KVM_CAP_JOIN_MEMORY_REGIONS_WORKS),
1099  [KVM_CAP_MCE] = XLAT(KVM_CAP_MCE),
1100  [KVM_CAP_IRQFD] = XLAT(KVM_CAP_IRQFD),
1101  [KVM_CAP_PIT2] = XLAT(KVM_CAP_PIT2),
1102  [KVM_CAP_SET_BOOT_CPU_ID] = XLAT(KVM_CAP_SET_BOOT_CPU_ID),
1103  [KVM_CAP_PIT_STATE2] = XLAT(KVM_CAP_PIT_STATE2),
1104  [KVM_CAP_IOEVENTFD] = XLAT(KVM_CAP_IOEVENTFD),
1105  [KVM_CAP_SET_IDENTITY_MAP_ADDR] = XLAT(KVM_CAP_SET_IDENTITY_MAP_ADDR),
1106  [KVM_CAP_XEN_HVM] = XLAT(KVM_CAP_XEN_HVM),
1107  [KVM_CAP_ADJUST_CLOCK] = XLAT(KVM_CAP_ADJUST_CLOCK),
1108  [KVM_CAP_INTERNAL_ERROR_DATA] = XLAT(KVM_CAP_INTERNAL_ERROR_DATA),
1109  [KVM_CAP_VCPU_EVENTS] = XLAT(KVM_CAP_VCPU_EVENTS),
1110  [KVM_CAP_S390_PSW] = XLAT(KVM_CAP_S390_PSW),
1111  [KVM_CAP_PPC_SEGSTATE] = XLAT(KVM_CAP_PPC_SEGSTATE),
1112  [KVM_CAP_HYPERV] = XLAT(KVM_CAP_HYPERV),
1113  [KVM_CAP_HYPERV_VAPIC] = XLAT(KVM_CAP_HYPERV_VAPIC),
1114  [KVM_CAP_HYPERV_SPIN] = XLAT(KVM_CAP_HYPERV_SPIN),
1115  [KVM_CAP_PCI_SEGMENT] = XLAT(KVM_CAP_PCI_SEGMENT),
1116  [KVM_CAP_PPC_PAIRED_SINGLES] = XLAT(KVM_CAP_PPC_PAIRED_SINGLES),
1117  [KVM_CAP_INTR_SHADOW] = XLAT(KVM_CAP_INTR_SHADOW),
1118  [KVM_CAP_DEBUGREGS] = XLAT(KVM_CAP_DEBUGREGS),
1119  [KVM_CAP_X86_ROBUST_SINGLESTEP] = XLAT(KVM_CAP_X86_ROBUST_SINGLESTEP),
1120  [KVM_CAP_PPC_OSI] = XLAT(KVM_CAP_PPC_OSI),
1121  [KVM_CAP_PPC_UNSET_IRQ] = XLAT(KVM_CAP_PPC_UNSET_IRQ),
1122  [KVM_CAP_ENABLE_CAP] = XLAT(KVM_CAP_ENABLE_CAP),
1123  [KVM_CAP_XSAVE] = XLAT(KVM_CAP_XSAVE),
1124  [KVM_CAP_XCRS] = XLAT(KVM_CAP_XCRS),
1125  [KVM_CAP_PPC_GET_PVINFO] = XLAT(KVM_CAP_PPC_GET_PVINFO),
1126  [KVM_CAP_PPC_IRQ_LEVEL] = XLAT(KVM_CAP_PPC_IRQ_LEVEL),
1127  [KVM_CAP_ASYNC_PF] = XLAT(KVM_CAP_ASYNC_PF),
1128  [KVM_CAP_TSC_CONTROL] = XLAT(KVM_CAP_TSC_CONTROL),
1129  [KVM_CAP_GET_TSC_KHZ] = XLAT(KVM_CAP_GET_TSC_KHZ),
1130  [KVM_CAP_PPC_BOOKE_SREGS] = XLAT(KVM_CAP_PPC_BOOKE_SREGS),
1131  [KVM_CAP_SPAPR_TCE] = XLAT(KVM_CAP_SPAPR_TCE),
1132  [KVM_CAP_PPC_SMT] = XLAT(KVM_CAP_PPC_SMT),
1133  [KVM_CAP_PPC_RMA] = XLAT(KVM_CAP_PPC_RMA),
1134  [KVM_CAP_MAX_VCPUS] = XLAT(KVM_CAP_MAX_VCPUS),
1135  [KVM_CAP_PPC_HIOR] = XLAT(KVM_CAP_PPC_HIOR),
1136  [KVM_CAP_PPC_PAPR] = XLAT(KVM_CAP_PPC_PAPR),
1137  [KVM_CAP_SW_TLB] = XLAT(KVM_CAP_SW_TLB),
1138  [KVM_CAP_ONE_REG] = XLAT(KVM_CAP_ONE_REG),
1139  [KVM_CAP_S390_GMAP] = XLAT(KVM_CAP_S390_GMAP),
1140  [KVM_CAP_TSC_DEADLINE_TIMER] = XLAT(KVM_CAP_TSC_DEADLINE_TIMER),
1141  [KVM_CAP_S390_UCONTROL] = XLAT(KVM_CAP_S390_UCONTROL),
1142  [KVM_CAP_SYNC_REGS] = XLAT(KVM_CAP_SYNC_REGS),
1143  [KVM_CAP_PCI_2_3] = XLAT(KVM_CAP_PCI_2_3),
1144  [KVM_CAP_KVMCLOCK_CTRL] = XLAT(KVM_CAP_KVMCLOCK_CTRL),
1145  [KVM_CAP_SIGNAL_MSI] = XLAT(KVM_CAP_SIGNAL_MSI),
1146  [KVM_CAP_PPC_GET_SMMU_INFO] = XLAT(KVM_CAP_PPC_GET_SMMU_INFO),
1147  [KVM_CAP_S390_COW] = XLAT(KVM_CAP_S390_COW),
1148  [KVM_CAP_PPC_ALLOC_HTAB] = XLAT(KVM_CAP_PPC_ALLOC_HTAB),
1149  [KVM_CAP_READONLY_MEM] = XLAT(KVM_CAP_READONLY_MEM),
1150  [KVM_CAP_IRQFD_RESAMPLE] = XLAT(KVM_CAP_IRQFD_RESAMPLE),
1151  [KVM_CAP_PPC_BOOKE_WATCHDOG] = XLAT(KVM_CAP_PPC_BOOKE_WATCHDOG),
1152  [KVM_CAP_PPC_HTAB_FD] = XLAT(KVM_CAP_PPC_HTAB_FD),
1153  [KVM_CAP_S390_CSS_SUPPORT] = XLAT(KVM_CAP_S390_CSS_SUPPORT),
1154  [KVM_CAP_PPC_EPR] = XLAT(KVM_CAP_PPC_EPR),
1155  [KVM_CAP_ARM_PSCI] = XLAT(KVM_CAP_ARM_PSCI),
1156  [KVM_CAP_ARM_SET_DEVICE_ADDR] = XLAT(KVM_CAP_ARM_SET_DEVICE_ADDR),
1157  [KVM_CAP_DEVICE_CTRL] = XLAT(KVM_CAP_DEVICE_CTRL),
1158  [KVM_CAP_IRQ_MPIC] = XLAT(KVM_CAP_IRQ_MPIC),
1159  [KVM_CAP_PPC_RTAS] = XLAT(KVM_CAP_PPC_RTAS),
1160  [KVM_CAP_IRQ_XICS] = XLAT(KVM_CAP_IRQ_XICS),
1161  [KVM_CAP_ARM_EL1_32BIT] = XLAT(KVM_CAP_ARM_EL1_32BIT),
1162  [KVM_CAP_SPAPR_MULTITCE] = XLAT(KVM_CAP_SPAPR_MULTITCE),
1163  [KVM_CAP_EXT_EMUL_CPUID] = XLAT(KVM_CAP_EXT_EMUL_CPUID),
1164  [KVM_CAP_HYPERV_TIME] = XLAT(KVM_CAP_HYPERV_TIME),
1165  [KVM_CAP_IOAPIC_POLARITY_IGNORED] = XLAT(KVM_CAP_IOAPIC_POLARITY_IGNORED),
1166  [KVM_CAP_ENABLE_CAP_VM] = XLAT(KVM_CAP_ENABLE_CAP_VM),
1167  [KVM_CAP_S390_IRQCHIP] = XLAT(KVM_CAP_S390_IRQCHIP),
1168  [KVM_CAP_IOEVENTFD_NO_LENGTH] = XLAT(KVM_CAP_IOEVENTFD_NO_LENGTH),
1169  [KVM_CAP_VM_ATTRIBUTES] = XLAT(KVM_CAP_VM_ATTRIBUTES),
1170  [KVM_CAP_ARM_PSCI_0_2] = XLAT(KVM_CAP_ARM_PSCI_0_2),
1171  [KVM_CAP_PPC_FIXUP_HCALL] = XLAT(KVM_CAP_PPC_FIXUP_HCALL),
1172  [KVM_CAP_PPC_ENABLE_HCALL] = XLAT(KVM_CAP_PPC_ENABLE_HCALL),
1173  [KVM_CAP_CHECK_EXTENSION_VM] = XLAT(KVM_CAP_CHECK_EXTENSION_VM),
1174  [KVM_CAP_S390_USER_SIGP] = XLAT(KVM_CAP_S390_USER_SIGP),
1175  [KVM_CAP_S390_VECTOR_REGISTERS] = XLAT(KVM_CAP_S390_VECTOR_REGISTERS),
1176  [KVM_CAP_S390_MEM_OP] = XLAT(KVM_CAP_S390_MEM_OP),
1177  [KVM_CAP_S390_USER_STSI] = XLAT(KVM_CAP_S390_USER_STSI),
1178  [KVM_CAP_S390_SKEYS] = XLAT(KVM_CAP_S390_SKEYS),
1179  [KVM_CAP_MIPS_FPU] = XLAT(KVM_CAP_MIPS_FPU),
1180  [KVM_CAP_MIPS_MSA] = XLAT(KVM_CAP_MIPS_MSA),
1181  [KVM_CAP_S390_INJECT_IRQ] = XLAT(KVM_CAP_S390_INJECT_IRQ),
1182  [KVM_CAP_S390_IRQ_STATE] = XLAT(KVM_CAP_S390_IRQ_STATE),
1183  [KVM_CAP_PPC_HWRNG] = XLAT(KVM_CAP_PPC_HWRNG),
1184  [KVM_CAP_DISABLE_QUIRKS] = XLAT(KVM_CAP_DISABLE_QUIRKS),
1185  [KVM_CAP_X86_SMM] = XLAT(KVM_CAP_X86_SMM),
1186  [KVM_CAP_MULTI_ADDRESS_SPACE] = XLAT(KVM_CAP_MULTI_ADDRESS_SPACE),
1187  [KVM_CAP_GUEST_DEBUG_HW_BPS] = XLAT(KVM_CAP_GUEST_DEBUG_HW_BPS),
1188  [KVM_CAP_GUEST_DEBUG_HW_WPS] = XLAT(KVM_CAP_GUEST_DEBUG_HW_WPS),
1189  [KVM_CAP_SPLIT_IRQCHIP] = XLAT(KVM_CAP_SPLIT_IRQCHIP),
1190  [KVM_CAP_IOEVENTFD_ANY_LENGTH] = XLAT(KVM_CAP_IOEVENTFD_ANY_LENGTH),
1191  [KVM_CAP_HYPERV_SYNIC] = XLAT(KVM_CAP_HYPERV_SYNIC),
1192  [KVM_CAP_S390_RI] = XLAT(KVM_CAP_S390_RI),
1193  [KVM_CAP_SPAPR_TCE_64] = XLAT(KVM_CAP_SPAPR_TCE_64),
1194  [KVM_CAP_ARM_PMU_V3] = XLAT(KVM_CAP_ARM_PMU_V3),
1195  [KVM_CAP_VCPU_ATTRIBUTES] = XLAT(KVM_CAP_VCPU_ATTRIBUTES),
1196  [KVM_CAP_MAX_VCPU_ID] = XLAT(KVM_CAP_MAX_VCPU_ID),
1197  [KVM_CAP_X2APIC_API] = XLAT(KVM_CAP_X2APIC_API),
1198  [KVM_CAP_S390_USER_INSTR0] = XLAT(KVM_CAP_S390_USER_INSTR0),
1199  [KVM_CAP_MSI_DEVID] = XLAT(KVM_CAP_MSI_DEVID),
1200  [KVM_CAP_PPC_HTM] = XLAT(KVM_CAP_PPC_HTM),
1201  [KVM_CAP_SPAPR_RESIZE_HPT] = XLAT(KVM_CAP_SPAPR_RESIZE_HPT),
1202  [KVM_CAP_PPC_MMU_RADIX] = XLAT(KVM_CAP_PPC_MMU_RADIX),
1203  [KVM_CAP_PPC_MMU_HASH_V3] = XLAT(KVM_CAP_PPC_MMU_HASH_V3),
1204  [KVM_CAP_IMMEDIATE_EXIT] = XLAT(KVM_CAP_IMMEDIATE_EXIT),
1205  [KVM_CAP_MIPS_VZ] = XLAT(KVM_CAP_MIPS_VZ),
1206  [KVM_CAP_MIPS_TE] = XLAT(KVM_CAP_MIPS_TE),
1207  [KVM_CAP_MIPS_64BIT] = XLAT(KVM_CAP_MIPS_64BIT),
1208  [KVM_CAP_S390_GS] = XLAT(KVM_CAP_S390_GS),
1209  [KVM_CAP_S390_AIS] = XLAT(KVM_CAP_S390_AIS),
1210  [KVM_CAP_SPAPR_TCE_VFIO] = XLAT(KVM_CAP_SPAPR_TCE_VFIO),
1211  [KVM_CAP_X86_DISABLE_EXITS] = XLAT(KVM_CAP_X86_DISABLE_EXITS),
1212  [KVM_CAP_ARM_USER_IRQ] = XLAT(KVM_CAP_ARM_USER_IRQ),
1213  [KVM_CAP_S390_CMMA_MIGRATION] = XLAT(KVM_CAP_S390_CMMA_MIGRATION),
1214  [KVM_CAP_PPC_FWNMI] = XLAT(KVM_CAP_PPC_FWNMI),
1215  [KVM_CAP_PPC_SMT_POSSIBLE] = XLAT(KVM_CAP_PPC_SMT_POSSIBLE),
1216  [KVM_CAP_HYPERV_SYNIC2] = XLAT(KVM_CAP_HYPERV_SYNIC2),
1217  [KVM_CAP_HYPERV_VP_INDEX] = XLAT(KVM_CAP_HYPERV_VP_INDEX),
1218  [KVM_CAP_S390_AIS_MIGRATION] = XLAT(KVM_CAP_S390_AIS_MIGRATION),
1219  [KVM_CAP_PPC_GET_CPU_CHAR] = XLAT(KVM_CAP_PPC_GET_CPU_CHAR),
1220  [KVM_CAP_S390_BPB] = XLAT(KVM_CAP_S390_BPB),
1221  [KVM_CAP_GET_MSR_FEATURES] = XLAT(KVM_CAP_GET_MSR_FEATURES),
1222  [KVM_CAP_HYPERV_EVENTFD] = XLAT(KVM_CAP_HYPERV_EVENTFD),
1223  [KVM_CAP_HYPERV_TLBFLUSH] = XLAT(KVM_CAP_HYPERV_TLBFLUSH),
1224  [KVM_CAP_S390_HPAGE_1M] = XLAT(KVM_CAP_S390_HPAGE_1M),
1225  XLAT_END
1226 };
1227 
1228 # endif /* !IN_MPERS */
1229 
1230 #endif /* !XLAT_MACROS_ONLY */
1231