xref: /kvm-unit-tests/x86/unittests.cfg (revision f1dcfd54130ca2b1851d46dffd7ffadbe5eb4a3b)
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_test.flat
118arch = x86_64
119extra_params = -cpu max
120
121[access-reduced-maxphyaddr]
122file = access_test.flat
123arch = x86_64
124extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off
125check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
126
127[smap]
128file = smap.flat
129extra_params = -cpu max
130
131[pku]
132file = pku.flat
133arch = x86_64
134extra_params = -cpu max
135
136[pks]
137file = pks.flat
138arch = x86_64
139extra_params = -cpu max
140
141[asyncpf]
142file = asyncpf.flat
143extra_params = -m 2048
144
145[emulator]
146file = emulator.flat
147arch = x86_64
148
149[eventinj]
150file = eventinj.flat
151
152[hypercall]
153file = hypercall.flat
154
155[idt_test]
156file = idt_test.flat
157arch = x86_64
158
159#[init]
160#file = init.flat
161
162[memory]
163file = memory.flat
164extra_params = -cpu max
165arch = x86_64
166
167[msr]
168# Use GenuineIntel to ensure SYSENTER MSRs are fully preserved, and to test
169# SVM emulation of Intel CPU behavior.  Use the max CPU model so that 64-bit
170# support follows the host kernel.  Running a 32-bit guest on a 64-bit host
171# will fail due to shortcomings in KVM.
172file = msr.flat
173extra_params = -cpu max,vendor=GenuineIntel
174
175[pmu]
176file = pmu.flat
177extra_params = -cpu max
178check = /proc/sys/kernel/nmi_watchdog=0
179accel = kvm
180
181[pmu_lbr]
182file = pmu_lbr.flat
183extra_params = -cpu host,migratable=no
184check = /sys/module/kvm/parameters/ignore_msrs=N
185check = /proc/sys/kernel/nmi_watchdog=0
186accel = kvm
187
188[pmu_emulation]
189file = pmu.flat
190arch = x86_64
191extra_params = -cpu max -append emulation
192check = /sys/module/kvm/parameters/force_emulation_prefix=Y
193accel = kvm
194
195[vmware_backdoors]
196file = vmware_backdoors.flat
197extra_params = -machine vmport=on -cpu max
198check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y
199arch = x86_64
200accel = kvm
201
202[realmode]
203file = realmode.flat
204
205[s3]
206file = s3.flat
207
208[setjmp]
209file = setjmp.flat
210
211[sieve]
212file = sieve.flat
213timeout = 180
214
215[syscall]
216file = syscall.flat
217arch = x86_64
218extra_params = -cpu Opteron_G1,vendor=AuthenticAMD
219
220[tsc]
221file = tsc.flat
222extra_params = -cpu kvm64,+rdtscp
223
224[tsc_adjust]
225file = tsc_adjust.flat
226extra_params = -cpu max
227
228[xsave]
229file = xsave.flat
230arch = x86_64
231extra_params = -cpu max
232
233[rmap_chain]
234file = rmap_chain.flat
235arch = x86_64
236
237[svm]
238file = svm.flat
239smp = 2
240extra_params = -cpu max,+svm -m 4g
241arch = x86_64
242
243[taskswitch]
244file = taskswitch.flat
245arch = i386
246groups = tasks
247
248[taskswitch2]
249file = taskswitch2.flat
250arch = i386
251groups = tasks
252
253[kvmclock_test]
254file = kvmclock_test.flat
255smp = 2
256extra_params = --append "10000000 `date +%s`"
257
258[pcid-enabled]
259file = pcid.flat
260extra_params = -cpu qemu64,+pcid,+invpcid
261arch = x86_64
262groups = pcid
263
264[pcid-disabled]
265file = pcid.flat
266extra_params = -cpu qemu64,-pcid,-invpcid
267arch = x86_64
268groups = pcid
269
270[pcid-asymmetric]
271file = pcid.flat
272extra_params = -cpu qemu64,-pcid,+invpcid
273arch = x86_64
274groups = pcid
275
276[rdpru]
277file = rdpru.flat
278extra_params = -cpu max
279arch = x86_64
280
281[umip]
282file = umip.flat
283extra_params = -cpu qemu64,+umip
284
285[la57]
286file = la57.flat
287arch = i386
288
289[vmx]
290file = vmx.flat
291extra_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"
292arch = x86_64
293groups = vmx
294
295[ept]
296file = vmx.flat
297extra_params = -cpu max,host-phys-bits,+vmx -m 2560 -append "ept_access*"
298arch = x86_64
299groups = vmx
300
301[vmx_eoi_bitmap_ioapic_scan]
302file = vmx.flat
303smp = 2
304extra_params = -cpu max,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test
305arch = x86_64
306groups = vmx
307
308[vmx_hlt_with_rvi_test]
309file = vmx.flat
310extra_params = -cpu max,+vmx -append vmx_hlt_with_rvi_test
311arch = x86_64
312groups = vmx
313timeout = 10
314
315[vmx_apicv_test]
316file = vmx.flat
317extra_params = -cpu max,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test"
318arch = x86_64
319groups = vmx
320timeout = 10
321
322[vmx_apic_passthrough_thread]
323file = vmx.flat
324smp = 2
325extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_thread_test
326arch = x86_64
327groups = vmx
328
329[vmx_init_signal_test]
330file = vmx.flat
331smp = 2
332extra_params = -cpu max,+vmx -m 2048 -append vmx_init_signal_test
333arch = x86_64
334groups = vmx
335timeout = 10
336
337[vmx_sipi_signal_test]
338file = vmx.flat
339smp = 2
340extra_params = -cpu max,+vmx -m 2048 -append vmx_sipi_signal_test
341arch = x86_64
342groups = vmx
343timeout = 10
344
345[vmx_apic_passthrough_tpr_threshold_test]
346file = vmx.flat
347extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test
348arch = x86_64
349groups = vmx
350timeout = 10
351
352[vmx_vmcs_shadow_test]
353file = vmx.flat
354extra_params = -cpu max,+vmx -append vmx_vmcs_shadow_test
355arch = x86_64
356groups = vmx
357timeout = 180
358
359[vmx_pf_exception_test]
360file = vmx.flat
361extra_params = -cpu max,+vmx -append "vmx_pf_exception_test"
362arch = x86_64
363groups = vmx nested_exception
364
365[vmx_pf_vpid_test]
366file = vmx.flat
367extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test"
368arch = x86_64
369groups = vmx nested_exception
370timeout = 240
371
372[vmx_pf_invvpid_test]
373file = vmx.flat
374extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test"
375arch = x86_64
376groups = vmx nested_exception
377timeout = 240
378
379[vmx_pf_no_vpid_test]
380file = vmx.flat
381extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test"
382arch = x86_64
383groups = vmx nested_exception
384timeout = 240
385
386[vmx_pf_exception_test_reduced_maxphyaddr]
387file = vmx.flat
388extra_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"
389arch = x86_64
390groups = vmx nested_exception
391check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y
392
393[debug]
394file = debug.flat
395arch = x86_64
396
397[hyperv_synic]
398file = hyperv_synic.flat
399smp = 2
400extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
401groups = hyperv
402
403[hyperv_connections]
404file = hyperv_connections.flat
405smp = 2
406extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev
407groups = hyperv
408
409[hyperv_stimer]
410file = hyperv_stimer.flat
411smp = 2
412extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev
413groups = hyperv
414
415[hyperv_clock]
416file = hyperv_clock.flat
417smp = 2
418extra_params = -cpu kvm64,hv_time
419arch = x86_64
420groups = hyperv
421check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc
422
423[intel_iommu]
424file = intel-iommu.flat
425arch = x86_64
426timeout = 30
427smp = 4
428extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu
429
430[tsx-ctrl]
431file = tsx-ctrl.flat
432extra_params = -cpu max
433groups = tsx-ctrl
434
435[intel_cet]
436file = cet.flat
437arch = x86_64
438smp = 2
439extra_params = -enable-kvm -m 2048 -cpu host
440