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 33groups = apic 34 35[ioapic-split] 36file = ioapic.flat 37extra_params = -cpu qemu64 -machine kernel_irqchip=split 38arch = x86_64 39groups = apic 40 41[x2apic] 42file = apic.flat 43smp = 2 44extra_params = -cpu qemu64,+x2apic,+tsc-deadline 45arch = x86_64 46timeout = 30 47groups = apic 48 49# Hide x2APIC and don't create a Programmable Interval Timer (PIT, a.k.a 8254) 50# to allow testing SVM's AVIC, which is disabled if either is exposed to the guest. 51[xapic] 52file = apic.flat 53smp = 2 54extra_params = -cpu qemu64,-x2apic,+tsc-deadline -machine pit=off 55arch = x86_64 56timeout = 60 57groups = apic 58 59[ioapic] 60file = ioapic.flat 61smp = 4 62extra_params = -cpu qemu64,+x2apic 63arch = x86_64 64 65[cmpxchg8b] 66file = cmpxchg8b.flat 67arch = i386 68 69[smptest] 70file = smptest.flat 71smp = 2 72 73[smptest3] 74file = smptest.flat 75smp = 3 76 77[vmexit_cpuid] 78file = vmexit.flat 79extra_params = -append 'cpuid' 80groups = vmexit 81 82[vmexit_vmcall] 83file = vmexit.flat 84extra_params = -append 'vmcall' 85groups = vmexit 86 87[vmexit_mov_from_cr8] 88file = vmexit.flat 89extra_params = -append 'mov_from_cr8' 90groups = vmexit 91 92[vmexit_mov_to_cr8] 93file = vmexit.flat 94extra_params = -append 'mov_to_cr8' 95groups = vmexit 96 97[vmexit_inl_pmtimer] 98file = vmexit.flat 99extra_params = -append 'inl_from_pmtimer' 100groups = vmexit 101 102[vmexit_ipi] 103file = vmexit.flat 104smp = 2 105extra_params = -append 'ipi' 106groups = vmexit 107 108[vmexit_ipi_halt] 109file = vmexit.flat 110smp = 2 111extra_params = -append 'ipi_halt' 112groups = vmexit 113 114[vmexit_ple_round_robin] 115file = vmexit.flat 116extra_params = -append 'ple_round_robin' 117groups = vmexit 118 119[vmexit_tscdeadline] 120file = vmexit.flat 121groups = vmexit 122extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline 123 124[vmexit_tscdeadline_immed] 125file = vmexit.flat 126groups = vmexit 127extra_params = -cpu qemu64,+x2apic,+tsc-deadline -append tscdeadline_immed 128 129[vmexit_cr0_wp] 130file = vmexit.flat 131smp = 2 132extra_params = -append 'toggle_cr0_wp' 133groups = vmexit 134 135[vmexit_cr4_pge] 136file = vmexit.flat 137smp = 2 138extra_params = -append 'toggle_cr4_pge' 139groups = vmexit 140 141[access] 142file = access_test.flat 143arch = x86_64 144extra_params = -cpu max 145 146[access_fep] 147file = access_test.flat 148arch = x86_64 149extra_params = -cpu max -append force_emulation 150groups = nodefault 151timeout = 240 152 153[access-reduced-maxphyaddr] 154file = access_test.flat 155arch = x86_64 156extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off 157check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y 158 159[smap] 160file = smap.flat 161extra_params = -cpu max 162 163[pku] 164file = pku.flat 165arch = x86_64 166extra_params = -cpu max 167 168[pks] 169file = pks.flat 170arch = x86_64 171extra_params = -cpu max 172 173[asyncpf] 174file = asyncpf.flat 175extra_params = -m 2048 176 177[emulator] 178file = emulator.flat 179 180[eventinj] 181file = eventinj.flat 182 183[hypercall] 184file = hypercall.flat 185 186[idt_test] 187file = idt_test.flat 188arch = x86_64 189 190#[init] 191#file = init.flat 192 193[memory] 194file = memory.flat 195extra_params = -cpu max 196arch = x86_64 197 198[msr] 199# Use GenuineIntel to ensure SYSENTER MSRs are fully preserved, and to test 200# SVM emulation of Intel CPU behavior. Use the max CPU model so that 64-bit 201# support follows the host kernel. Running a 32-bit guest on a 64-bit host 202# will fail due to shortcomings in KVM. 203file = msr.flat 204extra_params = -cpu max,vendor=GenuineIntel 205 206[pmu] 207file = pmu.flat 208extra_params = -cpu max 209check = /proc/sys/kernel/nmi_watchdog=0 210accel = kvm 211groups = pmu 212 213[pmu_lbr] 214arch = x86_64 215file = pmu_lbr.flat 216extra_params = -cpu host,migratable=no 217check = /sys/module/kvm/parameters/ignore_msrs=N 218check = /proc/sys/kernel/nmi_watchdog=0 219accel = kvm 220groups = pmu 221 222[pmu_pebs] 223arch = x86_64 224file = pmu_pebs.flat 225extra_params = -cpu host,migratable=no 226check = /proc/sys/kernel/nmi_watchdog=0 227accel = kvm 228groups = pmu 229 230[vmware_backdoors] 231file = vmware_backdoors.flat 232extra_params = -machine vmport=on -cpu max 233check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y 234arch = x86_64 235accel = kvm 236 237[realmode] 238file = realmode.flat 239 240[s3] 241file = s3.flat 242 243[setjmp] 244file = setjmp.flat 245 246[sieve] 247file = sieve.flat 248timeout = 180 249 250[syscall] 251file = syscall.flat 252arch = x86_64 253extra_params = -cpu Opteron_G1,vendor=AuthenticAMD 254 255[tsc] 256file = tsc.flat 257extra_params = -cpu max 258 259[tsc_adjust] 260file = tsc_adjust.flat 261extra_params = -cpu max 262 263[xsave] 264file = xsave.flat 265arch = x86_64 266extra_params = -cpu max 267 268[rmap_chain] 269file = rmap_chain.flat 270arch = x86_64 271 272[svm] 273file = svm.flat 274smp = 2 275extra_params = -cpu max,+svm -m 4g -append "-pause_filter_test" 276arch = x86_64 277groups = svm 278 279[svm_pause_filter] 280file = svm.flat 281extra_params = -cpu max,+svm -overcommit cpu-pm=on -m 4g -append pause_filter_test 282arch = x86_64 283groups = svm 284 285[svm_npt] 286file = svm_npt.flat 287smp = 2 288extra_params = -cpu max,+svm -m 4g 289arch = x86_64 290 291[taskswitch] 292file = taskswitch.flat 293arch = i386 294groups = tasks 295 296[taskswitch2] 297file = taskswitch2.flat 298arch = i386 299groups = tasks 300 301[kvmclock_test] 302file = kvmclock_test.flat 303smp = 2 304extra_params = --append "10000000 `date +%s`" 305 306[pcid-enabled] 307file = pcid.flat 308extra_params = -cpu qemu64,+pcid,+invpcid 309arch = x86_64 310groups = pcid 311 312[pcid-disabled] 313file = pcid.flat 314extra_params = -cpu qemu64,-pcid,-invpcid 315arch = x86_64 316groups = pcid 317 318[pcid-asymmetric] 319file = pcid.flat 320extra_params = -cpu qemu64,-pcid,+invpcid 321arch = x86_64 322groups = pcid 323 324[rdpru] 325file = rdpru.flat 326extra_params = -cpu max 327arch = x86_64 328 329[umip] 330file = umip.flat 331extra_params = -cpu qemu64,+umip 332 333[la57] 334file = la57.flat 335arch = i386 336 337[vmx] 338file = vmx.flat 339extra_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_exception_forced_emulation_test -vmx_pf_no_vpid_test -vmx_pf_invvpid_test -vmx_pf_vpid_test" 340arch = x86_64 341groups = vmx 342 343[ept] 344file = vmx.flat 345extra_params = -cpu max,host-phys-bits,+vmx -m 2560 -append "ept_access*" 346arch = x86_64 347groups = vmx 348 349[vmx_eoi_bitmap_ioapic_scan] 350file = vmx.flat 351smp = 2 352extra_params = -cpu max,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test 353arch = x86_64 354groups = vmx 355 356[vmx_hlt_with_rvi_test] 357file = vmx.flat 358extra_params = -cpu max,+vmx -append vmx_hlt_with_rvi_test 359arch = x86_64 360groups = vmx 361timeout = 10 362 363[vmx_apicv_test] 364file = vmx.flat 365extra_params = -cpu max,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test" 366arch = x86_64 367groups = vmx 368timeout = 10 369 370[vmx_apic_passthrough_thread] 371file = vmx.flat 372smp = 2 373extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_thread_test 374arch = x86_64 375groups = vmx 376 377[vmx_init_signal_test] 378file = vmx.flat 379smp = 2 380extra_params = -cpu max,+vmx -m 2048 -append vmx_init_signal_test 381arch = x86_64 382groups = vmx 383timeout = 10 384 385[vmx_sipi_signal_test] 386file = vmx.flat 387smp = 2 388extra_params = -cpu max,+vmx -m 2048 -append vmx_sipi_signal_test 389arch = x86_64 390groups = vmx 391timeout = 10 392 393[vmx_apic_passthrough_tpr_threshold_test] 394file = vmx.flat 395extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test 396arch = x86_64 397groups = vmx 398timeout = 10 399 400[vmx_vmcs_shadow_test] 401file = vmx.flat 402extra_params = -cpu max,+vmx -append vmx_vmcs_shadow_test 403arch = x86_64 404groups = vmx 405timeout = 180 406 407[vmx_pf_exception_test] 408file = vmx.flat 409extra_params = -cpu max,+vmx -append "vmx_pf_exception_test" 410arch = x86_64 411groups = vmx nested_exception 412 413[vmx_pf_exception_test_fep] 414file = vmx.flat 415extra_params = -cpu max,+vmx -append "vmx_pf_exception_forced_emulation_test" 416arch = x86_64 417groups = vmx nested_exception nodefault 418timeout = 240 419 420[vmx_pf_vpid_test] 421file = vmx.flat 422extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test" 423arch = x86_64 424groups = vmx nested_exception nodefault 425timeout = 240 426 427[vmx_pf_invvpid_test] 428file = vmx.flat 429extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test" 430arch = x86_64 431groups = vmx nested_exception nodefault 432timeout = 240 433 434[vmx_pf_no_vpid_test] 435file = vmx.flat 436extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test" 437arch = x86_64 438groups = vmx nested_exception nodefault 439timeout = 240 440 441[vmx_pf_exception_test_reduced_maxphyaddr] 442file = vmx.flat 443extra_params = -cpu IvyBridge,phys-bits=36,host-phys-bits=off,+vmx -append "vmx_pf_exception_test" 444arch = x86_64 445groups = vmx nested_exception 446check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y 447 448[debug] 449file = debug.flat 450arch = x86_64 451 452[hyperv_synic] 453file = hyperv_synic.flat 454smp = 2 455extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev 456groups = hyperv 457 458[hyperv_connections] 459file = hyperv_connections.flat 460smp = 2 461extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev 462groups = hyperv 463 464[hyperv_stimer] 465file = hyperv_stimer.flat 466smp = 2 467extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev 468groups = hyperv 469 470[hyperv_clock] 471file = hyperv_clock.flat 472smp = 2 473extra_params = -cpu kvm64,hv_time 474arch = x86_64 475groups = hyperv 476check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc 477 478[intel_iommu] 479file = intel-iommu.flat 480arch = x86_64 481timeout = 30 482smp = 4 483extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu 484 485[tsx-ctrl] 486file = tsx-ctrl.flat 487extra_params = -cpu max 488groups = tsx-ctrl 489 490[intel_cet] 491file = cet.flat 492arch = x86_64 493smp = 2 494extra_params = -enable-kvm -m 2048 -cpu host 495