Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1083156rwp; Thu, 13 Jul 2023 06:02:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlEsdjTwFT0m3lXafEh2biWXkjLL/v2dDNK4Mx3QOv0jM/8mp9lGq+Z5gLMAB2TMt/1x4XMN X-Received: by 2002:a17:902:cec6:b0:1b9:d38d:f08d with SMTP id d6-20020a170902cec600b001b9d38df08dmr7151244plg.18.1689253377894; Thu, 13 Jul 2023 06:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689253377; cv=none; d=google.com; s=arc-20160816; b=Po5Ty3qABdh2HP7cBvf0NWesduCj7NbHH6Gv/roi2Ki+gJoB81SWrGJ0sjMPFwrE5e WOJ3J1HkUR9Z+sCzTsUkYetsrm7jQN5I0lT+D8ky/HaE6IGhdBqrvs/dHKlBUtFxfWTg caaaeX3zAp+EiBsgRitBa43JRHYbHVK2PEzbF/NFPICQsJLUWqq9q0L/SMjAgG9yz7zb IV96xgBmWAaiCLybF6K5Sz6DviyZ2SdxktFzp9nJGNo4eh+4kKz2OaOQwBFi3ZyKtwu0 YUSFd2UsTQPREcocLQW3+P8khNmWV6vM2+qKFaNQyMWdPRv1NQss5a7YCoQcXhdBi0J1 zeOw== 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=Fp4jrD0ygkJDJFkWGuFutfJdRI3HLTanG1V2Pol42Cs=; fh=XcJ5F4KXT7ms5nrZI9XeQqo7m2yZzX/dHdMuLdYn764=; b=D7aiiMGLbkEccHoJjJ7leHd8YsSECX+sjo3xIHQDo4t5sPcjmsE6m/yp/kSAXIAxK7 ScwPblZshGBWNs+xrtNVLI4uN+PdEfwFiK0PShT3bHOa52Lp+QqZcb61OJfnJDef1zY4 6QW4juXbo9+ZFUh+UhyjMVrmyJHHKP+WT4WObFtQ4+RsGY6QVVXvxfTSjBC6f/1Oq+Qu JZ/8T1A9GKZWIEdF+0QnjmJfy//LMl2JRRIfW+bsu4CC+n3Axwrp0mroSxAnuRKmDDYo /PxR2pS3bsMFpPUGhMIs79a3qz8N/fXjewtWwC3ugAwZ9no2jD5yGUBQOVPoZqDvmb9O siyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=EOfdCr6i; 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 im23-20020a170902bb1700b001b6680bc871si4927454plb.445.2023.07.13.06.02.45; Thu, 13 Jul 2023 06:02:57 -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=EOfdCr6i; 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 S234845AbjGMMtW (ORCPT + 99 others); Thu, 13 Jul 2023 08:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234848AbjGMMtG (ORCPT ); Thu, 13 Jul 2023 08:49:06 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AC0272C for ; Thu, 13 Jul 2023 05:48:35 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9939fbb7191so140733866b.0 for ; Thu, 13 Jul 2023 05:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1689252511; x=1691844511; 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=Fp4jrD0ygkJDJFkWGuFutfJdRI3HLTanG1V2Pol42Cs=; b=EOfdCr6iiOuuTNeK3CwI0fjcEzCrcjSEMhZxpmDwTAsUYUGRmEbN4J3P/KWj+lbnRV H3H5LgYWFSq8LpQAFrnS11hWAMu3jThEZYt1uEjysR4lE8hZvuiScxPUTY1JBowIa1sH VftqMEF/Yo+psGZPwo2ygzyJAfyX6/YNU5gqD7PwrjpSC/q2Jj7Hh7OeyTIzz8v4Gre0 5ayG8V3a8n93aKvEbAUwe+GRycP79O7hwW5BbRHfoWtH+/e8CbrsjG15Ty9jiOAg0ZqV J3cKYSb1nQMioih/tQ08tz5SmCDZQ3tEDX52Gy7VadWkcvkw+PQR74HWTkSQywXYs4u7 WF9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689252511; x=1691844511; 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=Fp4jrD0ygkJDJFkWGuFutfJdRI3HLTanG1V2Pol42Cs=; b=ELPVQ1+mh4V/3zQDD0AM6G8pJTcZefBxVms/Io7fa5t18+GtdbkkFXhfAvBAKY6d1V 5ba7MhlRYc72R+5JH7LLKtpiSCI/4Kx4Y+xaIX3BhRakGpSsTCy69rKQcBM/O9clLMfx +YoGSkSXCH77xPORTVWPmdEGpjptEROfaN4J4TUhIgM+ekdqfNSnZyeJvllIR3XqVmhb w54UXoScjUGuLZaxd7+kmH9ihMI30VjKVOKQtrM/7fywmeQGd7oT1iSqTduLf+CPtl7p TphlQlglFYmG9pV1oghAoqQVpbYJERpA5n3W64x2PFYSB761TrQdsLX7h8+k15OpyEdB 7hIQ== X-Gm-Message-State: ABy/qLbRs7AbTVnf7pir+4qkrKraI8bRBeUcE1ra2s6b9Q6BXwpNN3Ds 7ulsWpzRTnQDRC9WRNS9pwKaLQ== X-Received: by 2002:a17:907:3fa0:b0:986:38ab:ef99 with SMTP id hr32-20020a1709073fa000b0098638abef99mr7436157ejc.9.1689252511508; Thu, 13 Jul 2023 05:48:31 -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 a10-20020a1709066d4a00b00992eabc0ad8sm3958509ejt.42.2023.07.13.05.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 05:48:31 -0700 (PDT) Date: Thu, 13 Jul 2023 14:48:30 +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 6/7] RISC-V: KVM: Allow Zbc, Zbk* and Zk* extensions for Guest/VM Message-ID: <20230713-bf041a3bbf91d041db3bd623@orel> References: <20230712161047.1764756-1-apatel@ventanamicro.com> <20230712161047.1764756-7-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712161047.1764756-7-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:46PM +0530, Anup Patel wrote: > We extend the KVM ISA extension ONE_REG interface to allow KVM > user space to detect and enable Zbc, Zbk* and Zk* extensions for > Guest/VM. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/uapi/asm/kvm.h | 11 +++++++++++ > arch/riscv/kvm/vcpu_onereg.c | 22 ++++++++++++++++++++++ > 2 files changed, 33 insertions(+) > Reviewed-by: Andrew Jones