Files
linux/arch/x86/include/asm
Andrew Cooper efe508816d x86/msr: Switch between WRMSRNS and WRMSR with the alternatives mechanism
Per the discussion about FRED MSR writes with WRMSRNS instruction [1],
use the alternatives mechanism to choose WRMSRNS when it's available,
otherwise fallback to WRMSR.

Remove the dependency on X86_FEATURE_WRMSRNS as WRMSRNS is no longer
dependent on FRED.

[1] https://lore.kernel.org/lkml/15f56e6a-6edd-43d0-8e83-bb6430096514@citrix.com/

Use DS prefix to pad WRMSR instead of a NOP. The prefix is ignored. At
least that's the current information from the hardware folks.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240822073906.2176342-3-xin@zytor.com
2024-08-25 19:23:00 +02:00
..
2024-01-03 11:46:22 +01:00
2022-08-04 11:11:59 +02:00
2023-11-21 17:23:35 +01:00
2024-02-15 22:07:36 +01:00
2024-02-27 00:23:55 +01:00
2024-01-03 11:46:22 +01:00
2023-10-03 10:38:08 +02:00
2022-04-07 08:27:52 -07:00
2022-11-10 13:12:45 +01:00
2023-06-01 15:04:33 +02:00
2024-06-25 17:15:48 +02:00