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