xref: /kvm-unit-tests/x86/unittests.cfg (revision cf251b7106d54ef239ad0f34a3dbc9716b9f9ffe)
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
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[access]
117file = access.flat
118arch = x86_64
119extra_params = -cpu host
120
121[smap]
122file = smap.flat
123extra_params = -cpu host
124
125[pku]
126file = pku.flat
127arch = x86_64
128extra_params = -cpu host
129
130[asyncpf]
131file = asyncpf.flat
132extra_params = -m 2048
133
134[emulator]
135file = emulator.flat
136arch = x86_64
137
138[eventinj]
139file = eventinj.flat
140
141[hypercall]
142file = hypercall.flat
143
144[idt_test]
145file = idt_test.flat
146arch = x86_64
147
148#[init]
149#file = init.flat
150
151[memory]
152file = memory.flat
153extra_params = -cpu host
154arch = x86_64
155
156[msr]
157file = msr.flat
158
159[pmu]
160file = pmu.flat
161extra_params = -cpu host
162check = /proc/sys/kernel/nmi_watchdog=0
163
164[vmware_backdoors]
165file = vmware_backdoors.flat
166extra_params = -machine vmport=on -cpu host
167arch = x86_64
168
169[port80]
170file = port80.flat
171
172[realmode]
173file = realmode.flat
174
175[s3]
176file = s3.flat
177
178[setjmp]
179file = setjmp.flat
180
181[sieve]
182file = sieve.flat
183timeout = 180
184
185[syscall]
186file = syscall.flat
187arch = x86_64
188extra_params = -cpu Opteron_G1,vendor=AuthenticAMD
189
190[tsc]
191file = tsc.flat
192extra_params = -cpu kvm64,+rdtscp
193
194[tsc_adjust]
195file = tsc_adjust.flat
196extra_params = -cpu host
197
198[xsave]
199file = xsave.flat
200arch = x86_64
201extra_params = -cpu host
202
203[rmap_chain]
204file = rmap_chain.flat
205arch = x86_64
206
207[svm]
208file = svm.flat
209smp = 2
210extra_params = -cpu host,+svm
211arch = x86_64
212
213[taskswitch]
214file = taskswitch.flat
215arch = i386
216groups = tasks
217
218[taskswitch2]
219file = taskswitch2.flat
220arch = i386
221groups = tasks
222
223[kvmclock_test]
224file = kvmclock_test.flat
225smp = 2
226extra_params = --append "10000000 `date +%s`"
227
228[pcid]
229file = pcid.flat
230extra_params = -cpu qemu64,+pcid
231arch = x86_64
232
233[rdpru]
234file = rdpru.flat
235extra_params = -cpu host
236arch = x86_64
237
238[umip]
239file = umip.flat
240extra_params = -cpu qemu64,+umip
241
242[vmx]
243file = vmx.flat
244extra_params = -cpu host,+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"
245arch = x86_64
246groups = vmx
247
248[ept]
249file = vmx.flat
250extra_params = -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
251arch = x86_64
252groups = vmx
253
254[vmx_eoi_bitmap_ioapic_scan]
255file = vmx.flat
256smp = 2
257extra_params = -cpu host,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test
258arch = x86_64
259groups = vmx
260
261[vmx_hlt_with_rvi_test]
262file = vmx.flat
263extra_params = -cpu host,+vmx -append vmx_hlt_with_rvi_test
264arch = x86_64
265groups = vmx
266timeout = 10
267
268[vmx_apicv_test]
269file = vmx.flat
270extra_params = -cpu host,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test"
271arch = x86_64
272groups = vmx
273timeout = 10
274
275[vmx_apic_passthrough_thread]
276file = vmx.flat
277smp = 2
278extra_params = -cpu host,+vmx -m 2048 -append vmx_apic_passthrough_thread_test
279arch = x86_64
280groups = vmx
281
282[vmx_init_signal_test]
283file = vmx.flat
284smp = 2
285extra_params = -cpu host,+vmx -m 2048 -append vmx_init_signal_test
286arch = x86_64
287groups = vmx
288timeout = 10
289
290[vmx_apic_passthrough_tpr_threshold_test]
291file = vmx.flat
292extra_params = -cpu host,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test
293arch = x86_64
294groups = vmx
295timeout = 10
296
297[vmx_vmcs_shadow_test]
298file = vmx.flat
299extra_params = -cpu host,+vmx -append vmx_vmcs_shadow_test
300arch = x86_64
301groups = vmx
302
303[debug]
304file = debug.flat
305arch = x86_64
306
307[hyperv_synic]
308file = hyperv_synic.flat
309smp = 2
310extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
311groups = hyperv
312
313[hyperv_connections]
314file = hyperv_connections.flat
315smp = 2
316extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
317groups = hyperv
318
319[hyperv_stimer]
320file = hyperv_stimer.flat
321smp = 2
322extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev
323groups = hyperv
324
325[hyperv_clock]
326file = hyperv_clock.flat
327smp = 2
328extra_params = -cpu kvm64,hv_time
329arch = x86_64
330groups = hyperv
331
332[intel_iommu]
333file = intel-iommu.flat
334arch = x86_64
335timeout = 30
336smp = 4
337extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu
338
339[tsx-ctrl]
340file = tsx-ctrl.flat
341extra_params = -cpu host
342groups = tsx-ctrl
343