Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2488474pxb; Thu, 3 Feb 2022 07:42:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLgBBZKgduAof0yzgAp0bqvBWLYkfNq4axNRDw8X5xMUBgM68OIsC284wS6kgrGosbRwb9 X-Received: by 2002:a17:906:99c2:: with SMTP id s2mr28842834ejn.635.1643902933705; Thu, 03 Feb 2022 07:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643902933; cv=none; d=google.com; s=arc-20160816; b=cRr3MGEyj94rNrMJXRC+7br7gFKrZmbC1cUMKRu7ieco5Uj12fDH7gquXqxcWaJLpp oJoE+Wwc2eb2ZVmrDFKGb4Zp86ssMzK9UumvNSDulN7kVMmXo8aH8giF4YfQ1v1rld7D BBNUILiXe8nJH4O4v+YvjL9Z2pQSbZDLeg3YnBEOr6Zo+oGPAxfFO3frcJzl+HxeqewR N8q7HnfE3Lf3fNslfRHkhmwLHXTCGA2lQ8xb32BPBD02mhKteOhPWe/QUvGI42WdXQ21 SXPfkEPWcwpFXizWHaL0KfOwuK54ZsYAzAUD8R2bQwM20juZmaUNr2vM+db8AjqyJjzU KdFQ== 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=CLpBWpR4AdxV5k5a9SzxOwC4Is5G/R+GFZUj0OPG68E=; b=AP4j996Z9BaxU/5IWhq1WPDZao2vnnqYwDyaL9RTzDtSh6SNF3XolwL1pdON3tnPXD acvzm8d6by++som5LseBGsgQM2OG5ELkTlCqlO+fXlj36J0vaJqgEYiQVzSPSNDj6fUR z0hoEhztdLMyflOaitRKWlU23qkVl0m7GYEExq5broPLP8vAXkBHIYlyKhChJ1QD4O2Z k1bazorwadbbOsClL4ixtiQG7dvU3a+TcCuYcFOsteAMuBPEAf+O9KZGO2HPSC0REkVd 6fFycaeMQpsZNaVsQNuzndrsay67c7vJeny/z19/j2gVB8WMG8bgWppbtOifQ06gJq7P qaEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=0GzZnB6+; 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 cr21si14108664ejc.46.2022.02.03.07.41.46; Thu, 03 Feb 2022 07:42:13 -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=0GzZnB6+; 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 S237544AbiBBLVq (ORCPT + 99 others); Wed, 2 Feb 2022 06:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbiBBLVp (ORCPT ); Wed, 2 Feb 2022 06:21:45 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B097C061714 for ; Wed, 2 Feb 2022 03:21:45 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id f17so37710812wrx.1 for ; Wed, 02 Feb 2022 03:21:45 -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=CLpBWpR4AdxV5k5a9SzxOwC4Is5G/R+GFZUj0OPG68E=; b=0GzZnB6+OCeckMUkTJmkIO5sfwKHCblMsvuWqQfWsqJAhSN7p5my9G/QCBoR6UwdAi jN/c7wPi23GCh/djF3RvdTynngxkjgI4Ct6t3wl5Qt/YFhFpU4FSATeju5bRLe6Xi05M 6Q0voGGh4CpnD/whLpVbYzlLvBThs1p5AscZe1PUEtOENxlUTOZHWuQNPb/orkrS7CZq CKaZWk2Uxa89CqefqP9gdaLI9gb+wBBgh8QjhHLgzuCgCg3kGVjB6nLc5EgLxPRciSUN LU8GAoJvu9GdmAQPYgNnbPKtbIz0BgB+3D25b0wmvSaAL7w7c/ZFbRsKj8Ymy+C8GdWW Wkog== 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=CLpBWpR4AdxV5k5a9SzxOwC4Is5G/R+GFZUj0OPG68E=; b=eeHeCeZDzOtomJtLVz8wPMW6Ajm6epWod0Y41wlzHcs40+eqi8Rc2OBx1qqLN8Gmm8 5iARIu9GkYAwWuZQKBFcnCgux8SAavMXqwWwo48/B2Lho8TiVq6PDNs8TbL7gwyXT6ic 9bMIZZt3eEQ/R8+Daaun49UGNvv2GOtm2+iarpHraO/TqZ+jiJC1njRKN0OBaG+H1FbB vzoUd767S2jAeNaH3lzo5ki2l17dmtLOw/jOjOEqIPGeCFo8UtCvSyWfKqvHBQOGe7p0 LpEY5utKfAdOjDRTYXDVQsFDeCb3AWIdpoB/5c8KU0n6wqtClarLs0VHi4M4hTOwUj7G Krhw== X-Gm-Message-State: AOAM532SLmdoeXm5lZ+++8AOzo8vG2a9tAxba+djX4q95kS0LZxAohq0 ZsoXVEh/KMEtai3eb5peb0stQUvH4SBl24JhxW3+Vg== X-Received: by 2002:adf:d08c:: with SMTP id y12mr25480446wrh.346.1643800903609; Wed, 02 Feb 2022 03:21:43 -0800 (PST) MIME-Version: 1.0 References: <20220131164232.295585-1-apatel@ventanamicro.com> In-Reply-To: <20220131164232.295585-1-apatel@ventanamicro.com> From: Anup Patel Date: Wed, 2 Feb 2022 16:51:30 +0530 Message-ID: Subject: Re: [PATCH] RISC-V: KVM: Fix SBI implementation version 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 31, 2022 at 10:13 PM Anup Patel wrote: > > The SBI implementation version returned by KVM RISC-V should be the > Host Linux version code. > > Fixes: c62a76859723 ("RISC-V: KVM: Add SBI v0.2 base extension") > Signed-off-by: Anup Patel Thanks, I have queued this for fixes. Regards, Anup > --- > arch/riscv/kvm/vcpu_sbi_base.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/riscv/kvm/vcpu_sbi_base.c b/arch/riscv/kvm/vcpu_sbi_base.c > index 4ecf377f483b..48f431091cdb 100644 > --- a/arch/riscv/kvm/vcpu_sbi_base.c > +++ b/arch/riscv/kvm/vcpu_sbi_base.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -32,7 +33,7 @@ static int kvm_sbi_ext_base_handler(struct kvm_vcpu *vcpu, struct kvm_run *run, > *out_val = KVM_SBI_IMPID; > break; > case SBI_EXT_BASE_GET_IMP_VERSION: > - *out_val = 0; > + *out_val = LINUX_VERSION_CODE; > break; > case SBI_EXT_BASE_PROBE_EXT: > if ((cp->a0 >= SBI_EXT_EXPERIMENTAL_START && > -- > 2.25.1 >