Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2639416rwb; Mon, 7 Aug 2023 00:26:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXX/wOCL9GKw+gCXjijsJMJaMauyxv/Bxs6vfzVNgx8Ow+9sEgO16VYAo5brMp4PIC1jsv X-Received: by 2002:a05:6a21:8184:b0:10f:1d33:d667 with SMTP id pd4-20020a056a21818400b0010f1d33d667mr9101903pzb.5.1691393182390; Mon, 07 Aug 2023 00:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691393182; cv=none; d=google.com; s=arc-20160816; b=c7psELkCL4CJ7iOaQ+VdlSlBZAER51LKWncfL+sgUXkY16uoCQS0ZC5Rlqt3A/GWxm 5kxpiRvPErihoSWZLYmzjOwL0AA8zB72pM5xREEZnaLjz0pknFAp3slpuB4X3u3uLs3Q chkxjY0vMYo+04YZD0O0+hGT31l/szjN1sEivxvHEpN/brLJ3cDAU0XBzm7TkRgu0qEw YGe0f/ADjsMeEvt1VOzfgjhKNOOgclbCWg7ZXW76UYUO0S4prq+Aa/ZOzpq8z9Tjyzt6 H18EjJ5WKbTngSAg4faHxPAUf7ZlPaRbQYHAaz4mJMNIGOiqeV6n0dFSc+RWt3+4uNpr 2uAw== 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=6lv1TwVZa1dIlxe8j3wrPkNoQnxNiTKa4kdBuS60Djg=; fh=gsUmtxbMqK36mL5NFoC4xZ5sX9WhDudI+8elbmlEVgg=; b=jwHYlrD2sDw8xfWIjoS/YFfUcqT/9SGx0XG1tK602t2Goq/Gd8shg7K6jgNf5r1Y2D x/h0IDLcShEPns4jgQ2EPLVIODmuaOKmmkAc37Ij7v4aVnPnHIfCfD1wvfVMsPa3zjoY sSL0/pcz3argpIzRKD6oSKsIvBjai+t5PK9+iNQB4aCnmUvxrxTSpVnsdmtlx6xdfEaZ /hTtGIQ/EGIVrG8MDUuNrI9RCIGDAJXJmmLlHfv1WWb9iHSFnJPr0FPZnbM0pYOMBN+c 8sw2O3vKNXjSgW5iTDPvXj+UzYUN9NTvMQ1DGVqmSbDgt1L/9kj69joLLz6ceARYwVXS pWQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku15-20020a170903288f00b001b5589848absi5399092plb.234.2023.08.07.00.26.10; Mon, 07 Aug 2023 00:26:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231408AbjHGGwI (ORCPT + 99 others); Mon, 7 Aug 2023 02:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbjHGGvt (ORCPT ); Mon, 7 Aug 2023 02:51:49 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B673E199C; Sun, 6 Aug 2023 23:51:42 -0700 (PDT) Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8AxZ+h9lNBk+9wRAA--.4219S3; Mon, 07 Aug 2023 14:51:41 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxJ8x5lNBkwspMAA--.23544S6; Mon, 07 Aug 2023 14:51:39 +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 v2 4/4] KVM: selftests: Add test cases supported by LoongArch into makefile Date: Mon, 7 Aug 2023 14:51:37 +0800 Message-Id: <20230807065137.3408970-5-zhaotianrui@loongson.cn> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230807065137.3408970-1-zhaotianrui@loongson.cn> References: <20230807065137.3408970-1-zhaotianrui@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxJ8x5lNBkwspMAA--.23544S6 X-CM-SenderInfo: p2kd03xldq233l6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add test cases supported by LoongArch into makefile. LoongArch supports some KVM common tests, such as: kvm_create_max_vcpus demand_paging_test kvm_page_table_test set_memory_region_test memslot_modification_stress_test memslot_perf_test kvm_binary_stats_test And some test cases are not supported by LoongArch. for example, we do not support the rseq_test, as the glibc do not support it. Based-on: <20230803022138.2736430-1-zhaotianrui@loongson.cn> Signed-off-by: Tianrui Zhao --- tools/testing/selftests/kvm/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index c692cc86e7da..96bf53565a32 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -55,6 +55,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 @@ -181,6 +185,14 @@ TEST_GEN_PROGS_riscv += kvm_page_table_test TEST_GEN_PROGS_riscv += set_memory_region_test TEST_GEN_PROGS_riscv += kvm_binary_stats_test +TEST_GEN_PROGS_loongarch += kvm_create_max_vcpus +TEST_GEN_PROGS_loongarch += demand_paging_test +TEST_GEN_PROGS_loongarch += kvm_page_table_test +TEST_GEN_PROGS_loongarch += set_memory_region_test +TEST_GEN_PROGS_loongarch += memslot_modification_stress_test +TEST_GEN_PROGS_loongarch += memslot_perf_test +TEST_GEN_PROGS_loongarch += kvm_binary_stats_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