Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1028316rwp; Thu, 13 Jul 2023 05:13:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHy1htTkRYrPPVIaNkmrAY4CZuGHjePYOm9V+xi/yLsF4Z1+WaRrQrCB02KbCp75xSPN4QO X-Received: by 2002:a05:6402:3c5:b0:51b:df14:594e with SMTP id t5-20020a05640203c500b0051bdf14594emr1826869edw.39.1689250391962; Thu, 13 Jul 2023 05:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689250391; cv=none; d=google.com; s=arc-20160816; b=O6mkpCTEZqYRRQboUaq3ti+1otmnFPJcvDRRyDQO56wpdeHrpnE0qdcOwXchqpx9B+ CaioR2myanYhTsM3PHGtQm2CB46DxiQxhxLx52/ZkKSETqhcwpAWdUBUF5xZl8Hn/Yj2 InNne3yQldZoruXlXMUuUfSCHuvMzcnGKqFdqHM3BF0ORgIvgqufXgZemOusLzN1PQOm g2LtyhffrNNepVFeYSGRLKPSKf5piM5WqRVa8/fU8RwZ913EDbze+fBM03+hgr20CmJ3 kkBOwuMfoQvhjYr7rdCREtVSo79gxvag2SHeT7ASSoJzQgWSMMzjT+U2LKKKRK5VFrXE MIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XF/kJz3Mtl7rTr+akrMPMh7NT9a+W113nDrHXX3tyKU=; fh=XcJ5F4KXT7ms5nrZI9XeQqo7m2yZzX/dHdMuLdYn764=; b=sSPGLjVXHJfSpCJ++3f77NOgxXxfESGo/gXbLOL5hLhPWOBB4CouOEgav+3Y1fYIn5 6yQnVXmX4Ib5JCrg9qAl1scD/dLKWZuqpVOMxbrH/9h0KFLZzFqyDIcyWuxhr2y6kGaL vlv74IIHXSQAcI8/E/dBlmPFTcuCEyKAx5oVHTeUD8u6afvixtyupQ7kcYm02GhKYHXg LhOo2yaD+VXa4nNChSPIFp8030y4mMh86anBNIkNe88zwnnv/e6oIrA2zLck7q0Oj6ao TBpaTg2Aq9gdFQVWPab7Hwc1iPw6bpyVeSl0UnPjAji9TKTrpgJNAVnd4qFur7S85HlT IUeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=R5yEz0bJ; 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 o14-20020a056402038e00b0051de21489a0si6909272edv.381.2023.07.13.05.12.46; Thu, 13 Jul 2023 05:13:11 -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=R5yEz0bJ; 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 S234071AbjGMLpq (ORCPT + 99 others); Thu, 13 Jul 2023 07:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232882AbjGMLpp (ORCPT ); Thu, 13 Jul 2023 07:45:45 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A02301734 for ; Thu, 13 Jul 2023 04:45:44 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fba1288bbdso1033732e87.1 for ; Thu, 13 Jul 2023 04:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1689248743; x=1691840743; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XF/kJz3Mtl7rTr+akrMPMh7NT9a+W113nDrHXX3tyKU=; b=R5yEz0bJN9gmil0RBmK/5K/6osL2cjmTbVypi/ixxdHDr+fckuz2XAGrqudFi1VC1Z 4RJtgmfNZl9TSinagOTcj+6eUBz1qqIVsfrxCM9PSod8PJ6h4yJHUfg34fLWFOfTIsSd kYqmezpxW5QDbSpA481Gity5AC9HV/Os0Rjj3Mxoy5bHPvkjP8RzNtoBJ6QOQzYPUXw3 uVJ3XJRKy/g/Lh4g/Hfrnh91XVaTKY8ZpvCOApinYjTO7KJFL5f3dwYRjKQAeX6qYBZ+ Zrk2GYOCxOrDeYSdAPtG7w2+jAoM7dwu6WDoGcbcTegv1GUS7OayypoCL7keJH5+pMoc b1xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689248743; x=1691840743; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XF/kJz3Mtl7rTr+akrMPMh7NT9a+W113nDrHXX3tyKU=; b=C91ly74EYKgrQY7FAN6Os1ISKP1GTY7tfPHCIuo16gH9FpA1VcYEmCZKIww0/mNvTH cMZQwZFS4PRZxme3SWHlBiUoTJSkcmAWy9qUZvN/c7Qeh8AS6DACGc5nGO+lrVq6YvUt oEkbueGfhtpubSgOnnNSd2ZdE6yaqTD0UGUrNDJceRk2Ly4ajQVys7MzJu/hOZDMTWL0 slhWWJhO0NT4/Xqfc4GrLH60O0uCyeJ8lsBWkvOFx+43vLxlqOWrpa8NzVQDBTCXRgKE aO2dKFpCg5Bc5ciRr0M2KzYPmqIMkXu9pTzJPU8UlJWcK4LHbA6r9Q/Otc2tHAXjhi2+ d1YQ== X-Gm-Message-State: ABy/qLaUK/ef7wgPNL7D6VmFvOs71F62MLkEN2MglijfTlkohWO91l2A Tq3YBBgVn/M+llEGvDUxBIJvaA== X-Received: by 2002:a19:5016:0:b0:4f7:3ee8:eede with SMTP id e22-20020a195016000000b004f73ee8eedemr1215430lfb.61.1689248742691; Thu, 13 Jul 2023 04:45:42 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id n7-20020aa7c447000000b0051e22660835sm4193594edr.46.2023.07.13.04.45.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 04:45:42 -0700 (PDT) Date: Thu, 13 Jul 2023 13:45:41 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Heiko Stuebner , Samuel Ortiz , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/7] RISC-V: KVM: Allow Zicntr, Zicsr, Zifencei, and Zihpm for Guest/VM Message-ID: <20230713-0a6b8a76803c70d3fe92f77c@orel> References: <20230712161047.1764756-1-apatel@ventanamicro.com> <20230712161047.1764756-5-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712161047.1764756-5-apatel@ventanamicro.com> 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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, Jul 12, 2023 at 09:40:44PM +0530, Anup Patel wrote: > We extend the KVM ISA extension ONE_REG interface to allow KVM > user space to detect and enable Zicntr, Zicsr, Zifencei, and Zihpm > extensions for Guest/VM. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/uapi/asm/kvm.h | 4 ++++ > arch/riscv/kvm/vcpu_onereg.c | 8 ++++++++ > 2 files changed, 12 insertions(+) > Reviewed-by: Andrew Jones