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 5F215C433EF for ; Wed, 22 Dec 2021 08:51:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243461AbhLVIvU (ORCPT ); Wed, 22 Dec 2021 03:51:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243435AbhLVIvN (ORCPT ); Wed, 22 Dec 2021 03:51:13 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94997C06173F for ; Wed, 22 Dec 2021 00:51:12 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id e136so4587753ybc.4 for ; Wed, 22 Dec 2021 00:51:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atishpatra.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m4bMyDhMjrW7YP3vP6EP7M7Hq9hif6A8RG1x3CwDWSE=; b=fOPoQSfg9A1N9bBJuTfwQYXKk80Zk1ZWyIC4Djoo7itH4idBIrSa68ZFFbjZBI8KXj obOL3n3EoCAvAfhwLF7wegn2J6fL3D5MaoQ+j7OkMDRoXYBflLXTn96N1l97z+rpu1fJ nbVKBgDZeRegAG2HqwRHfylaBAmiIwpWWr8Mg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m4bMyDhMjrW7YP3vP6EP7M7Hq9hif6A8RG1x3CwDWSE=; b=XNR5CruFumAfjx8CPYtY/oPKAikxe8mOtCugXxKNjGP5We49B+TfPdv81BhnQh6b1q f9HfrqVslHJZPPwm3DB/FJ2MmZErKW+HTQILIUY/u4fk52JXSMIaZy2xsQ87lUwZzDMr tmnQChF3YyjWXlZTOEynu4GS2PplAAS9C0hjJWvNEwyFNJW1G5kEBIc9/AtJyKbH1HjC hbCJ0qbMQUIamEUP2OnotFrdzYxXz7hz5g5yx2vZ5rLOV21q12Juu/cJTtxRpZytHuXc 7XhVf91tOfHnyEIP7VrYAlgvnqbsiwu0jBvL293VteniCsWh/X6ISHCFx62PxEt1JBWk CP0g== X-Gm-Message-State: AOAM5326UA99HmBZ9KRA+c21pOkbX25zFToFPEYEsMaCVJzBz6tE1FHZ DSfwWqDnJmTRBQHUy/sYpSl+RdGhx4dsyEQm1wjV X-Google-Smtp-Source: ABdhPJzdC7YX0iNUuQiVueEYuv3Xd0/ROt59yvLbD0RAiuHFxH0gOhyt+/pTp0f+VcjsQnQX34B36SNPf+yH6w2i6g8= X-Received: by 2002:a05:6902:568:: with SMTP id a8mr3252723ybt.472.1640163071850; Wed, 22 Dec 2021 00:51:11 -0800 (PST) MIME-Version: 1.0 References: <20211129075451.418122-1-anup.patel@wdc.com> In-Reply-To: <20211129075451.418122-1-anup.patel@wdc.com> From: Atish Patra Date: Wed, 22 Dec 2021 00:51:01 -0800 Message-ID: Subject: Re: [PATCH v2 0/4] KVM RISC-V 64-bit selftests support To: Anup Patel Cc: Paolo Bonzini , Shuah Khan , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , Anup Patel , KVM General , kvm-riscv@lists.infradead.org, linux-riscv , "linux-kernel@vger.kernel.org List" , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 29, 2021 at 12:10 AM Anup Patel wrote: > > This series adds initial support for testing KVM RISC-V 64-bit using > kernel selftests framework. The PATCH1 & PATCH2 of this series does > some ground work in KVM RISC-V to implement RISC-V support in the KVM > selftests whereas remaining patches does required changes in the KVM > selftests. > > These patches can be found in riscv_kvm_selftests_v2 branch at: > https://github.com/avpatel/linux.git > > Changes since v1: > - Renamed kvm_sbi_ext_expevend_handler() to kvm_sbi_ext_forward_handler() > in PATCH1 > - Renamed KVM_CAP_RISCV_VM_GPA_SIZE to KVM_CAP_VM_GPA_BITS in PATCH2 > and PATCH4 > > Anup Patel (4): > RISC-V: KVM: Forward SBI experimental and vendor extensions > RISC-V: KVM: Add VM capability to allow userspace get GPA bits > KVM: selftests: Add EXTRA_CFLAGS in top-level Makefile > KVM: selftests: Add initial support for RISC-V 64-bit > > arch/riscv/include/asm/kvm_host.h | 1 + > arch/riscv/kvm/mmu.c | 5 + > arch/riscv/kvm/vcpu_sbi.c | 4 + > arch/riscv/kvm/vcpu_sbi_base.c | 27 ++ > arch/riscv/kvm/vm.c | 3 + > include/uapi/linux/kvm.h | 1 + > tools/testing/selftests/kvm/Makefile | 14 +- > .../testing/selftests/kvm/include/kvm_util.h | 10 + > .../selftests/kvm/include/riscv/processor.h | 135 +++++++ > tools/testing/selftests/kvm/lib/guest_modes.c | 10 + > .../selftests/kvm/lib/riscv/processor.c | 362 ++++++++++++++++++ > tools/testing/selftests/kvm/lib/riscv/ucall.c | 87 +++++ > 12 files changed, 658 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/kvm/include/riscv/processor.h > create mode 100644 tools/testing/selftests/kvm/lib/riscv/processor.c > create mode 100644 tools/testing/selftests/kvm/lib/riscv/ucall.c > > -- > 2.25.1 > For the entire series, Tested-by: Atish Patra -- Regards, Atish