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