Files
linux/arch/x86/include/asm
Pawan Gupta aaa65d17ee x86/tsx: Add a feature bit for TSX control MSR support
Support for the TSX control MSR is enumerated in MSR_IA32_ARCH_CAPABILITIES.
This is different from how other CPU features are enumerated i.e. via
CPUID. Currently, a call to tsx_ctrl_is_supported() is required for
enumerating the feature. In the absence of a feature bit for TSX control,
any code that relies on checking feature bits directly will not work.

In preparation for adding a feature bit check in MSR save/restore
during suspend/resume, set a new feature bit X86_FEATURE_TSX_CTRL when
MSR_IA32_TSX_CTRL is present. Also make tsx_ctrl_is_supported() use the
new feature bit to avoid any overhead of reading the MSR.

  [ bp: Remove tsx_ctrl_is_supported(), add room for two more feature
    bits in word 11 which are coming up in the next merge window. ]

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/de619764e1d98afbb7a5fa58424f1278ede37b45.1668539735.git.pawan.kumar.gupta@linux.intel.com
2022-11-21 14:08:20 +01:00
..
2021-10-20 22:35:04 +02:00
2021-03-18 15:31:53 +01:00
2022-08-04 11:11:59 +02:00
2022-06-27 10:33:58 +02:00
2020-01-23 10:41:20 -08:00
2022-09-26 10:13:16 -07:00
2021-03-18 15:31:53 +01:00
2022-08-31 14:34:11 -07:00
2020-05-07 16:06:20 +02:00
2022-04-12 15:42:59 +02:00
2021-12-11 09:09:47 +01:00
2021-10-28 23:25:26 +02:00
2020-10-28 20:26:25 +01:00
2021-10-05 21:48:30 +02:00
2022-08-19 04:05:42 -04:00
2020-11-26 12:58:56 +01:00
2022-06-28 13:20:21 +02:00
2020-11-06 23:14:58 +01:00
2022-10-03 14:03:26 -07:00
2022-04-07 08:27:52 -07:00
2022-04-14 14:09:43 +02:00
2020-09-16 16:52:28 +02:00
2021-12-11 09:09:45 +01:00
2021-07-01 11:06:03 -07:00
2022-08-21 10:06:28 -07:00
2022-04-14 14:15:54 +02:00
2022-08-25 15:54:03 +02:00
2022-07-07 10:13:02 -07:00
2021-12-11 09:09:45 +01:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2022-04-07 08:27:52 -07:00
2020-11-17 14:36:13 +01:00
2022-08-18 12:36:42 +02:00
2022-01-30 21:17:00 -05:00
2022-01-30 21:17:00 -05:00
2020-03-23 18:45:14 +01:00
2022-06-08 05:56:24 -04:00
2020-01-14 12:20:58 +01:00