From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E030C77B7A for ; Mon, 17 Apr 2023 15:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231420AbjDQPz2 (ORCPT ); Mon, 17 Apr 2023 11:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230323AbjDQPz0 (ORCPT ); Mon, 17 Apr 2023 11:55:26 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF9CE4A for ; Mon, 17 Apr 2023 08:55:23 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1poRC4-0004yF-Lf; Mon, 17 Apr 2023 17:55:04 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-riscv@lists.infradead.org, palmer@dabbelt.com, anup@brainfault.org, atishp@atishpatra.org, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org Cc: guoren@linux.alibaba.com, Jisheng Zhang , Xianting Tian , Liao Chang , Masahiro Yamada , vineetg@rivosinc.com, Philipp Tomsich , Vincent Chen , Conor Dooley , Albert Ou , Guo Ren , Andy Chiu , Paul Walmsley , Ley Foon Tan , greentime.hu@sifive.com, Li Zhengyu , Andrew Jones , Andy Chiu Subject: Re: [PATCH -next v18 07/20] riscv: Introduce riscv_v_vsize to record size of Vector context Date: Mon, 17 Apr 2023 17:55:03 +0200 Message-ID: <2456518.jZfb76A358@diego> In-Reply-To: <20230414155843.12963-8-andy.chiu@sifive.com> References: <20230414155843.12963-1-andy.chiu@sifive.com> <20230414155843.12963-8-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Am Freitag, 14. April 2023, 17:58:30 CEST schrieb Andy Chiu: > From: Greentime Hu > > This patch is used to detect the size of CPU vector registers and use > riscv_v_vsize to save the size of all the vector registers. It assumes all > harts has the same capabilities in a SMP system. If a core detects VLENB > that is different from the boot core, then it warns and turns off V > support for user space. > > Co-developed-by: Guo Ren > Signed-off-by: Guo Ren > Co-developed-by: Vincent Chen > Signed-off-by: Vincent Chen > Signed-off-by: Greentime Hu > Signed-off-by: Andy Chiu Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner