Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1657450rdb; Sun, 8 Oct 2023 19:55:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMT7xec5iLepEsAXl1Ymd4+rfghyzR0tdqpa8KMEIEdWFly78pfM+XcPkWx7zxlZUVFWM8 X-Received: by 2002:a05:6808:1489:b0:3a8:5133:482d with SMTP id e9-20020a056808148900b003a85133482dmr16414531oiw.35.1696820156702; Sun, 08 Oct 2023 19:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696820156; cv=none; d=google.com; s=arc-20160816; b=nkJK72VrVaCS4GndxLgK5kb5Nuk115k9km1XGhRfFkj6qmeb44ngvfZpT6zp/6EQtG ylG8r9dJgn3FMfj1wLC39sSW3iJLGgbkibD4VwLOXtL7AhbPp/SbypTHrk3KaCSfpkkt +srbAaCXrdeXHxMb7mA1+KDlIw/k7s05t6T0fKyoF6YwoBIkxZoIpTN4QFIrdjZkDRa4 dnsIXQZojzBK1TQXtYq0rnjnfjngkeGO6bTX8vlRimYdtDauz/3yO24krFePLHMH8wA8 qE0Y2dmxzR0FvGctXba+V1voX0zwjyC4+1YwSkGSlOdrk2Pwq4Fx5WF1E/zrkO6JQMdM Y/vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GPqF9X3CpH+9xfMwyYVNfmBAXwfLF3AmZ6juzSPYfN4=; fh=Qi8O4GPf+E9kHNNUfjv2vNMHhM7kTwYQ+uMwpaT6JZQ=; b=wuk97UMATtQrqLgAUe8bKYzjOe4EJy1iSQL89FGtW1Df5Ibr7fcNkDnzW6sV9DE4uU 89PeC/S+BC/5uoPSYk1CyBbpH/KijwqMTMSzkqCeKEx1XPvVPEmljP6kclSy3WhoQhmn tA8GLY7/HzzTY3XdufWSJ6g3pvwrrFVSeSyelRBsek64+tbuiLnNtMSakN0YfcFFby48 YTMG4y0h3ASThzGEdKArp8BD/FKfwht2BF6YB1BFu2+xHfgoH0wX4NKJv3R9dG8GedMK Nnd3ZPg7wRnkL3+jrQYxY1FhblBJg+urQU1UzzmZfX1VNRHYi0Dp0PbusNikLZlFJrd4 NCWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a22-20020a637f16000000b0055fce913d52si8483472pgd.761.2023.10.08.19.55.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 19:55:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 75AE1803C6BF; Sun, 8 Oct 2023 19:55:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345031AbjJICzS (ORCPT + 99 others); Sun, 8 Oct 2023 22:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232350AbjJICzP (ORCPT ); Sun, 8 Oct 2023 22:55:15 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7951B9; Sun, 8 Oct 2023 19:55:12 -0700 (PDT) Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8BxY_CPayNlEy4wAA--.27036S3; Mon, 09 Oct 2023 10:55:11 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx7y+NayNlRvEbAA--.58139S6; Mon, 09 Oct 2023 10:55:10 +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 v3 4/4] KVM: selftests: Add test cases for LoongArch Date: Mon, 9 Oct 2023 10:55:10 +0800 Message-Id: <20231009025510.342681-5-zhaotianrui@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20231009025510.342681-1-zhaotianrui@loongson.cn> References: <20231009025510.342681-1-zhaotianrui@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Cx7y+NayNlRvEbAA--.58139S6 X-CM-SenderInfo: p2kd03xldq233l6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 08 Oct 2023 19:55:45 -0700 (PDT) X-Spam-Level: ** 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. Based-on: <20230927030959.3629941-1-zhaotianrui@loongson.cn> Signed-off-by: Tianrui Zhao --- 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 a3bb36fb3c..7d264dbf14 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -56,6 +56,10 @@ LIBKVM_s390x += lib/s390x/ucall.c LIBKVM_riscv += lib/riscv/processor.c LIBKVM_riscv += lib/riscv/ucall.c +LIBKVM_loongarch += lib/loongarch/processor.c +LIBKVM_loongarch += lib/loongarch/ucall.c +LIBKVM_loongarch += lib/loongarch/exception.S + # Non-compiled test targets TEST_PROGS_x86_64 += x86_64/nx_huge_pages_test.sh @@ -190,6 +194,17 @@ TEST_GEN_PROGS_riscv += kvm_binary_stats_test SPLIT_TESTS += get-reg-list +TEST_GEN_PROGS_loongarch += demand_paging_test +TEST_GEN_PROGS_loongarch += dirty_log_perf_test +TEST_GEN_PROGS_loongarch += dirty_log_test +TEST_GEN_PROGS_loongarch += guest_print_test +TEST_GEN_PROGS_loongarch += kvm_binary_stats_test +TEST_GEN_PROGS_loongarch += kvm_create_max_vcpus +TEST_GEN_PROGS_loongarch += kvm_page_table_test +TEST_GEN_PROGS_loongarch += memslot_modification_stress_test +TEST_GEN_PROGS_loongarch += memslot_perf_test +TEST_GEN_PROGS_loongarch += set_memory_region_test + TEST_PROGS += $(TEST_PROGS_$(ARCH_DIR)) TEST_GEN_PROGS += $(TEST_GEN_PROGS_$(ARCH_DIR)) TEST_GEN_PROGS_EXTENDED += $(TEST_GEN_PROGS_EXTENDED_$(ARCH_DIR)) -- 2.39.1