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