Skip to content

20230427-linuxkm-simd-fixes#6351

Merged
SparkiDev merged 3 commits intowolfSSL:masterfrom
douzzer:20230427-linuxkm-simd-fixes
Apr 28, 2023
Merged

20230427-linuxkm-simd-fixes#6351
SparkiDev merged 3 commits intowolfSSL:masterfrom
douzzer:20230427-linuxkm-simd-fixes

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Apr 27, 2023

linuxkm: in {save,restore}_vector_registers_x86(), check if vector register file has already been saved and invalidated, and if so, inhibit the kernel_fpu_{begin,end}() wrap and instead just use preempt_{disable,enable}() wraps.

wolfcrypt/test/test.c: add TEST_FAIL() macro (counterpart to incumbent TEST_PASS()), by default same as incumbent functionality, but #ifdef TEST_ALWAYS_RUN_TO_END, print errors as they occur but continue to end.

configure.ac: escape backslashes when generating preprocessor directives for .build_params; delete backslashes and process parenthesized arguments correctly when generating options.h.

tested with wolfssl-multi-test.sh ... super-quick-check linuxkm-legacy-.\* and module load with in-kernel wolfcrypt_test() under qemu-system on kernels 5.10, 5.17, and 6.3.

douzzer added 3 commits April 27, 2023 17:38
…ves for .build_params; delete backslashes and process parenthesized arguments correctly when generating options.h.
…t TEST_PASS()), by default same as incumbent functionality, but #ifdef TEST_ALWAYS_RUN_TO_END, print errors as they occur but continue to end.
…gister file has already been saved and invalidated, and if so, inhibit the kernel_fpu_{begin,end}() wrap and instead just use preempt_{disable,enable}() wraps.
@SparkiDev SparkiDev merged commit f8559b7 into wolfSSL:master Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants