Re: [Xen-devel] [PATCH v9 07/11] x86/boot: Calculate the most appropriate BTI mitigation to use

2018-01-19 Thread Jan Beulich
>>> On 18.01.18 at 16:46, wrote: > +/* Calculate whether Retpoline is known-safe on this CPU. */ > +static bool __init retpoline_safe(void) > +{ > +unsigned int ucode_rev = this_cpu(ucode_cpu_info).cpu_sig.rev; > + > +if ( boot_cpu_data.x86_vendor ==

Re: [Xen-devel] [PATCH v9 07/11] x86/boot: Calculate the most appropriate BTI mitigation to use

2018-01-19 Thread Andrew Cooper
On 19/01/18 12:06, Jan Beulich wrote: On 18.01.18 at 16:46, wrote: >> @@ -124,7 +186,21 @@ void __init init_speculation_mitigations(void) >> */ >> if ( cpu_has_lfence_dispatch ) >> thunk = THUNK_LFENCE; >> +/*

Re: [Xen-devel] [PATCH v9 07/11] x86/boot: Calculate the most appropriate BTI mitigation to use

2018-01-19 Thread Jan Beulich
>>> On 18.01.18 at 16:46, wrote: > @@ -124,7 +186,21 @@ void __init init_speculation_mitigations(void) > */ > if ( cpu_has_lfence_dispatch ) > thunk = THUNK_LFENCE; > +/* > + * On Intel hardware, we'd

[Xen-devel] [PATCH v9 07/11] x86/boot: Calculate the most appropriate BTI mitigation to use

2018-01-18 Thread Andrew Cooper
Signed-off-by: Andrew Cooper --- CC: Jan Beulich v7: * static, and tweak comment --- docs/misc/xen-command-line.markdown | 6 ++- xen/arch/x86/spec_ctrl.c| 104 ++-- 2 files changed, 105 insertions(+),