Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1397394
| From | Yu-cheng Yu <yu-cheng.yu@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v5 12/13] x86/xsaves: Fix fpstate_init() for XSAVES |
| Date | 2016-05-09 23:00 +0200 |
| Message-ID | <rx0ry-4yi-45@gated-at.bofh.it> (permalink) |
| References | <rx0rx-4yi-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
When XSAVES is used, xsave.header.xcomp_bv[63] must be set. Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com> --- arch/x86/kernel/fpu/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c index 41ab106..25e2605 100644 --- a/arch/x86/kernel/fpu/core.c +++ b/arch/x86/kernel/fpu/core.c @@ -224,6 +224,9 @@ void fpstate_init(union fpregs_state *state) memset(state, 0, kernel_xstate_size); + if (cpu_has_xsaves) + state->xsave.header.xcomp_bv = (u64)1 << 63; + if (cpu_has_fxsr) fpstate_init_fxstate(&state->fxsave); else -- 1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v5 12/13] x86/xsaves: Fix fpstate_init() for XSAVES Yu-cheng Yu <yu-cheng.yu@intel.com> - 2016-05-09 23:00 +0200
Re: [PATCH v5 12/13] x86/xsaves: Fix fpstate_init() for XSAVES Dave Hansen <dave.hansen@linux.intel.com> - 2016-05-10 01:50 +0200
Re: [PATCH v5 12/13] x86/xsaves: Fix fpstate_init() for XSAVES Yu-cheng Yu <yu-cheng.yu@intel.com> - 2016-05-10 02:00 +0200
Re: [PATCH v5 12/13] x86/xsaves: Fix fpstate_init() for XSAVES Dave Hansen <dave.hansen@linux.intel.com> - 2016-05-10 02:10 +0200
csiph-web