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