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