xref: /kvm-unit-tests/x86/unittests.cfg (revision 97b5f9553a48a15296462dc4c6170200b0dd70b8)
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
167check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
168arch = x86_64
169
170[port80]
171file = port80.flat
172
173[realmode]
174file = realmode.flat
175
176[s3]
177file = s3.flat
178
179[setjmp]
180file = setjmp.flat
181
182[sieve]
183file = sieve.flat
184timeout = 180
185
186[syscall]
187file = syscall.flat
188arch = x86_64
189extra_params = -cpu Opteron_G1,vendor=AuthenticAMD
190
191[tsc]
192file = tsc.flat
193extra_params = -cpu kvm64,+rdtscp
194
195[tsc_adjust]
196file = tsc_adjust.flat
197extra_params = -cpu host
198
199[xsave]
200file = xsave.flat
201arch = x86_64
202extra_params = -cpu host
203
204[rmap_chain]
205file = rmap_chain.flat
206arch = x86_64
207
208[svm]
209file = svm.flat
210smp = 2
211extra_params = -cpu host,+svm
212arch = x86_64
213
214[taskswitch]
215file = taskswitch.flat
216arch = i386
217groups = tasks
218
219[taskswitch2]
220file = taskswitch2.flat
221arch = i386
222groups = tasks
223
224[kvmclock_test]
225file = kvmclock_test.flat
226smp = 2
227extra_params = --append "10000000 `date +%s`"
228
229[pcid]
230file = pcid.flat
231extra_params = -cpu qemu64,+pcid
232arch = x86_64
233
234[rdpru]
235file = rdpru.flat
236extra_params = -cpu host
237arch = x86_64
238
239[umip]
240file = umip.flat
241extra_params = -cpu qemu64,+umip
242
243[vmx]
244file = vmx.flat
245extra_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"
246arch = x86_64
247groups = vmx
248
249[ept]
250file = vmx.flat
251extra_params = -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
252arch = x86_64
253groups = vmx
254
255[vmx_eoi_bitmap_ioapic_scan]
256file = vmx.flat
257smp = 2
258extra_params = -cpu host,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test
259arch = x86_64
260groups = vmx
261
262[vmx_hlt_with_rvi_test]
263file = vmx.flat
264extra_params = -cpu host,+vmx -append vmx_hlt_with_rvi_test
265arch = x86_64
266groups = vmx
267timeout = 10
268
269[vmx_apicv_test]
270file = vmx.flat
271extra_params = -cpu host,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test"
272arch = x86_64
273groups = vmx
274timeout = 10
275
276[vmx_apic_passthrough_thread]
277file = vmx.flat
278smp = 2
279extra_params = -cpu host,+vmx -m 2048 -append vmx_apic_passthrough_thread_test
280arch = x86_64
281groups = vmx
282
283[vmx_init_signal_test]
284file = vmx.flat
285smp = 2
286extra_params = -cpu host,+vmx -m 2048 -append vmx_init_signal_test
287arch = x86_64
288groups = vmx
289timeout = 10
290
291[vmx_apic_passthrough_tpr_threshold_test]
292file = vmx.flat
293extra_params = -cpu host,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test
294arch = x86_64
295groups = vmx
296timeout = 10
297
298[vmx_vmcs_shadow_test]
299file = vmx.flat
300extra_params = -cpu host,+vmx -append vmx_vmcs_shadow_test
301arch = x86_64
302groups = vmx
303
304[debug]
305file = debug.flat
306arch = x86_64
307
308[hyperv_synic]
309file = hyperv_synic.flat
310smp = 2
311extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
312groups = hyperv
313
314[hyperv_connections]
315file = hyperv_connections.flat
316smp = 2
317extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
318groups = hyperv
319
320[hyperv_stimer]
321file = hyperv_stimer.flat
322smp = 2
323extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev
324groups = hyperv
325
326[hyperv_clock]
327file = hyperv_clock.flat
328smp = 2
329extra_params = -cpu kvm64,hv_time
330arch = x86_64
331groups = hyperv
332
333[intel_iommu]
334file = intel-iommu.flat
335arch = x86_64
336timeout = 30
337smp = 4
338extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu
339
340[tsx-ctrl]
341file = tsx-ctrl.flat
342extra_params = -cpu host
343groups = tsx-ctrl
344