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