Message ID | 20231003035226.1945725-1-apatel@ventanamicro.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1837958vqb; Mon, 2 Oct 2023 20:53:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGN1Gw4UlIcxJYuYN9i/nwx4KISXORQH+HOoDc2/GvJnt7zrS8Ui6diEkjfKkurCBIZk616 X-Received: by 2002:a17:902:ec90:b0:1c7:27a1:a9e5 with SMTP id x16-20020a170902ec9000b001c727a1a9e5mr2307479plg.33.1696305182943; Mon, 02 Oct 2023 20:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696305182; cv=none; d=google.com; s=arc-20160816; b=WyuObL8CZmWTa+/e2X7jyDOZWd7UiNuaOyHVjFgBqBub2e8dfwDdytM3bCvUczMiQo TiQzoTx6A3dVKuuY3jRA5SQzDSdVSNoWBz4Py6PZlg8mDeWoXHTuqKb0xOrZWICWvjLK krmc+50i1wISmOS9hOi/SpY7zluQmn31qjA3Xtf70Q9MyZbsxlAd7ptEkHQHhGKIpw0j +Cam3Dx9wH5WdzGqX8u1MI4arHUXi1H30WE20YhmYt6QKOmIPlWINXHk4Wl1octvnDNF sbxddJ4G0XE9KL58y5fohaS57O3NodzGo2YVOzkPc6krMqgwMNEokfO3RWvgw2ZpqNg5 O3EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=epBeEg3WHOewkDN8nsgY1zC5qxutdS0j0M6jR1cFpqU=; fh=Nnw/Dw3prVIT5KLOVQO3DcS15zu3mo0yAEjXPL5Uo9Q=; b=ztVjEss/pb/6sDGyX34Kh6nC+AS+IzRvfia51YYl/qdljV+KvOjGv/QQOIu1JdWmde trOVghfusp599z4lskkxaHu+rRdXxJCaZahEIkk39/p9OhSkSiB8nP1mTI1EmtbSTrCj cyNSmFGIS3sKQs1QFfwrp3vaG88H2oegLRYDXMeg4EtnD4RVVw1JNH3BFLiM8MADnEf4 YDU6ZTzR/q6sJoQzxyTbwy3v+Xs9q1psh8YcKaZnRWsSbeI0wlVPQe9/PyFnxfZJCVYN wjc40kdMJHg34TlT7n2EN/bzVcXPJPCCWcF1gWY1ZsRZ8woWt62uJ7+GNg7EzVp7gB3i 25qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RE8Voxdz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id w9-20020a170902904900b001c5fd2a242asi465294plz.363.2023.10.02.20.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 20:53:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RE8Voxdz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 164B180253A4; Mon, 2 Oct 2023 20:52:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbjJCDwp (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Mon, 2 Oct 2023 23:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbjJCDwo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Oct 2023 23:52:44 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFAC2BF for <linux-kernel@vger.kernel.org>; Mon, 2 Oct 2023 20:52:40 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1c60f1a2652so3329465ad.0 for <linux-kernel@vger.kernel.org>; Mon, 02 Oct 2023 20:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1696305160; x=1696909960; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=epBeEg3WHOewkDN8nsgY1zC5qxutdS0j0M6jR1cFpqU=; b=RE8VoxdzUpPfalKyMxsp6gHZVX3AmSVBJ4JadEQLmD3H0lRR+JCl4JotVXjhICb9Kv 8idlXnvCPBP9s0AV3vsqqYti6FFKxCTzO8s/Z1tt9tnIDN8RutJi66rIpt+NXN2Bs7Ks PBR5I22Q7ZggPTn2AkIbqKXjGUcywf9plfbxtNcm5+rOITKX4xh4vj+WX8TGaIpsszif +3v/7ZEi1b34g/UwsfBgqKINMCvqV3K47gGnrn8c4PkXQF7L5/8hLN9NjSbNAdrzYm4V 7AZ7DDmHiEJo1YC59LZ8G6SrpZ2ScgAqIiuzUbtMMBZv1Ja5Sc6arcOtvjnPWvpuXZME t2iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696305160; x=1696909960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=epBeEg3WHOewkDN8nsgY1zC5qxutdS0j0M6jR1cFpqU=; b=GeKLf+ku87C6vUEaUtGXKURaqhSPRUbNrXlN6uPF97+btXlPGfKxNMIG1myVq52jau lLUSASoDSOc+jK40iXekNxbvuxS8EkMHRzje6PZhjgo48LsCfmrtlzqWlcPr7QDjKhJQ ysmfmI3789+fQaJBLAi0PdAD1OijbOrw8vw0G/wb5MFFogukS9xksgUcjnyRlqfR6bJR 7lATRbDWudVjc1vKcaKG6HOS40IPGjzq+gmuwZ1GbN0vpTWmnd1sBBZ75dTWPKLXzMAU i0V5lt7mJUmw02QtnuzVsK2+CXa+7jJL7fEtvXoOt+DIhyUvOEYIvtAlKgeIVxAb15SE xAvA== X-Gm-Message-State: AOJu0YwrxM6CbTWybPLRCEhz5Gh/VR+sogfX6hbPmkfDXB6AWFc4gjmk I3zDtiE/BdBZOmRXWCdhQR3Lyw== X-Received: by 2002:a17:903:1c7:b0:1c0:afda:7707 with SMTP id e7-20020a17090301c700b001c0afda7707mr2146645plh.34.1696305160116; Mon, 02 Oct 2023 20:52:40 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.84.132]) by smtp.gmail.com with ESMTPSA id ja7-20020a170902efc700b001bf846dd2d0sm277381plb.13.2023.10.02.20.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 20:52:39 -0700 (PDT) From: Anup Patel <apatel@ventanamicro.com> To: Paolo Bonzini <pbonzini@redhat.com>, Atish Patra <atishp@atishpatra.org>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Conor Dooley <conor@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Shuah Khan <shuah@kernel.org> Cc: Andrew Jones <ajones@ventanamicro.com>, Mayuresh Chitale <mchitale@ventanamicro.com>, devicetree@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Anup Patel <apatel@ventanamicro.com> Subject: [PATCH v3 0/6] KVM RISC-V Conditional Operations Date: Tue, 3 Oct 2023 09:22:20 +0530 Message-Id: <20231003035226.1945725-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 20:52:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778704903446599008 X-GMAIL-MSGID: 1778704903446599008 |
Series |
KVM RISC-V Conditional Operations
|
|
Message
Anup Patel
Oct. 3, 2023, 3:52 a.m. UTC
This series extends KVM RISC-V to allow Guest/VM discover and use conditional operations related ISA extensions (namely XVentanaCondOps and Zicond). To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1 branch at: https://github.com/avpatel/kvmtool.git These patches are based upon the latest riscv_kvm_queue and can also be found in the riscv_kvm_condops_v3 branch at: https://github.com/avpatel/linux.git Changes since v2: - Dropped patch1, patch2, and patch5 since these patches don't meet the requirements of patch acceptance policy. Changes since v1: - Rebased the series on riscv_kvm_queue - Split PATCH1 and PATCH2 of v1 series into two patches - Added separate test configs for XVentanaCondOps and Zicond in PATCH7 of v1 series. Anup Patel (6): dt-bindings: riscv: Add Zicond extension entry RISC-V: Detect Zicond from ISA string RISC-V: KVM: Allow Zicond extension for Guest/VM KVM: riscv: selftests: Add senvcfg register to get-reg-list test KVM: riscv: selftests: Add smstateen registers to get-reg-list test KVM: riscv: selftests: Add condops extensions to get-reg-list test .../devicetree/bindings/riscv/extensions.yaml | 6 +++ arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/include/uapi/asm/kvm.h | 1 + arch/riscv/kernel/cpufeature.c | 1 + arch/riscv/kvm/vcpu_onereg.c | 2 + .../selftests/kvm/riscv/get-reg-list.c | 54 +++++++++++++++++++ 6 files changed, 65 insertions(+)
Comments
On Tue, Oct 3, 2023 at 9:22 AM Anup Patel <apatel@ventanamicro.com> wrote: > > This series extends KVM RISC-V to allow Guest/VM discover and use > conditional operations related ISA extensions (namely XVentanaCondOps > and Zicond). > > To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1 > branch at: https://github.com/avpatel/kvmtool.git > > These patches are based upon the latest riscv_kvm_queue and can also be > found in the riscv_kvm_condops_v3 branch at: > https://github.com/avpatel/linux.git > > Changes since v2: > - Dropped patch1, patch2, and patch5 since these patches don't meet > the requirements of patch acceptance policy. > > Changes since v1: > - Rebased the series on riscv_kvm_queue > - Split PATCH1 and PATCH2 of v1 series into two patches > - Added separate test configs for XVentanaCondOps and Zicond in PATCH7 > of v1 series. > > Anup Patel (6): > dt-bindings: riscv: Add Zicond extension entry > RISC-V: Detect Zicond from ISA string > RISC-V: KVM: Allow Zicond extension for Guest/VM > KVM: riscv: selftests: Add senvcfg register to get-reg-list test > KVM: riscv: selftests: Add smstateen registers to get-reg-list test > KVM: riscv: selftests: Add condops extensions to get-reg-list test Queued this series for Linux-6.7 Thanks, Anup > > .../devicetree/bindings/riscv/extensions.yaml | 6 +++ > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/include/uapi/asm/kvm.h | 1 + > arch/riscv/kernel/cpufeature.c | 1 + > arch/riscv/kvm/vcpu_onereg.c | 2 + > .../selftests/kvm/riscv/get-reg-list.c | 54 +++++++++++++++++++ > 6 files changed, 65 insertions(+) > > -- > 2.34.1 >
Hi Palmer, On Thu, Oct 5, 2023 at 11:35 AM Anup Patel <anup@brainfault.org> wrote: > > On Tue, Oct 3, 2023 at 9:22 AM Anup Patel <apatel@ventanamicro.com> wrote: > > > > This series extends KVM RISC-V to allow Guest/VM discover and use > > conditional operations related ISA extensions (namely XVentanaCondOps > > and Zicond). > > > > To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1 > > branch at: https://github.com/avpatel/kvmtool.git > > > > These patches are based upon the latest riscv_kvm_queue and can also be > > found in the riscv_kvm_condops_v3 branch at: > > https://github.com/avpatel/linux.git > > > > Changes since v2: > > - Dropped patch1, patch2, and patch5 since these patches don't meet > > the requirements of patch acceptance policy. > > > > Changes since v1: > > - Rebased the series on riscv_kvm_queue > > - Split PATCH1 and PATCH2 of v1 series into two patches > > - Added separate test configs for XVentanaCondOps and Zicond in PATCH7 > > of v1 series. > > > > Anup Patel (6): > > dt-bindings: riscv: Add Zicond extension entry > > RISC-V: Detect Zicond from ISA string > > RISC-V: KVM: Allow Zicond extension for Guest/VM > > KVM: riscv: selftests: Add senvcfg register to get-reg-list test > > KVM: riscv: selftests: Add smstateen registers to get-reg-list test > > KVM: riscv: selftests: Add condops extensions to get-reg-list test > > Queued this series for Linux-6.7 I have created shared tag kvm-riscv-shared-tag-6.7 in the KVM RISC-V repo at: https://github.com/kvm-riscv/linux.git This shared tag is based on 6.6-rc5 and contains following 4 patches: dt-bindings: riscv: Add Zicond extension entry RISC-V: Detect Zicond from ISA string dt-bindings: riscv: Add smstateen entry RISC-V: Detect Smstateen extension Thanks, Anup > > Thanks, > Anup > > > > > .../devicetree/bindings/riscv/extensions.yaml | 6 +++ > > arch/riscv/include/asm/hwcap.h | 1 + > > arch/riscv/include/uapi/asm/kvm.h | 1 + > > arch/riscv/kernel/cpufeature.c | 1 + > > arch/riscv/kvm/vcpu_onereg.c | 2 + > > .../selftests/kvm/riscv/get-reg-list.c | 54 +++++++++++++++++++ > > 6 files changed, 65 insertions(+) > > > > -- > > 2.34.1 > >
Hello: This series was applied to riscv/linux.git (fixes) by Anup Patel <anup@brainfault.org>: On Tue, 3 Oct 2023 09:22:20 +0530 you wrote: > This series extends KVM RISC-V to allow Guest/VM discover and use > conditional operations related ISA extensions (namely XVentanaCondOps > and Zicond). > > To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1 > branch at: https://github.com/avpatel/kvmtool.git > > [...] Here is the summary with links: - [v3,1/6] dt-bindings: riscv: Add Zicond extension entry https://git.kernel.org/riscv/c/00c6f39c8247 - [v3,2/6] RISC-V: Detect Zicond from ISA string https://git.kernel.org/riscv/c/662a601aa355 - [v3,3/6] RISC-V: KVM: Allow Zicond extension for Guest/VM https://git.kernel.org/riscv/c/df68f4d8cb49 - [v3,4/6] KVM: riscv: selftests: Add senvcfg register to get-reg-list test https://git.kernel.org/riscv/c/4d554e0226e6 - [v3,5/6] KVM: riscv: selftests: Add smstateen registers to get-reg-list test https://git.kernel.org/riscv/c/e1a8db0c9a0e - [v3,6/6] KVM: riscv: selftests: Add condops extensions to get-reg-list test https://git.kernel.org/riscv/c/2b3f2b78ec93 You are awesome, thank you!