2020-03-03 22:35:59 +09:00
# SPDX-License-Identifier: GPL-2.0-only
2020-10-29 21:17:01 +01:00
/aarch64/get-reg-list
2020-10-29 21:17:03 +01:00
/aarch64/get-reg-list-sve
2019-10-07 15:26:56 +02:00
/s390x/memop
2020-03-13 16:56:44 +01:00
/s390x/resets
2020-03-10 10:15:53 +01:00
/s390x/sync_regs_test
2018-09-18 19:54:26 +02:00
/x86_64/cr4_cpuid_sync_test
2020-06-08 13:23:45 +02:00
/x86_64/debug_regs
2018-10-19 16:38:16 +02:00
/x86_64/evmcs_test
2021-01-29 17:18:21 +01:00
/x86_64/get_cpuid_test
2021-03-18 15:56:29 +01:00
/x86_64/get_msr_index_features
2020-10-27 16:10:44 -07:00
/x86_64/kvm_pv_test
2021-03-18 15:09:49 +01:00
/x86_64/hyperv_clock
2019-05-06 07:19:10 -07:00
/x86_64/hyperv_cpuid
2019-05-31 14:14:52 +00:00
/x86_64/mmio_warning_test
2018-09-18 19:54:26 +02:00
/x86_64/platform_info_test
2021-03-18 16:16:24 +01:00
/x86_64/set_boot_cpu_id
2018-09-18 19:54:26 +02:00
/x86_64/set_sregs_test
2019-05-06 07:19:10 -07:00
/x86_64/smm_test
/x86_64/state_test
2020-03-10 10:15:53 +01:00
/x86_64/svm_vmcall_test
2018-09-18 19:54:26 +02:00
/x86_64/sync_regs_test
2020-11-06 07:39:26 -05:00
/x86_64/tsc_msrs_test
2020-10-12 12:47:16 -07:00
/x86_64/userspace_msr_exit_test
2020-10-26 11:09:22 -07:00
/x86_64/vmx_apic_access_test
2019-01-31 23:49:21 +01:00
/x86_64/vmx_close_while_nested_test
2019-10-07 15:26:56 +02:00
/x86_64/vmx_dirty_log_test
2020-11-06 07:39:26 -05:00
/x86_64/vmx_preemption_timer_test
2019-05-02 11:31:41 -07:00
/x86_64/vmx_set_nested_state_test
2018-09-18 19:54:26 +02:00
/x86_64/vmx_tsc_adjust_test
2020-11-05 14:38:23 -08:00
/x86_64/xapic_ipi_test
2021-02-10 10:26:05 -08:00
/x86_64/xen_shinfo_test
/x86_64/xen_vmcall_test
2019-10-21 16:30:28 -07:00
/x86_64/xss_msr_test
2021-02-01 13:10:39 +08:00
/x86_64/vmx_pmu_msrs_test
2020-03-10 10:15:53 +01:00
/demand_paging_test
2018-09-18 19:54:32 +02:00
/dirty_log_test
2020-10-27 16:37:33 -07:00
/dirty_log_perf_test
2021-02-13 00:14:52 +00:00
/hardware_disable_test
2019-07-31 16:28:51 +02:00
/kvm_create_max_vcpus
KVM: selftests: Add a test for kvm page table code
This test serves as a performance tester and a bug reproducer for
kvm page table code (GPA->HPA mappings), so it gives guidance for
people trying to make some improvement for kvm.
The function guest_code() can cover the conditions where a single vcpu or
multiple vcpus access guest pages within the same memory region, in three
VM stages(before dirty logging, during dirty logging, after dirty logging).
Besides, the backing src memory type(ANONYMOUS/THP/HUGETLB) of the tested
memory region can be specified by users, which means normal page mappings
or block mappings can be chosen by users to be created in the test.
If ANONYMOUS memory is specified, kvm will create normal page mappings
for the tested memory region before dirty logging, and update attributes
of the page mappings from RO to RW during dirty logging. If THP/HUGETLB
memory is specified, kvm will create block mappings for the tested memory
region before dirty logging, and split the blcok mappings into normal page
mappings during dirty logging, and coalesce the page mappings back into
block mappings after dirty logging is stopped.
So in summary, as a performance tester, this test can present the
performance of kvm creating/updating normal page mappings, or the
performance of kvm creating/splitting/recovering block mappings,
through execution time.
When we need to coalesce the page mappings back to block mappings after
dirty logging is stopped, we have to firstly invalidate *all* the TLB
entries for the page mappings right before installation of the block entry,
because a TLB conflict abort error could occur if we can't invalidate the
TLB entries fully. We have hit this TLB conflict twice on aarch64 software
implementation and fixed it. As this test can imulate process from dirty
logging enabled to dirty logging stopped of a VM with block mappings,
so it can also reproduce this TLB conflict abort due to inadequate TLB
invalidation when coalescing tables.
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20210330080856.14940-11-wangyanan55@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-03-30 16:08:56 +08:00
/kvm_page_table_test
2021-01-12 13:42:53 -08:00
/memslot_modification_stress_test
2020-04-10 16:17:06 -07:00
/set_memory_region_test
2020-03-13 16:56:44 +01:00
/steal_time