xref: /kvm-unit-tests/x86/unittests.cfg (revision 3dbf3c405853c55b231b4ee0d64036f257f6ed09)
1##############################################################################
2# unittest configuration
3#
4# x86 specifics:
5#
6# file = <name>.flat            # x86 uses .flat files
7# arch = i386|x86_64
8##############################################################################
9
10[apic-split]
11file = apic.flat
12smp = 2
13extra_params = -cpu qemu64,+x2apic,+tsc-deadline -machine kernel_irqchip=split
14arch = x86_64
15groups = apic
16
17[ioapic-split]
18file = ioapic.flat
19extra_params = -cpu qemu64 -machine kernel_irqchip=split
20arch = x86_64
21groups = apic
22
23[x2apic]
24file = apic.flat
25smp = 2
26extra_params = -cpu qemu64,+x2apic,+tsc-deadline
27arch = x86_64
28timeout = 30
29groups = apic
30
31# Hide x2APIC and don't create a Programmable Interval Timer (PIT, a.k.a 8254)
32# to allow testing SVM's AVIC, which is disabled if either is exposed to the guest.
33[xapic]
34file = apic.flat
35smp = 2
36extra_params = -cpu qemu64,-x2apic,+tsc-deadline -machine pit=off
37arch = x86_64
38timeout = 60
39groups = apic
40
41[ioapic]
42file = ioapic.flat
43smp = 4
44extra_params = -cpu qemu64,+x2apic
45arch = x86_64
46
47[cmpxchg8b]
48file = cmpxchg8b.flat
49arch = i386
50
51[smptest]
52file = smptest.flat
53smp = 2
54
55[smptest3]
56file = smptest.flat
57smp = 3
58
59[vmexit_cpuid]
60file = vmexit.flat
61extra_params = -append 'cpuid'
62groups = vmexit
63
64[vmexit_vmcall]
65file = vmexit.flat
66extra_params = -append 'vmcall'
67groups = vmexit
68
69[vmexit_mov_from_cr8]
70file = vmexit.flat
71extra_params = -append 'mov_from_cr8'
72groups = vmexit
73
74[vmexit_mov_to_cr8]
75file = vmexit.flat
76extra_params = -append 'mov_to_cr8'
77groups = vmexit
78
79[vmexit_inl_pmtimer]
80file = vmexit.flat
81extra_params = -append 'inl_from_pmtimer'
82groups = vmexit
83
84[vmexit_ipi]
85file = vmexit.flat
86smp = 2
87extra_params = -append 'ipi'
88groups = vmexit
89
90[vmexit_ipi_halt]
91file = vmexit.flat
92smp = 2
93extra_params = -append 'ipi_halt'
94groups = vmexit
95
96[vmexit_ple_round_robin]
97file = vmexit.flat
98extra_params = -append 'ple_round_robin'
99groups = vmexit
100
101[vmexit_tscdeadline]
102file = vmexit.flat
103groups = vmexit
104extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline
105
106[vmexit_tscdeadline_immed]
107file = vmexit.flat
108groups = vmexit
109extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed
110
111[vmexit_cr0_wp]
112file = vmexit.flat
113smp = 2
114extra_params = -append 'toggle_cr0_wp'
115groups = vmexit
116
117[vmexit_cr4_pge]
118file = vmexit.flat
119smp = 2
120extra_params = -append 'toggle_cr4_pge'
121groups = vmexit
122
123[access]
124file = access_test.flat
125arch = x86_64
126extra_params = -cpu max
127
128[access_fep]
129file = access_test.flat
130arch = x86_64
131extra_params = -cpu max -append force_emulation
132groups = nodefault
133timeout = 240
134
135[access-reduced-maxphyaddr]
136file = access_test.flat
137arch = x86_64
138extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off
139check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
140
141[smap]
142file = smap.flat
143extra_params = -cpu max
144
145[pku]
146file = pku.flat
147arch = x86_64
148extra_params = -cpu max
149
150[pks]
151file = pks.flat
152arch = x86_64
153extra_params = -cpu max
154
155[asyncpf]
156file = asyncpf.flat
157extra_params = -m 2048
158
159[emulator]
160file = emulator.flat
161
162[eventinj]
163file = eventinj.flat
164
165[hypercall]
166file = hypercall.flat
167
168[idt_test]
169file = idt_test.flat
170arch = x86_64
171
172#[init]
173#file = init.flat
174
175[memory]
176file = memory.flat
177extra_params = -cpu max
178arch = x86_64
179
180[msr]
181# Use GenuineIntel to ensure SYSENTER MSRs are fully preserved, and to test
182# SVM emulation of Intel CPU behavior.  Use the max CPU model so that 64-bit
183# support follows the host kernel.  Running a 32-bit guest on a 64-bit host
184# will fail due to shortcomings in KVM.
185file = msr.flat
186extra_params = -cpu max,vendor=GenuineIntel
187
188[pmu]
189file = pmu.flat
190extra_params = -cpu max
191check = /sys/module/kvm/parameters/enable_pmu=Y /proc/sys/kernel/nmi_watchdog=0
192accel = kvm
193groups = pmu
194
195[pmu_lbr]
196arch = x86_64
197file = pmu_lbr.flat
198extra_params = -cpu host,migratable=no
199check = /sys/module/kvm/parameters/enable_pmu=Y /proc/sys/kernel/nmi_watchdog=0 /sys/module/kvm/parameters/ignore_msrs=N
200accel = kvm
201groups = pmu
202
203[pmu_pebs]
204arch = x86_64
205file = pmu_pebs.flat
206extra_params = -cpu host,migratable=no
207check = /sys/module/kvm/parameters/enable_pmu=Y /proc/sys/kernel/nmi_watchdog=0
208accel = kvm
209groups = pmu
210
211[vmware_backdoors]
212file = vmware_backdoors.flat
213extra_params = -machine vmport=on -cpu max
214check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
215arch = x86_64
216accel = kvm
217
218[realmode]
219file = realmode.flat
220
221[s3]
222file = s3.flat
223
224[setjmp]
225file = setjmp.flat
226
227[sieve]
228file = sieve.flat
229timeout = 180
230
231[syscall]
232file = syscall.flat
233arch = x86_64
234extra_params = -cpu Opteron_G1,vendor=AuthenticAMD
235
236[tsc]
237file = tsc.flat
238extra_params = -cpu max
239
240[tsc_adjust]
241file = tsc_adjust.flat
242extra_params = -cpu max
243
244[xsave]
245file = xsave.flat
246arch = x86_64
247extra_params = -cpu max
248
249[rmap_chain]
250file = rmap_chain.flat
251arch = x86_64
252
253[svm]
254file = svm.flat
255smp = 2
256extra_params = -cpu max,+svm -m 4g -append "-pause_filter_test"
257arch = x86_64
258groups = svm
259
260[svm_pause_filter]
261file = svm.flat
262extra_params = -cpu max,+svm -overcommit cpu-pm=on -m 4g -append pause_filter_test
263arch = x86_64
264groups = svm
265
266[svm_npt]
267file = svm_npt.flat
268smp = 2
269extra_params = -cpu max,+svm -m 4g
270arch = x86_64
271
272[taskswitch]
273file = taskswitch.flat
274arch = i386
275groups = tasks
276
277[taskswitch2]
278file = taskswitch2.flat
279arch = i386
280groups = tasks
281
282[kvmclock_test]
283file = kvmclock_test.flat
284smp = 2
285extra_params = --append "10000000 `date +%s`"
286
287[pcid-enabled]
288file = pcid.flat
289extra_params = -cpu qemu64,+pcid,+invpcid
290arch = x86_64
291groups = pcid
292
293[pcid-disabled]
294file = pcid.flat
295extra_params = -cpu qemu64,-pcid,-invpcid
296arch = x86_64
297groups = pcid
298
299[pcid-asymmetric]
300file = pcid.flat
301extra_params = -cpu qemu64,-pcid,+invpcid
302arch = x86_64
303groups = pcid
304
305[rdpru]
306file = rdpru.flat
307extra_params = -cpu max
308arch = x86_64
309
310[umip]
311file = umip.flat
312extra_params = -cpu qemu64,+umip
313
314[la57]
315file = la57.flat
316arch = i386
317
318[vmx]
319file = vmx.flat
320extra_params = -cpu max,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -atomic_switch_overflow_msrs_test -vmx_init_signal_test -vmx_apic_passthrough_tpr_threshold_test -apic_reg_virt_test -virt_x2apic_mode_test -vmx_pf_exception_test -vmx_pf_exception_forced_emulation_test -vmx_pf_no_vpid_test -vmx_pf_invvpid_test -vmx_pf_vpid_test"
321arch = x86_64
322groups = vmx
323
324[ept]
325file = vmx.flat
326extra_params = -cpu max,host-phys-bits,+vmx -m 2560 -append "ept_access*"
327arch = x86_64
328groups = vmx
329
330[vmx_eoi_bitmap_ioapic_scan]
331file = vmx.flat
332smp = 2
333extra_params = -cpu max,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test
334arch = x86_64
335groups = vmx
336
337[vmx_hlt_with_rvi_test]
338file = vmx.flat
339extra_params = -cpu max,+vmx -append vmx_hlt_with_rvi_test
340arch = x86_64
341groups = vmx
342timeout = 10
343
344[vmx_apicv_test]
345file = vmx.flat
346extra_params = -cpu max,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test"
347arch = x86_64
348groups = vmx
349timeout = 10
350
351[vmx_apic_passthrough_thread]
352file = vmx.flat
353smp = 2
354extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_thread_test
355arch = x86_64
356groups = vmx
357
358[vmx_init_signal_test]
359file = vmx.flat
360smp = 2
361extra_params = -cpu max,+vmx -m 2048 -append vmx_init_signal_test
362arch = x86_64
363groups = vmx
364timeout = 10
365
366[vmx_sipi_signal_test]
367file = vmx.flat
368smp = 2
369extra_params = -cpu max,+vmx -m 2048 -append vmx_sipi_signal_test
370arch = x86_64
371groups = vmx
372timeout = 10
373
374[vmx_apic_passthrough_tpr_threshold_test]
375file = vmx.flat
376extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test
377arch = x86_64
378groups = vmx
379timeout = 10
380
381[vmx_vmcs_shadow_test]
382file = vmx.flat
383extra_params = -cpu max,+vmx -append vmx_vmcs_shadow_test
384arch = x86_64
385groups = vmx
386timeout = 180
387
388[vmx_pf_exception_test]
389file = vmx.flat
390extra_params = -cpu max,+vmx -append "vmx_pf_exception_test"
391arch = x86_64
392groups = vmx nested_exception
393
394[vmx_pf_exception_test_fep]
395file = vmx.flat
396extra_params = -cpu max,+vmx -append "vmx_pf_exception_forced_emulation_test"
397arch = x86_64
398groups = vmx nested_exception nodefault
399timeout = 240
400
401[vmx_pf_vpid_test]
402file = vmx.flat
403extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test"
404arch = x86_64
405groups = vmx nested_exception nodefault
406timeout = 240
407
408[vmx_pf_invvpid_test]
409file = vmx.flat
410extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test"
411arch = x86_64
412groups = vmx nested_exception nodefault
413timeout = 240
414
415[vmx_pf_no_vpid_test]
416file = vmx.flat
417extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test"
418arch = x86_64
419groups = vmx nested_exception nodefault
420timeout = 240
421
422[vmx_pf_exception_test_reduced_maxphyaddr]
423file = vmx.flat
424extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off,+vmx -append "vmx_pf_exception_test"
425arch = x86_64
426groups = vmx nested_exception
427check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
428
429[debug]
430file = debug.flat
431arch = x86_64
432
433[hyperv_synic]
434file = hyperv_synic.flat
435smp = 2
436extra_params = -cpu host,hv_passthrough -device hyperv-testdev
437groups = hyperv
438
439[hyperv_connections]
440file = hyperv_connections.flat
441smp = 2
442extra_params = -cpu host,hv_passthrough -device hyperv-testdev
443groups = hyperv
444
445[hyperv_stimer]
446file = hyperv_stimer.flat
447smp = 2
448extra_params = -cpu host,hv_passthrough
449groups = hyperv
450
451[hyperv_stimer_direct]
452file = hyperv_stimer.flat
453smp = 2
454extra_params = -cpu host,hv_passthrough -append direct
455groups = hyperv
456
457[hyperv_clock]
458file = hyperv_clock.flat
459smp = 2
460extra_params = -cpu host,hv_passthrough
461arch = x86_64
462groups = hyperv
463check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc
464
465[intel_iommu]
466file = intel-iommu.flat
467arch = x86_64
468timeout = 30
469smp = 4
470extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu
471
472[tsx-ctrl]
473file = tsx-ctrl.flat
474extra_params = -cpu max
475groups = tsx-ctrl
476
477[intel_cet]
478file = cet.flat
479arch = x86_64
480smp = 2
481extra_params = -enable-kvm -m 2048 -cpu host
482