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 A39CFC76196 for ; Fri, 31 Mar 2023 11:06:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbjCaLGL convert rfc822-to-8bit (ORCPT ); Fri, 31 Mar 2023 07:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232465AbjCaLFU (ORCPT ); Fri, 31 Mar 2023 07:05:20 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD24520DB3 for ; Fri, 31 Mar 2023 04:03:51 -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 1piCWz-00038O-L4; Fri, 31 Mar 2023 13:02:53 +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: vineetg@rivosinc.com, greentime.hu@sifive.com, guoren@linux.alibaba.com, Vincent Chen , Andy Chiu , Paul Walmsley , Albert Ou , Guo Ren , Conor Dooley , Li Zhengyu , Xianting Tian , Masahiro Yamada , Jisheng Zhang , Andrew Jones , Richard Henderson , Andy Chiu Subject: Re: [PATCH -next v17 07/20] riscv: Introduce riscv_v_vsize to record size of Vector context Date: Fri, 31 Mar 2023 13:02:52 +0200 Message-ID: <7503786.EvYhyI6sBW@diego> In-Reply-To: <20230327164941.20491-8-andy.chiu@sifive.com> References: <20230327164941.20491-1-andy.chiu@sifive.com> <20230327164941.20491-8-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Am Montag, 27. März 2023, 18:49:27 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. is this mandated somewhere? Because for most other things we seem to want to check that this is actually true. So somehow I'd expect the kernel to at least check the VLEN on each hart and loudly complain if those do not match? > 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: Conor Dooley Tested-by: Heiko Stuebner Heiko