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