Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4589740pxb; Wed, 20 Apr 2022 06:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2JWW8yBA/qrCTjrYRSF6RzIQu10ARVV0WUTLZNPTzjB9Rr+3T7n6Afi8OYqAk0WwuOpKd X-Received: by 2002:a17:907:6d0e:b0:6d7:c85:5bf5 with SMTP id sa14-20020a1709076d0e00b006d70c855bf5mr18629974ejc.31.1650461343509; Wed, 20 Apr 2022 06:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650461343; cv=none; d=google.com; s=arc-20160816; b=CeQGh+ALKNohh8ehbuE3S/8p9TbpONNFuQSNLlmTbQfXCyMPhKY304TeNz5QWC9b2T n/0Dcdja84Kl8UCAHiaxNvo/08OlTDQUiZ6T7dNFO2thILHPeLJq/YkqT+Wxhszb1H9R URcZCeEsF9KltNhC/XLkoRYsktNkkEX4SUSNEnH+JVH8dgikMpMLcWd3EjKcUuXBlvjx bjPTTNcDbXsjI78jb7b7HEHELBv1gHZKdKrBrbvw0mRj8VvteKlJMi7saSQITmmuAJm8 /BCeFIGZii4gguo0GK/vUxqd2AMoQgxHKXdC4ma/A+xlSq0f64Fr20ogvcW0XuELeQGB SumQ== 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=4rECfG0J0jcZuxwrgwhg30CvDbd+wKJQrKHF5lEEWz8=; b=liYdIKRqUGa0CBGOSOOOh+uXcwQ/toqQpFjGyo73YrRjGGYyEXFW6BGtaePYc79HdJ fXlIvsLnT8ePJBstD/uLZrVeJYb+6ACjXVU4F4caD2Ay/VXSdV2XcvsAtT0Dgpyn1Prl Fcv4Akimi9EWpdTBTBVEug89Vi5zPeCmgOz/ge5IjrhdOMlyGbxFa13gqkfLSQIeKujA u9st4Oa365Tiq20/bH20JwzMGERfu4wmA5Nuyr/xV1X9UZI3nqae6VUpsgGsvzuojmxG hDTbJ/2BtdZwcsO3n72cbIf0Vy5/TtoQtE/v+tOdxr2r1g0nNbv54URcvvw+pr5xc/nh Zplw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atishpatra.org header.s=google header.b=JJ84zEuW; 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 k25-20020a170906159900b006e00f0a2fc0si1653827ejd.818.2022.04.20.06.28.36; Wed, 20 Apr 2022 06:29:03 -0700 (PDT) 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=@atishpatra.org header.s=google header.b=JJ84zEuW; 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 S1376332AbiDTHq6 (ORCPT + 99 others); Wed, 20 Apr 2022 03:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241235AbiDTHqm (ORCPT ); Wed, 20 Apr 2022 03:46:42 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF5453BBE6 for ; Wed, 20 Apr 2022 00:43:54 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2ec0bb4b715so9195827b3.5 for ; Wed, 20 Apr 2022 00:43:54 -0700 (PDT) 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=4rECfG0J0jcZuxwrgwhg30CvDbd+wKJQrKHF5lEEWz8=; b=JJ84zEuWmJdIZ7TstEV8XP6tov0sYCEo450P8hEILZNpuvqlc8LvmWDw8vMK9BIzyx p80wG38wyBCDllGZ8kRIEVtDhjYvl5nJhws3qJnrkrbECz8bby3fQzPYKA5RPVLCLzfJ eni5YMWY7Iu1XUrIumWZfAM5TinCUnaEoTBPI= 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=4rECfG0J0jcZuxwrgwhg30CvDbd+wKJQrKHF5lEEWz8=; b=pUMujZ4DhtnWotk+zu953XYKwPbPxEPvK3c4XtfEV+fLXLlMMOKVDbvANFsCyjO8JP CYzowivHX2dTMMARDKapqJz/ox630rpbxHUCklEk6xEVwc+2CpA0GAqUlJFDavUzR3XU G1U3ePGVUjbfyEeTQI1dsOdPjocDWa7YgindrFRc+BCXcgv5wMNewCF4tXPjUISA/Jdf Bv7IG2iuyoWDVmGnsIho3o1tZt6xbbluCNokTOhi2KA89eV7b7qmdNFqWsGgXdCIDCcq QiwAs2olgqyBCdjJDOTGVQbaTp7qQc5Czh7ikWZfI/XTNIdMPwm9T2xPkXIu28NQA+eB SJ6w== X-Gm-Message-State: AOAM531ObvTbZDpsCz6N1NLUc7tz5P6CaKsJ83ghNRbyRAVImxoiDMs4 C424tecyeVKUIxkr3iIIYKcDCMUsc7VUMnIIhfLO X-Received: by 2002:a81:5285:0:b0:2ec:471:e745 with SMTP id g127-20020a815285000000b002ec0471e745mr19863668ywb.443.1650440633909; Wed, 20 Apr 2022 00:43:53 -0700 (PDT) MIME-Version: 1.0 References: <20220420013258.3639264-1-atishp@rivosinc.com> <20220420013258.3639264-2-atishp@rivosinc.com> In-Reply-To: <20220420013258.3639264-2-atishp@rivosinc.com> From: Atish Patra Date: Wed, 20 Apr 2022 00:43:43 -0700 Message-ID: Subject: Re: [PATCH 1/2] RISC-V: KVM: Remove 's' & 'u' as valid ISA extension To: Atish Patra Cc: KVM General , Anup Patel , Damien Le Moal , devicetree , Jisheng Zhang , Krzysztof Kozlowski , "linux-kernel@vger.kernel.org List" , linux-riscv , Palmer Dabbelt , Paul Walmsley , Rob Herring , kvm-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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, Apr 19, 2022 at 6:33 PM Atish Patra wrote: > > There are no ISA extension defined as 's' & 'u' in RISC-V specifications. > The misa register defines 's' & 'u' bit as Supervisor/User privilege mode > enabled. But it should not appear in the ISA extension in the device tree. > > Remove those from the allowed ISA extension for kvm. > > Signed-off-by: Atish Patra > --- > arch/riscv/kvm/vcpu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/riscv/kvm/vcpu.c b/arch/riscv/kvm/vcpu.c > index 6785aef4cbd4..2e25a7b83a1b 100644 > --- a/arch/riscv/kvm/vcpu.c > +++ b/arch/riscv/kvm/vcpu.c > @@ -43,9 +43,7 @@ const struct kvm_stats_header kvm_vcpu_stats_header = { > riscv_isa_extension_mask(d) | \ > riscv_isa_extension_mask(f) | \ > riscv_isa_extension_mask(i) | \ > - riscv_isa_extension_mask(m) | \ > - riscv_isa_extension_mask(s) | \ > - riscv_isa_extension_mask(u)) > + riscv_isa_extension_mask(m)) > > static void kvm_riscv_reset_vcpu(struct kvm_vcpu *vcpu) > { > -- > 2.25.1 > Sorry. Forgot to add the fixes tag. Fixes: a33c72faf2d7 (RISC-V: KVM: Implement VCPU create, init and destroy functions) -- Regards, Atish