From: Heiko Stübner Date: Sun, 02 Apr 2023 00:21:11 +0200 Subject: [PATCH -next v17 12/20] riscv: signal: check fp-reserved words unconditionally In-Reply-To: <20230327164941.20491-13-andy.chiu@sifive.com> References: <20230327164941.20491-1-andy.chiu@sifive.com> <20230327164941.20491-13-andy.chiu@sifive.com> Message-ID: <5898720.alqRGMn8q6@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, 27. M?rz 2023, 18:49:32 CEST schrieb Andy Chiu: > In order to let kernel/user locate and identify an extension context on > the existing sigframe, we are going to utilize reserved space of fp and > encode the information there. And since the sigcontext has already > preserved a space for fp context w or w/o CONFIG_FPU, we move those > reserved words checking/setting routine back into generic code. > > This commit also undone an additional logical change carried by the > refactor commit 007f5c3589578 > ("Refactor FPU code in signal setup/return procedures"). Originally we > did not restore fp context if restoring of gpr have failed. And it was > fine on the other side. In such way the kernel could keep the regfiles > intact, and potentially react at the failing point of restore. > > Signed-off-by: Andy Chiu > Acked-by: Conor Dooley Acked-by: Heiko Stuebner Tested-by: Heiko Stuebner