Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2744161pxp; Tue, 8 Mar 2022 00:30:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJC5btKF3CW6AlAFs9doijcGaX3NYKGXYIVU0e+k9tZEjxXT+fUZenjRrDxl6G/G6fpyGh X-Received: by 2002:a50:d5cc:0:b0:416:4b23:df33 with SMTP id g12-20020a50d5cc000000b004164b23df33mr7605951edj.281.1646728237069; Tue, 08 Mar 2022 00:30:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646728237; cv=none; d=google.com; s=arc-20160816; b=K4JJjHd1/0vRqjxcCWmwGh3CMJUsz2iBRXR1p+LbfLcgsZOEkKFLX7RV+m+0WaVZQo c1hiD2Jv8YBvLYgsG9dtInEbpXZBlyxkmVgpXzKjBywtSM+Sikj11+TQF1aKzhUan+pJ PAvjDaFUvnycXcR149GKf8zeeVwT1rsUqwvaO2cZf9RxqmmuNHvqdGt5LmR1poFuRvha 2IANURiPihlipST+4zJTlib7Xd7WqHuWGKyY7Vl3d41ivWK8RLqmb2k65I1uwy6bH+bl ks/lUgqxKU7gCzE8/cJJJ57gVw/d5ZsZuoXVsrb6Hb1TsftcOlDVkdy1rmUhtBn9c7Zt /IgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xIgw1CeMnBUIL/RC29fGtIeWMwiFcbnmOLdGCa76gaY=; b=Krk65sNccgjtlQ41s1N2AfsNz4vWXXghRiK8OAgY3H0Qv4yC3PXPeRhXceky96jc8u 0gSjkxHw10t0wTNoRdTFBOCJKG4FuZvnaawrwvawG3aOSmMnZuxoV/pXhw5YEzT6nzDh umQfMcEIF8LWZ0SItjiMz2JMX/9BrS9PZZaPDuEv/7vFhm44U+MrVHaRAcRXNpQNfblj 2U7KU6MSCnemwkaC7kIC+bQV3uMbRWU/UQiM+/RAdcyT+erbKt2Hmzd6eprvDI6D5hcF HXcJYyt2udQMvrqd1vzHG2D32n/8aKXb3nVIaLjxyW1R1OAPfB//W/YJGR+alziX9F1y Nxfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=dyvq9P0J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf5-20020a0564021a4500b00415f400d03esi8084114edb.458.2022.03.08.00.30.13; Tue, 08 Mar 2022 00:30:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=dyvq9P0J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244002AbiCHF6l (ORCPT + 99 others); Tue, 8 Mar 2022 00:58:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233650AbiCHF6k (ORCPT ); Tue, 8 Mar 2022 00:58:40 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43E601ADB4 for ; Mon, 7 Mar 2022 21:57:44 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id k24so17227777wrd.7 for ; Mon, 07 Mar 2022 21:57:44 -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=xIgw1CeMnBUIL/RC29fGtIeWMwiFcbnmOLdGCa76gaY=; b=dyvq9P0JTvA5h9bwOZCVBY5lenifpgc/O9PVmslobo52K48eIMdPbQL3M6uKNg281M +lkM0gl7OVKvD7qvptTyaWiBj99ozuZByicKHUS5T7G1Iak5aNnOrh6oDpNFvmch18YF UiYbwAV5ql7/skjeygZ03JFBTPS8LbT3TShde2YV9aMc/w526q9nwjdiAbNcOKBVuZFM LTBM/yoLYFCr+So/Gqt2O7XHXe9JoymfvZBYu3asQGaV2917CGOOH4GrlnZ/q52zuiKN u1GG+8BvXTdm3oZWlTi47HUQ9fzztnkbktKIRb4ysX785/wQrwIM6jdxBfjiy2TjJqcc fe3g== 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=xIgw1CeMnBUIL/RC29fGtIeWMwiFcbnmOLdGCa76gaY=; b=c80cbPhTe8jiQcPELxdyi6+pwDGQrfyTERuCDDbuF9qLze+6HvV/vsx0PRaW0TTK4y NcpABlwHJBDPzpFoahWdetX1bA2x7XdEflIcuF0uLdE8usMkjWgiHzE0IAF0vq7KMLWh p846XpnKfd+9WsPgdED+rn+9zfJTVvPAIEvLfCwboi+PukcfGaSVF3Or6jKh4RJ2hstp jTZuBmNzd0FLALacIqJesWR5U8XTITUQpF8cMbH+4hut/J1ccwLr6XLqScDb8RM+E4Lp I/00XSUiR1mhlFbj+WaO1GZtOQvU7Eg7jr7gbEReRx1J5aFFna1QvS50q20h/gupYdFU WLDQ== X-Gm-Message-State: AOAM530NHVX3QARmfQ0gEQbZuRzwdYCdl1q6L0CVcD4ley4imGxz07p9 4QmNJVJIH+C41JpGQEKnTKQxqoli4jIu6OXpD0qUyA== X-Received: by 2002:adf:b60c:0:b0:1f0:227d:bce with SMTP id f12-20020adfb60c000000b001f0227d0bcemr10946306wre.313.1646719062630; Mon, 07 Mar 2022 21:57:42 -0800 (PST) MIME-Version: 1.0 References: <20220201082227.361967-1-apatel@ventanamicro.com> In-Reply-To: <20220201082227.361967-1-apatel@ventanamicro.com> From: Anup Patel Date: Tue, 8 Mar 2022 11:27:30 +0530 Message-ID: Subject: Re: [PATCH 0/6] KVM RISC-V SBI v0.3 support To: Anup Patel Cc: Paolo Bonzini , 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" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 1, 2022 at 1:53 PM Anup Patel wrote: > > This series adds initial support for SBI v0.3 which includes: > 1) SBI SRST support for Guest > 2) SBI HSM suspend for Guest > > The SBI PMU support is intentionally left out and will be added as > a separate patch series. > > These patches can also be found in riscv_kvm_sbi_v03_v1 branch at: > https://github.com/avpatel/linux.git Queued this series for Linux-5.18 Thanks, Anup > > Anup Patel (6): > RISC-V: KVM: Upgrade SBI spec version to v0.3 > RISC-V: KVM: Add common kvm_riscv_vcpu_sbi_system_reset() function > RISC-V: KVM: Implement SBI v0.3 SRST extension > RISC-V: Add SBI HSM suspend related defines > RISC-V: KVM: Add common kvm_riscv_vcpu_wfi() function > RISC-V: KVM: Implement SBI HSM suspend call > > arch/riscv/include/asm/kvm_host.h | 1 + > arch/riscv/include/asm/kvm_vcpu_sbi.h | 5 ++- > arch/riscv/include/asm/sbi.h | 27 +++++++++++++--- > arch/riscv/kernel/cpu_ops_sbi.c | 2 +- > arch/riscv/kvm/vcpu_exit.c | 22 ++++++++++---- > arch/riscv/kvm/vcpu_sbi.c | 19 ++++++++++++ > arch/riscv/kvm/vcpu_sbi_hsm.c | 18 +++++++++-- > arch/riscv/kvm/vcpu_sbi_replace.c | 44 +++++++++++++++++++++++++++ > arch/riscv/kvm/vcpu_sbi_v01.c | 18 ++--------- > 9 files changed, 125 insertions(+), 31 deletions(-) > > -- > 2.25.1 >