Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2017691pxp; Fri, 18 Mar 2022 00:48:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyApRu/JxtJIZ92sW/lo4ixkjYno7mbM/aeovhmlpNaQj17pkQAY7EdwVLE+c4TpbP495x X-Received: by 2002:a17:907:2d20:b0:6df:8c3f:730a with SMTP id gs32-20020a1709072d2000b006df8c3f730amr7006724ejc.725.1647589689574; Fri, 18 Mar 2022 00:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647589689; cv=none; d=google.com; s=arc-20160816; b=Du7ya3BaF04usNXkNSxnrw0G8/gY5Uz8Snn30Av70mSYV3UwmiRCvNGizbxsE+/Nij +V3ikcjku12x0g4bMvqwoeAYc83c73Ta6eQqVdX8YITrD2OoeqX4irYkn7Vs3LY/ZYus nhYsN5q55Lcsq9JbIPBL5IRGfU3OosrDr+gkCk/bycGQYQh7vg3z4wgboy0L4vG24CVC yCQET6j2CZ+1Eub9kQmGd/PfeEfb12mY5RFFkldpRIeY/T1f2VsUQJDWPzPac/vxdomJ McnPj4HNZeyE1pk+t1v2BIjNHF67Q29czcMAeUD5fEd0rqyfn8bhd6ZDoIJ6bcOnO9Rj gqSw== 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=CDuSjmRhr8MOV1rhbEGNhveI41ON6vxVElre6la9kK4=; b=lYXK7mYzKbL3q5sozkEKnPJVDBc0K0ZMuFt2fTMaDwV167I9VMZ04xdIdM3wDzkVC+ YKQoF++FdaVH66Ew198ttme9FFC+X5vZwK2fmQQ/Z9tN8adU7bWRb6ZLbjsvvHfR8rit X4veb/izPAI+dh4MOO2dx0ieohF28efjvsl0nbxN2JbZrH6wAiwOVV+habljQT0kA5VC WOsjRdA2BUfB9+8VhVLdgwVvAfZKlqLD96ru8UQ+xYm6yCAiK8j0JSO9hLGdEsbzEcXK sMksOPJhrt1x/9OkUEkyrF2X8SsQs8+jRn/7bw3a+0TXRmLhhgL/qJCcxH2aKbTpeE5w zn3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=gQPTka+L; 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 sh31-20020a1709076e9f00b006df76385c4csi902630ejc.236.2022.03.18.00.47.44; Fri, 18 Mar 2022 00:48:09 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=gQPTka+L; 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 S232153AbiCRD13 (ORCPT + 99 others); Thu, 17 Mar 2022 23:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbiCRD11 (ORCPT ); Thu, 17 Mar 2022 23:27:27 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 222BB14F121 for ; Thu, 17 Mar 2022 20:26:09 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id h16so3630668wmd.0 for ; Thu, 17 Mar 2022 20:26:09 -0700 (PDT) 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=CDuSjmRhr8MOV1rhbEGNhveI41ON6vxVElre6la9kK4=; b=gQPTka+LUuoi8LUTzV1fKgYIUHP3QdXLh7Rb+5kWyfTZdWiB6/SAIHDcj0/kSCEZgJ 2gw+Z40Fyf5lKxwBcUFYZEjUrDgrbX879AxVss/Xj0uqEMfm90GbdI4SRvh2YkhQ1YNY P+9uCZE6nF6x4E/j3zI0lur7fFO058AYty+26RtTAelygMkaKxgtO5N41P/Tnz7hGsxA V3FBMhHMqKk8cWn93Da5qzFkwIyv0sG7VjFHpKYZ0Pv5PIMziBkMSQZJCYhEvwm5JFeZ BLkcSTw7m0760UWmBbWK4aj0MoYoXVKU4DqnDqeDRY0wKOkH0bAvhtb7pVWFU6LP9/Ha MNqQ== 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=CDuSjmRhr8MOV1rhbEGNhveI41ON6vxVElre6la9kK4=; b=ECrwRl4aVu6RoRn0hNyNPeZ2lAyIeMaDodQ8i6t4ZM5knMYcexqtzAyXZuTAUlvrym rRJXR2DJKeK1eOifU3R4coXCDJ7Vadcza7xIdHaiD2f7zkZM/DkmtYcDOZFkCt1Ay6XI 5fwUzs1xtOvi/T9aVZBj9YCENrwUc/dqUsc8LPElSu/5EH2BNZsnoFcRVDZiZo9jcnJo z32VvhQATKZYfZm18HmUdwRjqEA4HxCa9lJ9q1qPFQKNEoURd3XEb6drXZAduDkPrZx6 9mDaYiYXGcTa4PIn72a8HLvWEvBdyinc+wv8uKQb8CyAUuUrjgT9PSL92HO1RSWjaNus /+og== X-Gm-Message-State: AOAM530Jj4Xg742DGqhwd+CEkiuL5NGUGJ/8uM1NCuM/IGEb+7fGmPCK qf9+kLmnWRjnPGx9KRK4iOSivQKv5XRH53d0xBO7yP1AKM0= X-Received: by 2002:a05:600c:3516:b0:389:f9aa:f821 with SMTP id h22-20020a05600c351600b00389f9aaf821mr14115817wmq.73.1647573967585; Thu, 17 Mar 2022 20:26:07 -0700 (PDT) MIME-Version: 1.0 References: <20220304201020.810380-1-atishp@rivosinc.com> <20220304201020.810380-5-atishp@rivosinc.com> In-Reply-To: <20220304201020.810380-5-atishp@rivosinc.com> From: Anup Patel Date: Fri, 18 Mar 2022 08:55:56 +0530 Message-ID: Subject: Re: [RFC PATCH v2 4/7] RISC-V: KVM: Remove 's' & 'u' as valid ISA extension To: Atish Patra Cc: "linux-kernel@vger.kernel.org List" , Atish Patra , Damien Le Moal , DTML , Jisheng Zhang , Krzysztof Kozlowski , kvm-riscv@lists.infradead.org, linux-riscv , Palmer Dabbelt , Paul Walmsley , Rob Herring 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 Sat, Mar 5, 2022 at 1:40 AM 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 Both PATCH4 and PATCH5, fix the "isa" config register of one_reg interface. Can you send PATCH4 (i.e. this patch) and PATCH5 separately with the "Fixes:" tag so that we can have these patches as RC fixes ? Regards, Anup > --- > 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 624166004e36..3ae545e7b398 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.30.2 >