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[pmu_pebs] 216arch = x86_64 217file = pmu_pebs.flat 218extra_params = -cpu host,migratable=no 219check = /proc/sys/kernel/nmi_watchdog=0 220accel = kvm 221groups = pmu 222 223[vmware_backdoors] 224file = vmware_backdoors.flat 225extra_params = -machine vmport=on -cpu max 226check = /sys/module/kvm/parameters/enable_vmware_backdoor=Y 227arch = x86_64 228accel = kvm 229 230[realmode] 231file = realmode.flat 232 233[s3] 234file = s3.flat 235 236[setjmp] 237file = setjmp.flat 238 239[sieve] 240file = sieve.flat 241timeout = 180 242 243[syscall] 244file = syscall.flat 245arch = x86_64 246extra_params = -cpu Opteron_G1,vendor=AuthenticAMD 247 248[tsc] 249file = tsc.flat 250extra_params = -cpu kvm64,+rdtscp 251 252[tsc_adjust] 253file = tsc_adjust.flat 254extra_params = -cpu max 255 256[xsave] 257file = xsave.flat 258arch = x86_64 259extra_params = -cpu max 260 261[rmap_chain] 262file = rmap_chain.flat 263arch = x86_64 264 265[svm] 266file = svm.flat 267smp = 2 268extra_params = -cpu max,+svm -m 4g -append "-pause_filter_test" 269arch = x86_64 270groups = svm 271 272[svm_pause_filter] 273file = svm.flat 274extra_params = -cpu max,+svm -overcommit cpu-pm=on -m 4g -append pause_filter_test 275arch = x86_64 276groups = svm 277 278[svm_npt] 279file = svm_npt.flat 280smp = 2 281extra_params = -cpu max,+svm -m 4g 282arch = x86_64 283 284[taskswitch] 285file = taskswitch.flat 286arch = i386 287groups = tasks 288 289[taskswitch2] 290file = taskswitch2.flat 291arch = i386 292groups = tasks 293 294[kvmclock_test] 295file = kvmclock_test.flat 296smp = 2 297extra_params = --append "10000000 `date +%s`" 298 299[pcid-enabled] 300file = pcid.flat 301extra_params = -cpu qemu64,+pcid,+invpcid 302arch = x86_64 303groups = pcid 304 305[pcid-disabled] 306file = pcid.flat 307extra_params = -cpu qemu64,-pcid,-invpcid 308arch = x86_64 309groups = pcid 310 311[pcid-asymmetric] 312file = pcid.flat 313extra_params = -cpu qemu64,-pcid,+invpcid 314arch = x86_64 315groups = pcid 316 317[rdpru] 318file = rdpru.flat 319extra_params = -cpu max 320arch = x86_64 321 322[umip] 323file = umip.flat 324extra_params = -cpu qemu64,+umip 325 326[la57] 327file = la57.flat 328arch = i386 329 330[vmx] 331file = vmx.flat 332extra_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" 333arch = x86_64 334groups = vmx 335 336[ept] 337file = vmx.flat 338extra_params = -cpu max,host-phys-bits,+vmx -m 2560 -append "ept_access*" 339arch = x86_64 340groups = vmx 341 342[vmx_eoi_bitmap_ioapic_scan] 343file = vmx.flat 344smp = 2 345extra_params = -cpu max,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test 346arch = x86_64 347groups = vmx 348 349[vmx_hlt_with_rvi_test] 350file = vmx.flat 351extra_params = -cpu max,+vmx -append vmx_hlt_with_rvi_test 352arch = x86_64 353groups = vmx 354timeout = 10 355 356[vmx_apicv_test] 357file = vmx.flat 358extra_params = -cpu max,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test" 359arch = x86_64 360groups = vmx 361timeout = 10 362 363[vmx_apic_passthrough_thread] 364file = vmx.flat 365smp = 2 366extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_thread_test 367arch = x86_64 368groups = vmx 369 370[vmx_init_signal_test] 371file = vmx.flat 372smp = 2 373extra_params = -cpu max,+vmx -m 2048 -append vmx_init_signal_test 374arch = x86_64 375groups = vmx 376timeout = 10 377 378[vmx_sipi_signal_test] 379file = vmx.flat 380smp = 2 381extra_params = -cpu max,+vmx -m 2048 -append vmx_sipi_signal_test 382arch = x86_64 383groups = vmx 384timeout = 10 385 386[vmx_apic_passthrough_tpr_threshold_test] 387file = vmx.flat 388extra_params = -cpu max,+vmx -m 2048 -append vmx_apic_passthrough_tpr_threshold_test 389arch = x86_64 390groups = vmx 391timeout = 10 392 393[vmx_vmcs_shadow_test] 394file = vmx.flat 395extra_params = -cpu max,+vmx -append vmx_vmcs_shadow_test 396arch = x86_64 397groups = vmx 398timeout = 180 399 400[vmx_pf_exception_test] 401file = vmx.flat 402extra_params = -cpu max,+vmx -append "vmx_pf_exception_test" 403arch = x86_64 404groups = vmx nested_exception 405 406[vmx_pf_vpid_test] 407file = vmx.flat 408extra_params = -cpu max,+vmx -append "vmx_pf_vpid_test" 409arch = x86_64 410groups = vmx nested_exception 411timeout = 240 412 413[vmx_pf_invvpid_test] 414file = vmx.flat 415extra_params = -cpu max,+vmx -append "vmx_pf_invvpid_test" 416arch = x86_64 417groups = vmx nested_exception 418timeout = 240 419 420[vmx_pf_no_vpid_test] 421file = vmx.flat 422extra_params = -cpu max,+vmx -append "vmx_pf_no_vpid_test" 423arch = x86_64 424groups = vmx nested_exception 425timeout = 240 426 427[vmx_pf_exception_test_reduced_maxphyaddr] 428file = vmx.flat 429extra_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" 430arch = x86_64 431groups = vmx nested_exception 432check = /sys/module/kvm_intel/parameters/allow_smaller_maxphyaddr=Y 433 434[debug] 435file = debug.flat 436arch = x86_64 437 438[hyperv_synic] 439file = hyperv_synic.flat 440smp = 2 441extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev 442groups = hyperv 443 444[hyperv_connections] 445file = hyperv_connections.flat 446smp = 2 447extra_params = -cpu kvm64,hv_vpindex,hv_synic -device hyperv-testdev 448groups = hyperv 449 450[hyperv_stimer] 451file = hyperv_stimer.flat 452smp = 2 453extra_params = -cpu kvm64,hv_vpindex,hv_time,hv_synic,hv_stimer -device hyperv-testdev 454groups = hyperv 455 456[hyperv_clock] 457file = hyperv_clock.flat 458smp = 2 459extra_params = -cpu kvm64,hv_time 460arch = x86_64 461groups = hyperv 462check = /sys/devices/system/clocksource/clocksource0/current_clocksource=tsc 463 464[intel_iommu] 465file = intel-iommu.flat 466arch = x86_64 467timeout = 30 468smp = 4 469extra_params = -M q35,kernel-irqchip=split -device intel-iommu,intremap=on,eim=off -device edu 470 471[tsx-ctrl] 472file = tsx-ctrl.flat 473extra_params = -cpu max 474groups = tsx-ctrl 475 476[intel_cet] 477file = cet.flat 478arch = x86_64 479smp = 2 480extra_params = -enable-kvm -m 2048 -cpu host 481