From mboxrd@z Thu Jan 1 00:00:00 1970 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 73A16C433F5 for ; Sat, 11 Dec 2021 03:41:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238511AbhLKDov (ORCPT ); Fri, 10 Dec 2021 22:44:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234943AbhLKDou (ORCPT ); Fri, 10 Dec 2021 22:44:50 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDBEC061714 for ; Fri, 10 Dec 2021 19:41:14 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id d9so18014499wrw.4 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=od2+M0tItG/29iEhQX+UbHdgDiT7epuGhpcu7Zs69/e+iPi5x9wy8saNkGdQU0NNJL PKPZfmZejPIfv11E5/7yC4VxhaJCvOR3qbXe437ddskPlBxqQeAYhSCGI7s81Uw2U3Nn 7D2kAHgzQ3tWZy3DJAwNItiz8JiWhwB+TNrQGBYfmLcbKywH0Lt0UpXpkgdLb42wJCS0 hjQT5TYsTyzK42JIcSO1BwP1uDYG7Wx74vxIryDzfqI5BtnMcZiBunSZWV6qQN+f9RPV w5syzShyRlvMopVEMsGi3XK54NQUXOwePhRB4tswlg09aze/JrHACszKuDopMtNGzawL VVUg== X-Gm-Message-State: AOAM5301zfflBH0eQCo0tvfIgZA66RLdwm2RytfE3qQiSC1n14XeQnny 9vAK0G79+ALw7gNmGmQpIJGOefsz/t0pqzCNvbKbHA== 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-kselftest@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 >