Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp327337rwb; Mon, 28 Nov 2022 21:55:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf67QutIYR/fRUmdiEGTG85WCl03/BSDG7ThWS0fUkSOWC8Bqk6mG4QgpmO8F3B+37WtaDTL X-Received: by 2002:a17:906:3c4b:b0:7c0:805d:1440 with SMTP id i11-20020a1709063c4b00b007c0805d1440mr3669564ejg.16.1669701329629; Mon, 28 Nov 2022 21:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669701329; cv=none; d=google.com; s=arc-20160816; b=X+V4S7xDq2y4+fYgQeekJMvWZX80MDzZev5Z02Wtd4+5Z4NqrYN3/3+FUEVu2XL2JC /LCGPO6w8EL8yxNd/nXIvpXNVYOHHIsJwxjBYxiYd41y3duLvF2SOvxltXlOF3pUES8U Vxgrkh4JPwuNSlrqFxJsn4EiIMl7tfTd+MfHV5WnFQhzEv4B46qCLi4U0qU9k1u2GWzM re/UaNEu2Gs8ERscPR4IAGZtflDY57GbSYIuEC2R5SkdsARCIYBEpSqM3NE2LmVBa60m F5FQMQxsbBm8zA60Eg9GQCBPJUu6KPhvWRfDKFBQG7Iu0OypP1pAjaYZzhKFXznjGM1o F0fw== 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=VX+itqdtRrB43wl3kKgpncV8GANmiBc0pfcxw2yUuLM=; b=iWKNWVaqNucpIF3qtOKTCgMGLBlwhcf2mPclzC27lqJ4s77ck7k6cyIkznxxMoz7WV AqdUHhdqlKXrfolwdkS4dymO6gyrV+I5qLhT0VSGxfQdaAdTmBqSZRm1QjlYZDW0f7c9 7QvzGGutYmlAOfouVB4MhqSbzZvM8b2aY6ItqUfKFZriqYAyN7xjUdVbwx+Kkher4EJi J0ytn30s5Si++7DoPYM1Tf3LWTdQhE6PSJbJUwwi90b/sI770SXH213AuYu/MiYGka2B 22s3wmc6w+ttMTZAYZLztqFygieHm8DT2Agp42vGMq2ORH++Uh4EJ1cC7mxLbW/aSaWc 1txg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="bG/IrQ/J"; 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 p11-20020a056402500b00b0046b00a9ee8csi5958154eda.233.2022.11.28.21.54.52; Mon, 28 Nov 2022 21:55:29 -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=@ventanamicro.com header.s=google header.b="bG/IrQ/J"; 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 S235582AbiK2FWe (ORCPT + 82 others); Tue, 29 Nov 2022 00:22:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235594AbiK2FWY (ORCPT ); Tue, 29 Nov 2022 00:22:24 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BF1150D5B for ; Mon, 28 Nov 2022 21:22:20 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id g12so20274278wrs.10 for ; Mon, 28 Nov 2022 21:22:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; 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=VX+itqdtRrB43wl3kKgpncV8GANmiBc0pfcxw2yUuLM=; b=bG/IrQ/Jixzo6903r9hdiDVrqSlnGMjeHDlGeazVMHCkysWbRtlm/GeJRZvt+CRWWl W742Q2rnyombXejTvQ7gcaZl4N7K8AJXrYys3m2CHDKY6fptemRY4xey51NIYgBfdpEV 4vXYqPl68pOufbrcBNozppHSP9Igq+6RWmLPg+0CxBAHZWzAUB9BGnkFhjQckBmRE0fw CL6Utxu+ZMfHuSD1H2+5WWT+UKHPolCf3993tJi6aRmXyVnK2KTCyaBiewLdCDv91Sok L0PSv5bAifCxKQRiSXiBTm4amKUjVcYuQ8Dh44fDHd9vmA2MtpMTZ2dZfyq3ASyXUtAN OJDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=VX+itqdtRrB43wl3kKgpncV8GANmiBc0pfcxw2yUuLM=; b=T+iymdzV45rYozbQxJGe1bZrKQ6BEpVSmDAHmHy3Sxz3Ql5OwRmz4lebJLc+XKvoqM 1ByZhQpBjSFnfczGweHtxuNfya0HxL/BhlOuGVIH6cl93qewwx3d6HJmRtT1YF90VuC1 Ej6Kp39z0B6m005QV93pf2/Jh7t+PpHXwPym+9gMsHE52uc041nO/Zt7kZaeWqb5nTkf QFIfImPL15C79xvpZohzhZCMKbaFPwvlFklpetEoMnR2353vMBIsfIUiyYNwq+tzJAcN 0sRUovGO9oykbsGZG+nO3G7AWufiSu7S8YutjXCpgBgRMnqEcV4Uw0IcH57ovljZ19lb E66Q== X-Gm-Message-State: ANoB5pnvPbwY43i3iXN3push+d3wvNRfdHM0tNW/AligcuvLXotMKEGK WVnHSgVRNJz9nMmQDK3jqjfxGw== X-Received: by 2002:adf:f244:0:b0:242:1da0:4984 with SMTP id b4-20020adff244000000b002421da04984mr3305960wrp.240.1669699338615; Mon, 28 Nov 2022 21:22:18 -0800 (PST) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id dn6-20020a05600c654600b003cf894dbc4fsm712294wmb.25.2022.11.28.21.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 21:22:18 -0800 (PST) Date: Tue, 29 Nov 2022 06:22:17 +0100 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/9] RISC-V: KVM: Save mvendorid, marchid, and mimpid when creating VCPU Message-ID: <20221129052217.7rpw33yrr6i6kncx@kamzik> References: <20221128161424.608889-1-apatel@ventanamicro.com> <20221128161424.608889-8-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221128161424.608889-8-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_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 Mon, Nov 28, 2022 at 09:44:22PM +0530, Anup Patel wrote: > We should save VCPU mvendorid, marchid, and mimpid at the time > of creating VCPU so that we don't have to do host SBI call every > time Guest/VM ask for these details. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/asm/kvm_host.h | 5 +++++ > arch/riscv/kvm/vcpu.c | 6 ++++++ > arch/riscv/kvm/vcpu_sbi_base.c | 11 +++++------ > 3 files changed, 16 insertions(+), 6 deletions(-) > Reviewed-by: Andrew Jones