linux/arch
Thomas Gleixner 6afbb58cc2 x86/fpu: Cache xfeature flags from CPUID
In preparation for runtime calculation of XSAVE offsets cache the feature
flags for each XSTATE component during feature enumeration via CPUID(0xD).

EDX has two relevant bits:
    0	Supervisor component
    1	Feature storage must be 64 byte aligned

These bits are currently only evaluated during init, but the alignment bit
must be cached to make runtime calculation of XSAVE offsets efficient.

Cache the full EDX content and use it for the existing alignment and
supervisor checks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220324134623.573656209@linutronix.de
2022-03-30 11:05:32 +02:00
..
alpha Folio changes for 5.18 2022-03-22 17:03:12 -07:00
arc arch: Add pmd_pfn() where it is missing 2022-03-21 12:59:02 -04:00
arm Folio changes for 5.18 2022-03-22 17:03:12 -07:00
arm64 Folio changes for 5.18 2022-03-22 17:03:12 -07:00
csky arch: Add pmd_pfn() where it is missing 2022-03-21 12:59:02 -04:00
h8300 bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
hexagon Folio changes for 5.18 2022-03-22 17:03:12 -07:00
ia64 Folio changes for 5.18 2022-03-22 17:03:12 -07:00
m68k Folio changes for 5.18 2022-03-22 17:03:12 -07:00
microblaze Folio changes for 5.18 2022-03-22 17:03:12 -07:00
mips Folio changes for 5.18 2022-03-22 17:03:12 -07:00
nds32 Folio changes for 5.18 2022-03-22 17:03:12 -07:00
nios2 arch: Add pmd_pfn() where it is missing 2022-03-21 12:59:02 -04:00
openrisc Folio changes for 5.18 2022-03-22 17:03:12 -07:00
parisc Folio changes for 5.18 2022-03-22 17:03:12 -07:00
powerpc Folio changes for 5.18 2022-03-22 17:03:12 -07:00
riscv drivers/base/node: consolidate node device subsystem initialization in node_dev_init() 2022-03-22 15:57:10 -07:00
s390 Merge branch 'akpm' (patches from Andrew) 2022-03-22 16:11:53 -07:00
sh Folio changes for 5.18 2022-03-22 17:03:12 -07:00
sparc Folio changes for 5.18 2022-03-22 17:03:12 -07:00
um Folio changes for 5.18 2022-03-22 17:03:12 -07:00
x86 x86/fpu: Cache xfeature flags from CPUID 2022-03-30 11:05:32 +02:00
xtensa Folio changes for 5.18 2022-03-22 17:03:12 -07:00
.gitignore
Kconfig Changes in this cycle were: 2022-03-22 14:39:12 -07:00