lkml.org 
[lkml]   [2018]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 5/8] x86/speculation: Add basic support for IBPB
On Sun, Jan 21, 2018 at 06:54:22PM +0000, David Woodhouse wrote:
> Because we're backporting this to every stable kernel under the sun,
> and they don't already require asm-goto.

Considering the cost of the barrier, I'd simplify the whole endeavor
*considerably* for backporting:

if (boot_cpu_has(X86_FEATURE_IBPB))
wrmsr(MSR_IA32_PRED_CMD, PRED_CMD_IBPB, 0);

Problem solved.

Upstream can then do static_cpu_has() if it wants to.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

\
 
 \ /
  Last update: 2018-01-21 20:05    [W:0.134 / U:1.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site