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 9B80AC4332F for ; Sat, 11 Dec 2021 03:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244514AbhLKDov (ORCPT ); Fri, 10 Dec 2021 22:44:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237852AbhLKDou (ORCPT ); Fri, 10 Dec 2021 22:44:50 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C2E2C061751 for ; Fri, 10 Dec 2021 19:41:14 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id t9so17987647wrx.7 for ; Fri, 10 Dec 2021 19:41:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EO75poJK2xgDITlrG7RVKgMYEM37BaniCA9cW2F8IAE=; b=UUDpGaZ4TlqJucB7PlMbEakgQYttvolbBk2bus1Xxo0uqDAkjBhl6iolgunNvqfE4U 3KMqZsunqRx3/AcboOFf5R27X31eWeINs/lCdD0CN8XoBYreShHbrLW7XS8g2GI4cW6a /XIe8l8fwtz17Yzq3YFS59etRNEVvfce/S12CxewPjX9R7+NV+Mzwy55+yF8c43a8rHT P+B+9Bq+1n6YJYgJCOEaFak1CQozKjbeQHcE6+Objr962V5BNP2bjfK+cKL0xHYt+iYf 8BZizLTYTR72actmkvGRv0lVG7Zz42wUizEILE+4S6d+kPg/YiunXbps391KW8V9kpk5 nupQ== 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=EO75poJK2xgDITlrG7RVKgMYEM37BaniCA9cW2F8IAE=; b=tA9Bs7ja9Z0SBKDeeumGdpZB+mAQDue7QeTS8HJENFKmr82c6Wc5ydckjChydjbCnj X9p4253cGQaei1HS7EL4mA7jBYp3NmBBMrZ8/kv8eKc3zNgonG/JFSr1oI3I8UNe6SPS MFDh6n5caAZCDTgHvCzqY0Z9nEjCN6jukGKWjAY0q0Be+v/QsT7xlDxIzzc+qaKQtpAe ZLnGBii2G39WajhYLisWBbdbSx6FrLiBKpMjFp5gIqJCHpKzo3RA3qdJPMS0dDrraS9r RjO1S5spMTXKsh6IMSg29oHuoVZYsZmOU5nFZpq8RoyqVKu904U7quyASDPTb1mKXP2W v6xw== X-Gm-Message-State: AOAM530zYTvbVxFPTi0ESwtzPt//RDOuqwCZj1KbbqMV8+W4/Z1VRJXf 92f7S8oSTDApH+OAAk6D9uoYqwk76HQRU8J1sDhkVw== X-Google-Smtp-Source: ABdhPJxU5WTGxoPImoqEQQ34iwc3zq+NMIe3iv94HfKYLahaxjZujpAul0sWWjXgr8vVvi8pSAKSsitBxMOpHCyl5ZY= X-Received: by 2002:adf:eb0f:: with SMTP id s15mr2303012wrn.690.1639194072549; Fri, 10 Dec 2021 19:41:12 -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: Anup Patel Date: Sat, 11 Dec 2021 09:11:01 +0530 Message-ID: Subject: Re: [PATCH v2 0/4] KVM RISC-V 64-bit selftests support To: Paolo Bonzini Cc: Shuah Khan , Atish Patra , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , KVM General , kvm-riscv@lists.infradead.org, linux-riscv , "linux-kernel@vger.kernel.org List" , linux-kselftest@vger.kernel.org, Anup Patel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paolo, On Mon, Nov 29, 2021 at 1:40 PM 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 Any further comments on this series ? Regards, Anup > > 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 >