Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp4770900pxb; Wed, 20 Apr 2022 09:43:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeFRTecbZ1aD7fckBcb4nbvP9F1KM2f6f4PqsUjyACWm+pnJJoalcI/Xxp+1UmR6K8tcmQ X-Received: by 2002:a17:902:f70a:b0:153:88c7:774 with SMTP id h10-20020a170902f70a00b0015388c70774mr21313594plo.166.1650473010973; Wed, 20 Apr 2022 09:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650473010; cv=none; d=google.com; s=arc-20160816; b=w4wN8s+SLmKauJ6yxhWdf3fbT0nYcWjdTUTN+Zh89hyKlKDu5ucyFnXnm9XQIWk3sq 9pselCTuH2F5r559x+A0XSQis0+txO6THe4AI7tigXvHDUu44yJOh0UbsJgXETSYWOc6 kXNcdFDo8DjIUnoYCjhfFYcHcm4VkeiDFBbpop5Z890vat59OS5ERYd/dwn2TKmVh4hp FKe2cBpucyNQQmicwzlyJSYNUuaSomMY8IHa+Hpd+cv5lmlSdZQCZqKxxIpzuE28a7hO dL8X8nH2+htvtLDbcOrCzzVgYxA25wx/ckFRuzll9ynpsyWQdC/YQloIFvDDSaH57qy4 ArOQ== 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=JjwgVR25fOpo94MrJPZVArRITLkolD2RuuKCBdYhNzY=; b=hZY5y0gWqq0uEVh4dllap4ZU316G7pbOTLXrXayFcIdYpkyno8bBvcSSZZmKF/XNli NOsY+GP4w+/D8+s8+Jc+uhZDbCe4JLqBRBlgWBRhttUaoTDizU2ds6mYNZwT5X8GF266 uXaigV4XlytLYSU8qRil0TXXuZw8DGZbg7MEZNnj8sZPKH7uOMHCTGfLh13riwpfTVsb oTrT5ebGwRccfFV9RBhqTnNEallogG4lIy+hsg1WMAJ0Atad37i8v1zlx1yDH4lqDgea mx14/I8b8236cH5SjMT7BlL86IlxUJlBWPyRGlUfDb8PUfkzdhPIM7HEcyuMxPsUsZ4S VEgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=RZ+ikrgo; 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 gn20-20020a17090ac79400b001cbaf9b7f41si5110252pjb.76.2022.04.20.09.43.12; Wed, 20 Apr 2022 09:43:30 -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=@ventanamicro.com header.s=google header.b=RZ+ikrgo; 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 S1358491AbiDTIty (ORCPT + 99 others); Wed, 20 Apr 2022 04:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233689AbiDTItp (ORCPT ); Wed, 20 Apr 2022 04:49:45 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C631837F for ; Wed, 20 Apr 2022 01:46:59 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id y11so1108865ljh.5 for ; Wed, 20 Apr 2022 01:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JjwgVR25fOpo94MrJPZVArRITLkolD2RuuKCBdYhNzY=; b=RZ+ikrgo+BjsNGw26e+go2LbMbf96IPh2LW4clRqX8E2MnxFpzoFF8JiPsOQv5xAy7 NZwc3XyJEvUe8gJ/3QsBAwWl/Di4ditGXZ6zJTARZOj8GMVpycdsO8rAu0uK4/a+DbgB Pbc20OzJRVV3LjHumKVHbdWO1V6a0/Bfa1EtfsUob3C/viSfnSxaxBCKnNmLEbR23NfM 9NSe+IOUfKbNfsd/vL5KRU9w6TSEzm+Z4oxXnCjyldFCHQ4HcQgS30evggmpLC9WprTh /4X0G38pPFj0fV0e8yHy1xg8HJds0Rk4riqcssz5CwJD7TmiQb4l3dUJO6ZpSlCyvgVw O7tQ== 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=JjwgVR25fOpo94MrJPZVArRITLkolD2RuuKCBdYhNzY=; b=C4rq9fOledYWdLxrjfcZLpkVK0nttg6QZf0ExYtLBr37VDIgxZ97oD86DbP53YFkrE qe0sicCFEQg6pgDz/V3VdkhaorCxRhwnXmMjF5T9hNptrnD5FrDKIyLpkpA5fXIPiNlD haTuoWMyTP609BBR0OP8MHafvVNYpPabeSx1MmpS/aeAOxS6RKmSrt5hy5XpQPsloOIg RW6e3C/Rh9lWkQH7OQmX+OjzxUTRIHj8H0Smj9lofZizwfSPmOhoigfhJtSS4Esp4SWe MkMKDVksUNepkDjoc/0pHolQ0kYORXpp+iBmxDxeEF64d3Yi2YT92TyZNY6uJx3eR5Op Xuyg== X-Gm-Message-State: AOAM531tItP18t191XUBhsT3s5xk8HgVDl/fchhoQ9BGUoNJpfqgUNL5 wSvCNA7A12allh4jWAaZxZ9yq/uHTpgn0LP5C0S/xw== X-Received: by 2002:a05:651c:1784:b0:24b:ce8:528a with SMTP id bn4-20020a05651c178400b0024b0ce8528amr12675701ljb.364.1650444417868; Wed, 20 Apr 2022 01:46:57 -0700 (PDT) MIME-Version: 1.0 References: <20220420013258.3639264-1-atishp@rivosinc.com> <20220420013258.3639264-2-atishp@rivosinc.com> In-Reply-To: From: Anup Patel Date: Wed, 20 Apr 2022 14:16:45 +0530 Message-ID: Subject: Re: [PATCH 1/2] RISC-V: KVM: Remove 's' & 'u' as valid ISA extension To: Atish Patra Cc: Atish Patra , 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 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 Wed, Apr 20, 2022 at 1:14 PM Atish Patra wrote: > > 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) I have queued this for fixes. Thanks, Anup > > -- > Regards, > Atish > > -- > kvm-riscv mailing list > kvm-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kvm-riscv