diff options
author | Brian Behlendorf <[email protected]> | 2019-10-24 10:17:33 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-24 10:17:33 -0700 |
commit | 10fa254539ec41c6b043785d4e7ab34bce383b9f (patch) | |
tree | c26798d9a42546096cb5bf2b0afeb4ef5257d48e /module/icp/include/aes | |
parent | b834b58ae61063f526ce82df348440e31c58c232 (diff) |
Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore
Contrary to initial testing we cannot rely on these kernels to
invalidate the per-cpu FPU state and restore the FPU registers.
Nor can we guarantee that the kernel won't modify the FPU state
which we saved in the task struck.
Therefore, the kfpu_begin() and kfpu_end() functions have been
updated to save and restore the FPU state using our own dedicated
per-cpu FPU state variables.
This has the additional advantage of allowing us to use the FPU
again in user threads. So we remove the code which was added to
use task queues to ensure some functions ran in kernel threads.
Reviewed-by: Fabian Grünbichler <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #9346
Closes #9403
Diffstat (limited to 'module/icp/include/aes')
-rw-r--r-- | module/icp/include/aes/aes_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/icp/include/aes/aes_impl.h b/module/icp/include/aes/aes_impl.h index 329e32a8e..a0b82ade4 100644 --- a/module/icp/include/aes/aes_impl.h +++ b/module/icp/include/aes/aes_impl.h @@ -198,7 +198,7 @@ extern const aes_impl_ops_t aes_aesni_impl; /* * Initializes fastest implementation */ -void aes_impl_init(void *arg); +void aes_impl_init(void); /* * Returns optimal allowed AES implementation |