Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp148495rdb; Sun, 28 Jan 2024 18:41:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IELMZjTQxugi4gHn+wzCxWnhEy7Sd3wzW8Nluu2eKZgoSOQtUKVriub7jtUSYWUjpuK38Zo X-Received: by 2002:a05:6102:1806:b0:46a:fdba:edbe with SMTP id jg6-20020a056102180600b0046afdbaedbemr1126253vsb.65.1706496103865; Sun, 28 Jan 2024 18:41:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706496103; cv=pass; d=google.com; s=arc-20160816; b=rRiMEhbIPcgruAjD3gt5pbn37IDiMqRa0x4PRzVPc52hAHDQ4wTNguwZi62+/OmxVD 9WAq98dizWCe++7dO7NI9uJ/dO9V1dLNl85WCISwjlBXj1OtdpmwAyz0UIaooOc6UU8C 8bEumGas++x+bbT9idCfDvvgR7YxS0wBvYiUnJhA+9OIZXL767oRq7CvfU0s7b9hghO3 gecFpCReyQMTfTCHJOtifQqUrx5smuvxo3u9OmmoZRAmG1VsXf8FotMECGbuQX+JIpNW eH0Gq8uekSM3kYfdIBazcYqJ3tAr9vdv7Rlykdo2g12T3kGGBXspUSQodupi1s91I1nJ xddQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=CeB0mejsXVh27ElF2ym0AEwlav/pYzO+s4+KW6LNYiQ=; fh=rX0dG0izTTOk+C+/I1HgTciPek2ItTeDpf2G49J9GIU=; b=tjz/C1kQ3PTK2uzvN3SScgNs6SKSB3c1sbydeYJ6dEzC1airvuIFzE2BlCJNIANwZF vLxUxav61LfM/UCQ4Ly4lR0sY+lqmnp2ldj3tBiib8iwKoOHXF1gQ6+emMyLJOXXiUiz e9cy+bUZwYSixJx5xtBqMODyYRqKh672nP1rnSCjRr79hY0NG4XJyv/cvksEGQjnqAqI qrfuAwQHydnuzs+XiFzdoUTvLP7z3HaMODWonP7yWgk0uGbQ0/RpIxv5vyJk/xq1LLsp xrXJiZO4dL0rcoDwoTiHyS4d93GG6N590WODUKm+RXIJqpLnd9tli8XZteRJkL+8Ghfu 11CQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-42104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42104-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mg15-20020a17090b370f00b0028d9b5be596si4816866pjb.28.2024.01.28.18.41.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 18:41:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-42104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42104-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 81150281689 for ; Mon, 29 Jan 2024 02:41:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8A27F9F7; Mon, 29 Jan 2024 02:41:34 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CE75DDD7; Mon, 29 Jan 2024 02:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706496094; cv=none; b=UhVNi7XZSYF8W31aRgfdLMK65HNhLGOfAiZS14GgBbzPzpi8lE5sut2lpxr8tahW+fGPzBI9/USMzKr3KXQ32/zGJWLQ16NMYUHRzy6lAJYoRnyD4BJEvVg5Bx1uZuOp1lUJ1hhfBRJ68IX9E0U2lhqN2nZ/sW7hLXWSVDpcXe8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706496094; c=relaxed/simple; bh=BZnih3B4LHOUfu+8lJbv8SbVzOo9wGNFWAuJnC18Guw=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=sRJ/9Q/DCg4/rRVZK7pyuJj7J8utw9PpSQ4B4m6qp+4JbZdgZS3vPSWINQNAZ0OjuT6COCvpfIRTTHCtLkzfeBYB8gxPQxXWiz8PlzOWyaRhK4ZHslMCq5ZetJ5Usy2EduHEVwf/b0EI+XGQng6S6grNkNze2WsOhKeXcVIH8Qw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.173]) by gateway (Coremail) with SMTP id _____8CxmehZELdlLJgHAA--.4481S3; Mon, 29 Jan 2024 10:41:29 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxf89WELdl_jokAA--.13380S3; Mon, 29 Jan 2024 10:41:28 +0800 (CST) Subject: Re: [PATCH v6 0/4] VM: selftests: Add LoongArch support To: Sean Christopherson Cc: Paolo Bonzini , Shuah Khan , Tianrui Zhao , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20240125015420.1960090-1-maobibo@loongson.cn> From: maobibo Message-ID: Date: Mon, 29 Jan 2024 10:41:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8Cxf89WELdl_jokAA--.13380S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj93XoW7ZrWruFWxAr17CF1fKw4fXrc_yoW8CF18pa yvk3WrKr48KF1xAF93X34vqr1ft3Z2kF4Iy3WaqryUZw47tr1xJw1xKF97Ca43Z3s5XryF va4Ig3W3W3WUJacCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUvYb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzV AYIcxG8wCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E 14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIx kGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAF wI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r 4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07j1WlkU UUUU= On 2024/1/27 上午4:32, Sean Christopherson wrote: > On Thu, Jan 25, 2024, Bibo Mao wrote: >> --- >> Tianrui Zhao (4): >> KVM: selftests: Add KVM selftests header files for LoongArch >> KVM: selftests: Add core KVM selftests support for LoongArch >> KVM: selftests: Add ucall test support for LoongArch >> KVM: selftests: Add test cases for LoongArch >> >> tools/testing/selftests/kvm/Makefile | 16 + >> .../selftests/kvm/include/kvm_util_base.h | 5 + >> .../kvm/include/loongarch/processor.h | 133 +++++++ >> .../selftests/kvm/include/loongarch/ucall.h | 20 ++ >> .../selftests/kvm/lib/loongarch/exception.S | 59 ++++ >> .../selftests/kvm/lib/loongarch/processor.c | 332 ++++++++++++++++++ >> .../selftests/kvm/lib/loongarch/ucall.c | 38 ++ >> .../selftests/kvm/set_memory_region_test.c | 2 +- >> 8 files changed, 604 insertions(+), 1 deletion(-) >> create mode 100644 tools/testing/selftests/kvm/include/loongarch/processor.h >> create mode 100644 tools/testing/selftests/kvm/include/loongarch/ucall.h >> create mode 100644 tools/testing/selftests/kvm/lib/loongarch/exception.S >> create mode 100644 tools/testing/selftests/kvm/lib/loongarch/processor.c >> create mode 100644 tools/testing/selftests/kvm/lib/loongarch/ucall.c > > I did a *very* quick read through and didn't see anything egregious. I really > hope that someday we can deduplicate much of the ARM/RISC-V/LoongArch code, but > that's no reason to hold up getting selftests support merged. > kvm seltests for LoongArch originally comes from ARM64, especially ucall and page table walk code. And LoongArch kvm actually benefits much from open source code, we will deduplicate some ARM/RISC-V/LoongArch kvm selftests code when LoongArch KVM is basically supported. Regards Bibo Mao