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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 619B4C7EE23 for ; Thu, 8 Jun 2023 13:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4EbHVcFYiWLFexcxFgFycBomcXyRM4A12MIMEaJ74Ds=; b=OyGp7GH01Rq9kO +FkIuT9QOEGVJGvPty1049KyNUbdvck+EKS4i+nlOoXeTnTCuSpcdJ6jLSbGvQMlZlJKGOYJPKejV ebtvQwtX7S+ZmGoNuNhcbxItWFkbfJrM+0zrTLxZ6yujYM1HlMUOPdB7zaHcTkKfDZeFb5SMGLvUM 3UPluY7gpX4+1tQh+X1BysAktLcmEFqRBmlTelYAKV3J6JISFIHTaVUDGaUqOTrH209Cr+VXWqm+d 2bnxc040PTrWqsIewfGdhJ65GtJ4cnZ9M0fYZ97gghZW0U11xEexEonDAZZkDxITVK2bH4006nTST hFIv9WmuC/bjikOCHPyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7G9z-009Y1H-2N; Thu, 08 Jun 2023 13:58:43 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7G9w-009Xxg-0c; Thu, 08 Jun 2023 13:58:42 +0000 Received: from ip5b412278.dynamic.kabel-deutschland.de ([91.65.34.120] 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 1q7G9Y-0006MK-JG; Thu, 08 Jun 2023 15:58:16 +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, Andy Chiu , Paul Walmsley , Albert Ou , Andrew Jones , Conor Dooley , Lad Prabhakar , Jisheng Zhang , Liao Chang , Vincent Chen , Guo Ren , =?ISO-8859-1?Q?Bj=F6rn_T=F6pel?= , Xianting Tian , Mattias Nissler , Andy Chiu Subject: Re: [PATCH -next v21 11/27] riscv: Allocate user's vector context in the first-use trap Date: Thu, 08 Jun 2023 15:58:15 +0200 Message-ID: <1917725.CQOukoFCf9@diego> In-Reply-To: <20230605110724.21391-12-andy.chiu@sifive.com> References: <20230605110724.21391-1-andy.chiu@sifive.com> <20230605110724.21391-12-andy.chiu@sifive.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230608_065840_229304_A980CDA3 X-CRM114-Status: UNSURE ( 8.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Am Montag, 5. Juni 2023, 13:07:08 CEST schrieb Andy Chiu: > Vector unit is disabled by default for all user processes. Thus, a > process will take a trap (illegal instruction) into kernel at the first > time when it uses Vector. Only after then, the kernel allocates V > context and starts take care of the context for that user process. > > Suggested-by: Richard Henderson > Link: https://lore.kernel.org/r/3923eeee-e4dc-0911-40bf-84c34aee962d@linaro.org > Signed-off-by: Andy Chiu Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv