Add new bit definitions for TSX, related to the TAA issue. The actual

mitigation will follow in a future commit.

Sponsored by:	Intel
This commit is contained in:
Scott Long 2019-11-12 19:15:16 +00:00
parent c08973d09c
commit 837d733265
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354655
2 changed files with 9 additions and 0 deletions

View File

@ -491,6 +491,12 @@
#define IA32_ARCH_CAP_SSB_NO 0x00000010
#define IA32_ARCH_CAP_MDS_NO 0x00000020
#define IA32_ARCH_CAP_IF_PSCHANGE_MC_NO 0x00000040
#define IA32_ARCH_CAP_TSX_CTRL 0x00000080
#define IA32_ARCH_CAP_TAA_NO 0x00000100
/* MSR IA32_TSX_CTRL bits */
#define IA32_TSX_CTRL_RTM_DISABLE 0x00000001
#define IA32_TSX_CTRL_TSX_CPUID_CLEAR 0x00000002
/*
* CPUID manufacturers identifiers
@ -543,6 +549,7 @@
#define MSR_BBL_CR_TRIG 0x11a
#define MSR_BBL_CR_BUSY 0x11b
#define MSR_BBL_CR_CTL3 0x11e
#define MSR_IA32_TSX_CTRL 0x122
#define MSR_SYSENTER_CS_MSR 0x174
#define MSR_SYSENTER_ESP_MSR 0x175
#define MSR_SYSENTER_EIP_MSR 0x176

View File

@ -1046,6 +1046,8 @@ printcpuinfo(void)
"\004SKIP_L1DFL_VME"
"\005SSB_NO"
"\006MDS_NO"
"\010TSX_CTRL"
"\011TAA_NO"
);
}