From: Heiko Stübner Date: Thu, 08 Jun 2023 15:58:15 +0200 Subject: [PATCH -next v21 11/27] riscv: Allocate user's vector context in the first-use trap 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> Message-ID: <1917725.CQOukoFCf9@diego> List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 at linaro.org > Signed-off-by: Andy Chiu Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner