Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/msr-index: Add MSRs for XFD

XFD introduces two MSRs:

- IA32_XFD to enable/disable a feature controlled by XFD

- IA32_XFD_ERR to expose to the #NM trap handler which feature
was tried to be used for the first time.

Both use the same xstate-component bitmap format, used by XCR0.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211021225527.10184-14-chang.seok.bae@intel.com

authored by

Chang S. Bae and committed by
Borislav Petkov
dae1bd58 c3511016

+2
+2
arch/x86/include/asm/msr-index.h
··· 625 625 626 626 #define MSR_IA32_BNDCFGS_RSVD 0x00000ffc 627 627 628 + #define MSR_IA32_XFD 0x000001c4 629 + #define MSR_IA32_XFD_ERR 0x000001c5 628 630 #define MSR_IA32_XSS 0x00000da0 629 631 630 632 #define MSR_IA32_APICBASE 0x0000001b