diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-06-23 14:02:32 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-06-23 23:45:31 +0200 |
commit | 6f9866a166cd1ad3ebb2dcdb3874aa8fee8dea2f (patch) | |
tree | c181cfba9a9a3d30cd64d4b749fd0cb682e1e219 /lib/test_bitops.c | |
parent | fcb3635f5018e53024c6be3c3213737f469f74ff (diff) |
x86/fpu/signal: Let xrstor handle the features to init
There is no reason to do an extra XRSTOR from init_fpstate for feature
bits which have been cleared by user space in the FX magic xfeatures
storage.
Just clear them in the task's XSTATE header and do a full restore which
will put these cleared features into init state.
There is no real difference in performance because the current code
already does a full restore when the xfeatures bits are preserved as the
signal frame setup has stored them, which is the full UABI feature set.
[ bp: Use the negated mxcsr_feature_mask in the MXCSR check. ]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210623121457.804115017@linutronix.de
Diffstat (limited to 'lib/test_bitops.c')
0 files changed, 0 insertions, 0 deletions