x86, fpu: XSAVE cleanups and sanity checks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest15 patches 2 repliesIn review
- v315 patches 1 replySuperseded
- v211 patches 11 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 11 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
* Fix up a few compile errors/warnings
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | x86, fpu: print xfeature buffer size in decimalarch/ | +2 | 0 replies | |
| 2/15 | x86, fpu: move XSAVE-disabling code to a helperarch/ arch/ arch/ | +21 | 0 replies | |
| 3/15 | x86, fpu: remove XSTATE_RESERVEarch/ arch/ | +59 | 0 replies | |
| 4/15 | x86, fpu: kill LWP supportarch/ | +0 | 0 replies | |
| 5/15 | x86, fpu: XSAVE macro renamesarch/ arch/ arch/ +18 more | +101 | 1 reply | |
| 6/15 | x86, fpu: rename XFEATURES_NR_MAXarch/ arch/ | +3 | 0 replies | |
| 7/15 | x86, fpu: rework XSTATE_* macros to remove magic '2'arch/ arch/ | +9 | 0 replies | |
| 8/15 | x86, fpu: remove xfeature_nrarch/ | +8 | 0 replies | |
| 9/15 | x86, fpu: add helper xfeature_enabled() instead of test_bit()arch/ | +13 | 0 replies | |
| 10/15 | x86, fpu: rework MPX 'xstate' typesarch/ arch/ arch/ +1 more | +33 | 0 replies | |
| 11/15 | x86, fpu: rework YMM definitionarch/ | +11 | 0 replies | |
| 12/15 | x86, fpu: add C structures for AVX-512 state componentsarch/ | +33 | 0 replies | |
| 13/15 | x86, fpu: correct and check XSAVE xstate size calculationsarch/ | +174 | 0 replies | |
| 14/15 | x86, fpu: check to ensure increasing-offset xstate offsetsarch/ | +24 | 0 replies | |
| 15/15 | x86, fpu: check CPU-provided sizes against struct declarationsarch/ | +45 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH 00/15] [v4] x86, fpu: XSAVE cleanups and sanity checks
Changes in v4:
* Fix up a few compile errors/warnings
Changes in v3:
* rework XSTATE_* macros using Ingo's suggested naming
* change state size printk to be in decimal
* add some more sanity-checking to detect and work around an undersized 'xregs_state'
* remove "nr_" from some of the names used.
Changes in v2:
* remove references to Processor Trace XSAVE state (will defer to another patch set)
* Remove some cruft from last patch
* move last_good_offset fix in to the patch that introduced it
These patches make some updates to the x86 XSAVE code.
They have been build and boot tested including on hardware and/or simulators with AVX-512 and MPX. It boots in all of the tested configurations without hitting any of the new warnings in this code. I even added the Memory Protecion Keys (the xfeature after MPX) patches on top of this and everything works fine.
There are basically 5 things going on here:
* removal of the LWP (lightweight profiling) code
* naming and type cleanups
* removal of xfeatures_nr variable
* addition of AVX-512 C structures
* new sanity checks of XSAVE buffer sizing