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