[lkml]   [2018]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[RFC PATCH 0/4] x86/alternative: Add ALTERNATIVE_3
From: Borislav Petkov <>


here's a patchset which adds an ALTERNATIVE_3() macro so that we can
finally do RDTSCP in rdtsc_ordered() but also not break all the possible
qemu CPU models out there like some old pentium which doesn't have even
MFENCE. Which is the reason for the three-insn alternative macro, btw.

The stuff works here on all machines I've tested it on but since we're
too close to the merge window, I'll hold on to it for another round and
let it soak slowly into 2019. Thus the RFC tag. In the meantime, it'll
collect your comments and ideas.



Borislav Petkov (4):
x86/alternatives: Add macro comments
x86/alternatives: Print containing function
x86/alternatives: Add an ALTERNATIVE_3() macro

arch/x86/include/asm/alternative.h | 39 ++++++++++++++++++++++++------
arch/x86/include/asm/msr.h | 16 ++++++++++--
arch/x86/kernel/alternative.c | 4 +--
3 files changed, 48 insertions(+), 11 deletions(-)


 \ /
  Last update: 2018-12-11 23:24    [W:0.101 / U:20.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site