From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] selftests: kvm: list once tests that are valid on all architectures
Date: Fri, 4 Apr 2025 12:23:45 +0200 [thread overview]
Message-ID: <93f75341-a194-46e3-8b01-8d75a55fbe69@redhat.com> (raw)
In-Reply-To: <20250401141327.785520-1-pbonzini@redhat.com>
On 4/1/25 16:13, Paolo Bonzini wrote:
> Several tests cover infrastructure from virt/kvm/ and userspace APIs that have
> only minimal requirements from architecture-specific code. As such, they are
> available on all architectures that have libkvm support, and this presumably
> will apply also in the future (for example if loongarch gets selftests support).
> Put them in a separate variable and list them only once.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Applied now.
Paolo
> ---
> tools/testing/selftests/kvm/Makefile.kvm | 45 ++++++++----------------
> 1 file changed, 15 insertions(+), 30 deletions(-)
>
> diff --git a/tools/testing/selftests/kvm/Makefile.kvm b/tools/testing/selftests/kvm/Makefile.kvm
> index f773f8f99249..f62b0a5aba35 100644
> --- a/tools/testing/selftests/kvm/Makefile.kvm
> +++ b/tools/testing/selftests/kvm/Makefile.kvm
> @@ -50,8 +50,18 @@ LIBKVM_riscv += lib/riscv/ucall.c
> # Non-compiled test targets
> TEST_PROGS_x86 += x86/nx_huge_pages_test.sh
>
> +# Compiled test targets valid on all architectures with libkvm support
> +TEST_GEN_PROGS_COMMON = demand_paging_test
> +TEST_GEN_PROGS_COMMON += dirty_log_test
> +TEST_GEN_PROGS_COMMON += guest_print_test
> +TEST_GEN_PROGS_COMMON += kvm_binary_stats_test
> +TEST_GEN_PROGS_COMMON += kvm_create_max_vcpus
> +TEST_GEN_PROGS_COMMON += kvm_page_table_test
> +TEST_GEN_PROGS_COMMON += set_memory_region_test
> +
> # Compiled test targets
> -TEST_GEN_PROGS_x86 = x86/cpuid_test
> +TEST_GEN_PROGS_x86 = $(TEST_GEN_PROGS_COMMON)
> +TEST_GEN_PROGS_x86 += x86/cpuid_test
> TEST_GEN_PROGS_x86 += x86/cr4_cpuid_sync_test
> TEST_GEN_PROGS_x86 += x86/dirty_log_page_splitting_test
> TEST_GEN_PROGS_x86 += x86/feature_msrs_test
> @@ -119,27 +129,21 @@ TEST_GEN_PROGS_x86 += x86/triple_fault_event_test
> TEST_GEN_PROGS_x86 += x86/recalc_apic_map_test
> TEST_GEN_PROGS_x86 += access_tracking_perf_test
> TEST_GEN_PROGS_x86 += coalesced_io_test
> -TEST_GEN_PROGS_x86 += demand_paging_test
> -TEST_GEN_PROGS_x86 += dirty_log_test
> TEST_GEN_PROGS_x86 += dirty_log_perf_test
> TEST_GEN_PROGS_x86 += guest_memfd_test
> -TEST_GEN_PROGS_x86 += guest_print_test
> TEST_GEN_PROGS_x86 += hardware_disable_test
> -TEST_GEN_PROGS_x86 += kvm_create_max_vcpus
> -TEST_GEN_PROGS_x86 += kvm_page_table_test
> TEST_GEN_PROGS_x86 += memslot_modification_stress_test
> TEST_GEN_PROGS_x86 += memslot_perf_test
> TEST_GEN_PROGS_x86 += mmu_stress_test
> TEST_GEN_PROGS_x86 += rseq_test
> -TEST_GEN_PROGS_x86 += set_memory_region_test
> TEST_GEN_PROGS_x86 += steal_time
> -TEST_GEN_PROGS_x86 += kvm_binary_stats_test
> TEST_GEN_PROGS_x86 += system_counter_offset_test
> TEST_GEN_PROGS_x86 += pre_fault_memory_test
>
> # Compiled outputs used by test targets
> TEST_GEN_PROGS_EXTENDED_x86 += x86/nx_huge_pages_test
>
> +TEST_GEN_PROGS_arm64 = $(TEST_GEN_PROGS_COMMON)
> TEST_GEN_PROGS_arm64 += arm64/aarch32_id_regs
> TEST_GEN_PROGS_arm64 += arm64/arch_timer_edge_cases
> TEST_GEN_PROGS_arm64 += arm64/debug-exceptions
> @@ -158,22 +162,16 @@ TEST_GEN_PROGS_arm64 += arm64/no-vgic-v3
> TEST_GEN_PROGS_arm64 += access_tracking_perf_test
> TEST_GEN_PROGS_arm64 += arch_timer
> TEST_GEN_PROGS_arm64 += coalesced_io_test
> -TEST_GEN_PROGS_arm64 += demand_paging_test
> -TEST_GEN_PROGS_arm64 += dirty_log_test
> TEST_GEN_PROGS_arm64 += dirty_log_perf_test
> -TEST_GEN_PROGS_arm64 += guest_print_test
> TEST_GEN_PROGS_arm64 += get-reg-list
> -TEST_GEN_PROGS_arm64 += kvm_create_max_vcpus
> -TEST_GEN_PROGS_arm64 += kvm_page_table_test
> TEST_GEN_PROGS_arm64 += memslot_modification_stress_test
> TEST_GEN_PROGS_arm64 += memslot_perf_test
> TEST_GEN_PROGS_arm64 += mmu_stress_test
> TEST_GEN_PROGS_arm64 += rseq_test
> -TEST_GEN_PROGS_arm64 += set_memory_region_test
> TEST_GEN_PROGS_arm64 += steal_time
> -TEST_GEN_PROGS_arm64 += kvm_binary_stats_test
>
> -TEST_GEN_PROGS_s390 = s390/memop
> +TEST_GEN_PROGS_s390 = $(TEST_GEN_PROGS_COMMON)
> +TEST_GEN_PROGS_s390 += s390/memop
> TEST_GEN_PROGS_s390 += s390/resets
> TEST_GEN_PROGS_s390 += s390/sync_regs_test
> TEST_GEN_PROGS_s390 += s390/tprot
> @@ -182,27 +180,14 @@ TEST_GEN_PROGS_s390 += s390/debug_test
> TEST_GEN_PROGS_s390 += s390/cpumodel_subfuncs_test
> TEST_GEN_PROGS_s390 += s390/shared_zeropage_test
> TEST_GEN_PROGS_s390 += s390/ucontrol_test
> -TEST_GEN_PROGS_s390 += demand_paging_test
> -TEST_GEN_PROGS_s390 += dirty_log_test
> -TEST_GEN_PROGS_s390 += guest_print_test
> -TEST_GEN_PROGS_s390 += kvm_create_max_vcpus
> -TEST_GEN_PROGS_s390 += kvm_page_table_test
> TEST_GEN_PROGS_s390 += rseq_test
> -TEST_GEN_PROGS_s390 += set_memory_region_test
> -TEST_GEN_PROGS_s390 += kvm_binary_stats_test
>
> +TEST_GEN_PROGS_riscv = $(TEST_GEN_PROGS_COMMON)
> TEST_GEN_PROGS_riscv += riscv/sbi_pmu_test
> TEST_GEN_PROGS_riscv += riscv/ebreak_test
> TEST_GEN_PROGS_riscv += arch_timer
> TEST_GEN_PROGS_riscv += coalesced_io_test
> -TEST_GEN_PROGS_riscv += demand_paging_test
> -TEST_GEN_PROGS_riscv += dirty_log_test
> TEST_GEN_PROGS_riscv += get-reg-list
> -TEST_GEN_PROGS_riscv += guest_print_test
> -TEST_GEN_PROGS_riscv += kvm_binary_stats_test
> -TEST_GEN_PROGS_riscv += kvm_create_max_vcpus
> -TEST_GEN_PROGS_riscv += kvm_page_table_test
> -TEST_GEN_PROGS_riscv += set_memory_region_test
> TEST_GEN_PROGS_riscv += steal_time
>
> SPLIT_TESTS += arch_timer
prev parent reply other threads:[~2025-04-04 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 14:13 Paolo Bonzini
2025-04-04 10:23 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=93f75341-a194-46e3-8b01-8d75a55fbe69@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®