From nobody Tue Dec 16 20:32:43 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0D31C46CA3 for ; Thu, 30 Nov 2023 11:31:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345169AbjK3LbQ (ORCPT ); Thu, 30 Nov 2023 06:31:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345193AbjK3La7 (ORCPT ); Thu, 30 Nov 2023 06:30:59 -0500 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 710DD10DF; Thu, 30 Nov 2023 03:31:04 -0800 (PST) Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8Cxc_B2cmhlBeg9AA--.57539S3; Thu, 30 Nov 2023 19:31:02 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxG9xycmhlNblQAA--.47327S6; Thu, 30 Nov 2023 19:31:02 +0800 (CST) From: Tianrui Zhao To: Shuah Khan , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Sean Christopherson Cc: Vishal Annapurve , Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, Peter Xu , Vipin Sharma , maobibo@loongson.cn, zhaotianrui@loongson.cn Subject: [PATCH v5 4/4] KVM: selftests: Add test cases for LoongArch Date: Thu, 30 Nov 2023 19:18:04 +0800 Message-Id: <20231130111804.2227570-5-zhaotianrui@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231130111804.2227570-1-zhaotianrui@loongson.cn> References: <20231130111804.2227570-1-zhaotianrui@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: AQAAf8AxG9xycmhlNblQAA--.47327S6 X-CM-SenderInfo: p2kd03xldq233l6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" There are some KVM common test cases supported by LoongArch: demand_paging_test dirty_log_perf_test dirty_log_test guest_print_test kvm_binary_stats_test kvm_create_max_vcpus kvm_page_table_test memslot_modification_stress_test memslot_perf_test set_memory_region_test And other test cases are not supported by LoongArch. For example, we do not support rseq_test, as the glibc do not support it. Signed-off-by: Tianrui Zhao Reviewed-by: Bibo Mao --- tools/testing/selftests/kvm/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests= /kvm/Makefile index a5963ab9215..9d099d48013 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -65,6 +65,10 @@ LIBKVM_s390x +=3D lib/s390x/ucall.c LIBKVM_riscv +=3D lib/riscv/processor.c LIBKVM_riscv +=3D lib/riscv/ucall.c =20 +LIBKVM_loongarch +=3D lib/loongarch/processor.c +LIBKVM_loongarch +=3D lib/loongarch/ucall.c +LIBKVM_loongarch +=3D lib/loongarch/exception.S + # Non-compiled test targets TEST_PROGS_x86_64 +=3D x86_64/nx_huge_pages_test.sh =20 @@ -202,6 +206,17 @@ TEST_GEN_PROGS_riscv +=3D kvm_binary_stats_test =20 SPLIT_TESTS +=3D get-reg-list =20 +TEST_GEN_PROGS_loongarch +=3D demand_paging_test +TEST_GEN_PROGS_loongarch +=3D dirty_log_perf_test +TEST_GEN_PROGS_loongarch +=3D dirty_log_test +TEST_GEN_PROGS_loongarch +=3D guest_print_test +TEST_GEN_PROGS_loongarch +=3D kvm_binary_stats_test +TEST_GEN_PROGS_loongarch +=3D kvm_create_max_vcpus +TEST_GEN_PROGS_loongarch +=3D kvm_page_table_test +TEST_GEN_PROGS_loongarch +=3D memslot_modification_stress_test +TEST_GEN_PROGS_loongarch +=3D memslot_perf_test +TEST_GEN_PROGS_loongarch +=3D set_memory_region_test + TEST_PROGS +=3D $(TEST_PROGS_$(ARCH_DIR)) TEST_GEN_PROGS +=3D $(TEST_GEN_PROGS_$(ARCH_DIR)) TEST_GEN_PROGS_EXTENDED +=3D $(TEST_GEN_PROGS_EXTENDED_$(ARCH_DIR)) --=20 2.39.1