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