Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2449300rdb; Sun, 3 Dec 2023 18:12:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoayhXK7euY1CcUOtlQ/C/9y/Jb/1E30/Y/DZ6xsDcFSHkxF08TewZbHAnp2g5c/rlQj7a X-Received: by 2002:a17:902:e5c8:b0:1d0:7d9a:3bc3 with SMTP id u8-20020a170902e5c800b001d07d9a3bc3mr787352plf.79.1701655934606; Sun, 03 Dec 2023 18:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701655934; cv=none; d=google.com; s=arc-20160816; b=lwP14YMsh/+TK+SzAOPXM7BGtLao/YM/Jlo2xHDf8LdyHPi0UhSDgi1Px2rsrvy+G8 TYmnEzq0mcvThsA+3mBseomO4HedQT9sPMKeS+TKbeARbp2jxSwaY2rOUewehxni49lG tHYh3ZEsUp3pScDximvn5oJeFDUhnDPwi6aDQ10BhyKjImR+cNU+IUE47HLsDKCh6bt7 tzyqOWliT1HrTtIGgarAAvuMJVwdGi1M8673w82i53GWdRUHJOhNOY++32KH3h5lS7tq BDc+TEmX6aJEu2rp9XwOOT3KaaaHFNE/YL/5poAuMDUfNqnH9pau8QM/5LIuWCce1RY5 B5FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/y6MtJANvrDtBq0a+fc3D2dxeS49N7LSgQ8sv4jEeMQ=; fh=c/TFKcqWybZIdh7j8vRV/vOfC7gwk6VtKb8tnRXtAJI=; b=qmAFwThXgrATZRacQ/m27Eirb6dC5pXysDS4G8E7I+ubqXATsUstx7kU8WuqOKMoPF KhcNH2l3wtAsdvS9DJP4/XAv4+rAGMLKFIOMs053LloF4dlnBYz37mtZ8Yyn34SThohp naoFuEGyBYckmhw4IFqUAxXYpwtJx30kwC/IbY3vS0LRwTAOB70ieSKLTfNgEf7Ps5Xj BKK9WyvQAydAFxBrXlpTEppnKV9UXyX3RwIdUfFJPX9SecIXcqFVNWZOrvmAWLNxZdBY yPyUP5/xOn+qoRlPKtbUm2KrcnPX+6kYQOsPMOS+zyv+/CnlXnJKq7CZK2KiRGo0wpF8 sUSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bf9-20020a170902b90900b001cc4aca5f5dsi6675496plb.636.2023.12.03.18.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 18:12:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 0795E808BD93; Sun, 3 Dec 2023 18:12:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234275AbjLDCL6 (ORCPT + 99 others); Sun, 3 Dec 2023 21:11:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjLDCL4 (ORCPT ); Sun, 3 Dec 2023 21:11:56 -0500 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D28E8B3; Sun, 3 Dec 2023 18:12:01 -0800 (PST) Received: from loongson.cn (unknown [10.20.42.173]) by gateway (Coremail) with SMTP id _____8Cx7+twNW1lJ6I+AA--.58446S3; Mon, 04 Dec 2023 10:12:00 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxO9xsNW1le8lTAA--.53472S3; Mon, 04 Dec 2023 10:11:58 +0800 (CST) Subject: Re: [PATCH v5 4/4] KVM: selftests: Add test cases for LoongArch To: Tianrui Zhao , 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 References: <20231130111804.2227570-1-zhaotianrui@loongson.cn> <20231130111804.2227570-5-zhaotianrui@loongson.cn> From: maobibo Message-ID: Date: Mon, 4 Dec 2023 10:11:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20231130111804.2227570-5-zhaotianrui@loongson.cn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxO9xsNW1le8lTAA--.53472S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj93XoW7uw17Kr4DtFyDCF4kGFW3urX_yoW8KFWrpF yI9r1jvFWxurs3Jwn3Gw4DZan3Cr9Fgr40gFy3Kw18ur98J348JF1xKasrKFsYgw45Xa1Y v3WrKwnruayDA3XCm3ZEXasCq-sJn29KB7ZKAUJUUUUr529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUP2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4j6r4UJwAaw2AFwI0_Jrv_JF1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jw0_ WrylYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrw CYjI0SjxkI62AI1cAE67vIY487MxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48J MxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI 0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y 0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r4j6ryUMIIF0xvE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU00eHDUUUU U== X-Spam-Status: No, score=-2.6 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, 03 Dec 2023 18:12:12 -0800 (PST) On 2023/11/30 下午7:18, Tianrui Zhao wrote: > 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 > --- > 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 += 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 > > @@ -202,6 +206,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 rseq_test is not supported by LoongArch kernel, and get-reg-list interface is not supported by KVM now, arch specific testcases will be added later also. Reviewed-by: Bibo Mao > + > TEST_PROGS += $(TEST_PROGS_$(ARCH_DIR)) > TEST_GEN_PROGS += $(TEST_GEN_PROGS_$(ARCH_DIR)) > TEST_GEN_PROGS_EXTENDED += $(TEST_GEN_PROGS_EXTENDED_$(ARCH_DIR)) >